Hi hkazmi!
Thanks for your reply. The simplified ear structure looks like ths:
Code:
myEar.ear
|- myEJBJar.jar
|- hibernate-3.0.5.jar
|- other jars
|- hibernate.cfg.xml
the Manifest.mf file in myEJBJar.jar contains the classpath entries to hibernate and the other needed jars (and I also tried to add the hibernate.cfg.xml file to it with no effect).
The Hibernate initialization call is initiated from an EJB in myEJBJar.jar via a HibernateUtil class.
Just for completeness. My application.xml looks like this:
Code:
<application>
<display-name>myApp</display-name>
<module>
<ejb>myEJBJar.jar</ejb>
</module>
</application>
Greetings,
Joern
P.S. As a workaround I placed the hibernate.cfg.xml outside the jar in a conf dir and added the conf dir to the Weblogic classpath. However, I'd prefer to have it iin the ear instead :-(