-->
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.  [ 4 posts ] 
Author Message
 Post subject: problem on deploying hibernate on weblogic
PostPosted: Wed Jul 07, 2004 1:37 pm 
Newbie

Joined: Tue Jun 22, 2004 12:16 pm
Posts: 8
Hi,

I have been working on deploying hibernate on weblogic.
The directory structure is like below:

helloWoldEar
|__APP-INF
| |__lib
|__helloWebApp
| |__WEB-INF --> classes, lib
|__*.html, *.jsp, *.xml , hibernate.cfg.xml, *.hbm

but when I run the application, it complained that it could not find the hibernate.cfg.xml.

I really don't where I should put the hibernate.cfg.xml. Does anyone have the similar experience on such problem?

thanks
Zhenyu


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 07, 2004 1:40 pm 
Newbie

Joined: Tue Jun 22, 2004 12:16 pm
Posts: 8
Sorry , the directory structure should be this:


helloWoldEar
|__APP-INF
| |__lib
|__helloWebApp
| |__WEB-INF --> classes, lib
| |__*.html, *.jsp, *.xml , hibernate.cfg.xml, *.hbm


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 12, 2004 2:33 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
You have to put hibernate.jar and the configuration file in the same classloader.
So either :
- put hibernate.jar in the war (WEB-INF/lib)
- put the config files in a directory at the ear level (properties)

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 14, 2004 8:49 pm 
Newbie

Joined: Tue Jun 15, 2004 10:45 am
Posts: 18
Location: Boston, USA
as long as its in the classpath of the ear it should find it. for my application I have it in the lib dir of the ear


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