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!