Could you be a little bit more precise on what you mean by 'my environment'? Both runs in 1 VM - isn't it the same classloader in both cases as well?[/quote]
I am using Resin 2.1.12 with Hibernate 2.1 on SAPDB 7.4
Here is how I have my environment setup.
Location of Hibernate configuration files:
 
/webapps/foo/WEB-INF/classes/hibernate-sapdb.cfg.xml
  ...
  ...
Here is my HibernateManager code that loads the confirguration successfully.
Code:
static
  {
    try
    {
      /**
       *  File name need not be specified here. By default hibernate.cfg.xml is chosen.
       *  However, if the file name is changed in the application, it will need to
       *  be modified here
       */
      SessionFactory sessionFactory = new Configuration().configure("/hibernate-sapdb.cfg.xml").buildSessionFactory();
    }
    catch (HibernateException e)
    {
      logger.debug("HibernateException building SessionFactory: " + e.getMessage());
      throw new RuntimeException("HibernateException building SessionFactory: " + e.getMessage(), e);
    }
  }
Hope that helps.