I'm trying to use Apache Aries JPA in combination with Eclipselink (and an MSSQL database). My OSGi framework is Apache Felix, and I'm using DS (by using BndTools). After a long process of trial and error, I found the necessary bundles:
- javax.persistence
- bundle that contains a DataSourceFactory for jdbc.mssql
- org.apache.aries.jpa.api
- org.apache.aries.jpa.container
- org.apache.aries.jpa.support
- org.apache.aries.transaction.manager
- org.apache.aries.jpa.javax.persistence_2.0
- org.apache.aries.util
- org.apache.geronimo.specs.geronimo-jta_1.1_spec
- org.apache.aries.jpa.eclipselink.adapter
- org.eclipse.persistence.antlr
- org.eclipse.persistence.asm
- org.eclipse.persistence.core
- org.eclipse.persistence.jpa
- org.eclipse.persistence.jpa.jpql
When I start this configuration, I get following Exception:
java.lang.NoClassDefFoundError: javax/sql/DataSource
at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactoryImpl(PersistenceProvider.java:328)
at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:313)
Which bundle should contain the javax.sql.DataSource class? I expected this to be part of the JDK.
Does anyone have an idea by what this is caused or how I can fix this? Of how I can get Apache Aries JPA running with Eclipselink in a DS environment?
Thanks.