Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: hibernate-entitymanager-3.1beta6
Mapping documents: jdk 1.5 metadata annotations
Code between sessionFactory.openSession() and session.close(): -na-
Full stack trace of any exception that occurs:-na-
Name and version of the database you are using:-na-
The generated SQL (show_sql=true):-na-
Debug level Hibernate log excerpt:-na-
I am using Hibernate EM 3.1. beta 6 running in a non-managed environment [non-ejb container] using Tomcat 5.5.7. My entities are spread over multiple jar files and while using the <jar-file> element in the persistence.xml the Hibernate reference document asks to use absolute URL. [On a non-managed env PersistenceUnitInfoImpl doesnt exist and so Hibernate EM cannot get the absolute URL by itself.]
When the EM is able to load the jar file containing persistence.xml using classloader.getResources() why cant it use the same path and load atleast the files that arent specified with a absolute URL residing in the same path as the jar file containing this metadata xml?
Is there any other way to solve this issue through hibernate.
Thanks
shankar