Hi,

we are migrating a larger Open Source project (OpenMeetings) from Hibernate
to openJPA for Apache incubation and face some issues with openJPA's
dependencies to javax.persistance.PersistanceProvider:


We already have the javaee-api-5.1.1.jar (
http://openmeetings.googlecode.com/svn/trunk/singlewebapp/server/red5/lib/javaee-api-5.1.1.jar)
in the servers lib that has an incompatible version of the interface
javax.persistance.PersistanceProvide.
The application server is a modified Tomcat server integrated with Spring.

Now the questions is:
When we use the openjpa-2.1.x-all.jar and remove the javax.persistance.*
classes from javaee-api-5.1.1.jar we HAVE to move openjpa-2.1.x-all.jar to
the servers/lib (instead of webapps/openmeetings/WEB-INF/lib) because the
application server itself needs the javax.perstistance.* classes available
too.

Separating the javax.perstistance.* from the openjpa-2.1.x-all.jar and just
moving that to the server-lib doesn't work too as those javax.perstistance.*
from the openjpa-2.1.x-all.jar seem to have some depencies to
*apache.geronimo.xyz*.

So my questions are:
Where can we get a javax.persistance.* library that is compatible with
openJPA-2.1.x ? The one from the maven directory:
http://download.java.net/maven/2/javax/javaee-api/6.0/ does NOT work. It
throws some Exception about invalid class. Seems like a compile error in
their build server.

Where is the best place to put the openJPA-2.1.x JAR(s) ? Servers-lib or
WEB-INF/lib ? We want to be able to deploy multiple times the
openmeetings-webapp into the same applications server. From my point of view
you have to put them into WEB-INF/lib then?


Thank you very much,
Sebastian


-- 
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.wagner-sebastian.com
seba.wag...@gmail.com

Reply via email to