I am just getting started and created a simple standalone (not in an app server container) JPA application working with both TopLink and OpenJPA 1.2 and tested with both MySQL and Postgres. This is with Java SE 1.5.0_05 building with Ant (not in in an IDE).

By trial and error I found I needed the jar files downloaded in the apache-openjpa-1.2.0 lib directory. I also needed xercesImpl.jar. I did not find these dependencies documented in the release notes, or in the manual, or on the Quickstart page (http://openjpa.apache.org/quick-start.html).

These were the necessary jars at either compile time or runtime -

commons-collections-3.2.jar
commons-lang-2.1.jar
geronimo-jpa_3.0_spec-1.0.jar
geronimo-jta_1.1_spec-1.1.jar
openjpa-1.2.0.jar
serp-1.13.1.jar
xercesImpl.jar

Probably I will also need commons-pool-1.3.jar or something similar for Connection pooling.

Presumably the geronimo jars are not needed in a Java 5 EE container. I'm not sure why xerces is required since Java SE 1.5 has a SAX parser. I guess all the other jars need to be deployed in the classpath in most other contexts.

This kind of dependency information might be usefully documented somewhere. Every new user has to figure this stuff out.

BTW - My target runtime environment will be Tomcat 6 + Java SE 1.6 + OpenJPA 1.2 + Postgres 8.2.x

Any experience or advice about what jars are required or is this already documented somewhere?

Thanks - Paul


Reply via email to