-->
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.  [ 5 posts ] 
Author Message
 Post subject: EAR deployment Help -- With Hibernate
PostPosted: Fri Feb 13, 2004 4:47 pm 
Beginner
Beginner

Joined: Tue Feb 03, 2004 4:53 pm
Posts: 28
Ok here we go --
EAR consists of a facade Session been and a BusinessTX session bean (Stateless)
so naturally all hibernate jars and config information resides at the ejb module level --
Yet, to initialize the SessionFactory at startup of the Application -- I have a Servlet (Startup) that loads first thing ---
Yet It is un-able to find hibernate.xml -- I would hate to hard code the local of this file in the Servlet or in a properties file...
Does Hibernate sessionFactory know about J2EE classloaders or does it just work off of the local classpath to which it resides in ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 13, 2004 4:52 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Try to add a classpath Element which lists the jar containing the hibernate.cfg.xml to the jar where you initialize Hibernate.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 13, 2004 4:56 pm 
Beginner
Beginner

Joined: Tue Feb 03, 2004 4:53 pm
Posts: 28
gloeglm wrote:
Try to add a classpath Element which lists the jar containing the hibernate.cfg.xml to the jar where you initialize Hibernate.

How about a Manifest file with a CLASSPATH reference to the EJB/META-INF/lib directory with jar files listing and the xml listed ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 13, 2004 4:57 pm 
Beginner
Beginner

Joined: Tue Feb 03, 2004 4:53 pm
Posts: 28
gloeglm wrote:
Try to add a classpath Element which lists the jar containing the hibernate.cfg.xml to the jar where you initialize Hibernate.

That jar would be the ejb.jar--
Which J2EE the web-module has visiblity of the EJB classpath


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 13, 2004 4:57 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
?

The key is the classpath element I would say, play around some with it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.