Page 1 of 1

About Question enthuware.oce-jpad.v6.1.345 :

Posted: Fri Dec 23, 2016 5:31 pm
by johnlong
JPA Specification provides the following example :

Code: Select all

app.ear
     war2.war
             WEB-INF/lib/warEntities.jar 
             WEB-INF/classes/META-INF/persistence.xml
persistence.xml contains: <jar-file>lib/warEntities.jar</jar-file>

If root of PU is indeed WEB-INF/classes/ then should not persistence.xml contain :
<jar-file>../lib/warEntities.jar</jar-file>

Re: About Question enthuware.oce-jpad.v6.1.345 :

Posted: Fri Dec 23, 2016 10:34 pm
by admin
Not sure if it is relevant to this question but why do you think so?

Re: About Question enthuware.oce-jpad.v6.1.345 :

Posted: Sat Dec 24, 2016 11:33 am
by johnlong
Because if currently we are located in WEB-INF/classes/, we would need to go one directory up to reach WEB-INF, and then from WEB-INF navigate to lib/warEntities.jar

Re: About Question enthuware.oce-jpad.v6.1.345 :

Posted: Sun Dec 25, 2016 1:04 pm
by admin
That sounds logical.

Re: About Question enthuware.oce-jpad.v6.1.345 :

Posted: Sun Dec 25, 2016 6:25 pm
by johnlong
I have to say that it is not the only example, there are couple of such examples.
Is it mistake?

Re: About Question enthuware.oce-jpad.v6.1.345 :

Posted: Mon Dec 26, 2016 12:48 am
by admin
Probably. I guess you will need to check with the specification authors :)