-->
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: Deploying Hibernate in EJB.jar to WLS 8.1
PostPosted: Wed Nov 19, 2003 6:26 pm 
Newbie

Joined: Fri Oct 31, 2003 7:37 pm
Posts: 3
Location: Fort Collins, CO
I attempting to migrate a JBoss mbean Hibernate deployment to WLS 8.1. I have a utility class called ServiceLocator which has the following code:

SessionFactory sf = new Configuration().configure().buildSessionFactory();

I have tried to put the hibernate.cfg.xml file in the root of both the projEJB.jar and the proj.ear, with the MANIFEST containing a Class-Path: .

It does not load the hibernate mappings?

Any suggestions?

Thanks,

Vince


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 19, 2003 9:31 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
This is what I do on wl 6.1 ...

1) Domain entities and their mapping files get jarred up together as domain.jar
2) EJBs get built into services.jar (the ejb jar file) with the manifest classpath entries set to "." and "domain.jar"
3) EJBs get ear'ed with an appropriate application.xml with domain.jar and hibernate.cfg.xml in the root of the ear file.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 20, 2003 3:16 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I had some CL and manifest issues with WL7SP3+ and exploded ear.
Having hibernate.xfg.xml in a directory and referencing this directory on manifest CP works for me on WL7 (never tried .)

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Still cannot find the "hibernate.cfg.xml".....
PostPosted: Thu Nov 20, 2003 2:27 pm 
Newbie

Joined: Fri Oct 31, 2003 7:37 pm
Posts: 3
Location: Fort Collins, CO
Steve, I have reorganized as you suggested. Manifests set, proj.jar and projEJB.jar in a proj.ear, with the hibernate.cfg.xml at the root of the EAR.

I still get a "hibernate.cfg.xml" not found error.

Any suggestions?

Thanks,

Vince


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.