-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate EM- <jar-file> needs absolute url in JSE
PostPosted: Thu Jun 22, 2006 2:39 pm 
Newbie

Joined: Thu Mar 09, 2006 6:04 pm
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 23, 2008 9:44 pm 
Newbie

Joined: Wed Jan 23, 2008 9:11 pm
Posts: 2
i have the same question, and hope someone to resolve, im using Seam+JPA.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.