-->
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.  [ 6 posts ] 
Author Message
 Post subject: hibernate in an ear
PostPosted: Wed Jan 07, 2004 4:28 pm 
Newbie

Joined: Tue Nov 11, 2003 6:24 pm
Posts: 17
I'm attempting to load Hibernate in an EAR under WL8.1 sp1. Here's my setup:

I have configured a startup class for the EAR to load Hibernate into JNDI. The jar file containing the startup class loads correctly and finds Hibernate. However, Hibernate is not finding hibernate.cfg.xml or log4j.properties.

I've placed the config files in the root of my exploded ear and put the names of the config file in the manifest of my startup jar file. However, no matter where I seem to put the config files they are not found.

Am i going about this correctly? Please help.

Thanks,

-Alex


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 12, 2004 7:08 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I put my config files in a sub dir of my ear and addf this dir into my MANIFEST's classpath. Not sure about inserting direct files

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2004 4:04 am 
Beginner
Beginner

Joined: Thu Jan 01, 2004 11:36 am
Posts: 23
Location: Belgium
hello,

you have to put the config files in the .jar file which is then packaged in the ear file; works for me.

Jan


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2004 9:51 am 
Newbie

Joined: Tue Nov 11, 2003 6:24 pm
Posts: 17
Problem solved:

1. Moved all of Hibernate's supporting jar files into app-inf/lib of my ear.
2. Removed all references to Hibernate from system classpath of my WL instance.
3. Created empty classes directory under app-inf to hold hibernate-cfg.xml
4. Used weblogic-application.xml to configure a startup class to load Hibernate into JNDI
5. Packaged my startup class and mapping files into a single jar and place it in app-inf/lib


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 14, 2004 7:45 pm 
Expert
Expert

Joined: Thu Jan 08, 2004 6:17 pm
Posts: 278
Any chance you can post your sample for those of us who are total newbies both to EARs *and* Hibernate?

(maybe I shouldn't be climbing two learning curves simultaneously :-P )

Cheers!
Rob


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2004 3:14 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
A new wiki page would be fantastic

_________________
Emmanuel


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