You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Kevin Sutter <kw...@gmail.com> on 2009/03/19 21:59:20 UTC

Re: Questions about classpath for OpenJPA

I have no idea why there's a dependency on xercesImpl...  First time I have
heard of this.

I agree that our QuickStart needs some work.  Volunteers are always
welcome.  :-)

Kevin

On Thu, Mar 19, 2009 at 2:58 PM, Georgi Naplatanov <go...@oles.biz> wrote:

> Hello Paul.
>
> You may consider to add commons-dbcp and commons-pool jars for
> connection pooling. You may use commons-pool for pooling EntityManager
> instances.
>
> Best regards
> Georgi
>
> Paul Copeland wrote:
> > 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
> >
> >
>
>