-->
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 and Websphere 5.1 Integration
PostPosted: Thu Oct 21, 2004 3:55 am 
Newbie

Joined: Fri Oct 01, 2004 8:41 am
Posts: 8
Location: Vienna
Hibernate version:
2.1.6


Hi!

As the Hibernate in WSAD 5.x Document explains, I placed all
neccessary jar Files (hibernate2.jar, dom4j.jar...) into my
Enterprise Application Projekt (WSAD 5.1) with the "Import Feature".

Running my EJB project resulted in ClassDefNotFound Exceptions, so I placed all jar Files in the "ws.ext.dirs". --> Everything was fine then.

The hibernate jar Files are EAR specific and should'nt placed in the
ws.ext.dirs place?

What could be the reason, that Websphere can't locate the jar Files, when
placed only in the EAR?

Best Regards


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 6:05 am 
Newbie

Joined: Fri Oct 01, 2004 8:41 am
Posts: 8
Location: Vienna
Problem solved:

The preffered way should *not* be to add the jar files to the
EJB project's build path as the document describes. (3)

Adding the jar files to the project's classpath results in proper compiling
(develop-time classpath OK!) but incorrect run-time classpath.

Instead use the WSAD JAR Dependency Editor (Right Click on your EJB
Module --> Open with JAR Dependeny Editor) and add those jar files
here.
The EJB-Module's classpath and the MANIFEST.MF are properly
set and avoids adding all hibernate jar files to the
Websphere's ws.ext.dirs


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.