-->
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.  [ 3 posts ] 
Author Message
 Post subject: HEM not finding a jar-file in a WAR application
PostPosted: Thu Dec 04, 2008 12:11 pm 
Newbie

Joined: Thu Aug 24, 2006 5:14 pm
Posts: 4
Hello all,

I have an application packaged as a WAR which I deploy in JBoss 4.2.2.GA. My application refers to entities which are defined in an external jar file residing in the WEB-INF/lib directory.

The problem I have is that HEM does not find the jar file. Here is the structure of the deployed application:

Code:
|-WEB-INF
       |-classes
       |    |-META-INF
       |         |-persistence.xml
       |-lib
            |-mylib.jar


Here is the relevant portion of my persistence.xml:

Code:
<jar-file>../lib/mylib.jar</jar-file>


This produces the following log message:

Code:
WARN  [org.hibernate.ejb.packaging.ExplodedJarVisitor] Exploded jar does not exists (ignored): file:../lib/mylib.jar


I have also tried with the following paths but none of them seem to work:

Code:
<jar-file>../lib/mylib.jar</jar-file>
<jar-file>../../lib/mylib.jar</jar-file>
<jar-file>../../WEB-INF/lib/mylib.jar</jar-file>
<jar-file>../../../WEB-INF/lib/mylib.jar</jar-file>
<jar-file>WEB-INF/lib/mylib.jar</jar-file>
<jar-file>lib/mylib.jar</jar-file>


Any ideas? Any help would be greatly appreciated!


Top
 Profile  
 
 Post subject: Re: HEM not finding a jar-file in a WAR application
PostPosted: Mon Jan 25, 2010 1:40 am 
Newbie

Joined: Mon Jan 25, 2010 1:32 am
Posts: 2
I have the same problem , waiting for answer


Top
 Profile  
 
 Post subject: Re: HEM not finding a jar-file in a WAR application
PostPosted: Mon Jan 25, 2010 2:54 am 
Newbie

Joined: Mon Jan 25, 2010 1:32 am
Posts: 2
two methods:
1:Deploy your app as a EAR
2:not use <jar-file> ,find all entity bean in jar,write them in persistence.xml just like <class>com.app.somebean</class><class>..</class>


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