Org.eclipse.persistence.jpa deployment issue in VIRGO [message #1366494] |
Mon, 19 May 2014 06:39  |
Eclipse User |
|
|
|
Hello,
Currently Iam working on deploying application in VIRGO with eclipselink-mongodb as persistence layer. I have included following jars in bundle's manifest file.
1. org.eclipse.persistence.core
2. org.eclipse.persistence.jpa
3. org.mongodb.mongo-java-driver
4. org.eclipse.persistence.nosql_2.5.1.v20130918-f2b9fc5.jar
However during deployment of the bundle, following error is thrown. Kindly help me how to approach this issue.
] javax.persistence.PersistenceException: java.lang.NoClassDefFoundError: javax/resource/ResourceException
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:766)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getAbstractSession(EntityManagerFactoryDelegate.java:204)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:304)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:336)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:302)
Thanks
Chandru
|
|
|
Re: Org.eclipse.persistence.jpa deployment issue in VIRGO [message #1366579 is a reply to message #1366494] |
Mon, 19 May 2014 07:27   |
Eclipse User |
|
|
|
Chandre Gowda wrote on Mon, 19 May 2014 06:39Hello,
I have included following jars in bundle's manifest file.
1. org.eclipse.persistence.core
2. org.eclipse.persistence.jpa
3. org.mongodb.mongo-java-driver
4. org.eclipse.persistence.nosql_2.5.1.v20130918-f2b9fc5.jar
EclipseLink is more than just JPA, it also supports the Java Connector Architecture specification (which corresponds to the package javax.resource), and it provides JPA-like support for MongoDB via a Java Resource Adapter implementation for MongoDB (provided by EclipseLink).
To be able to use EclipseLink with MongoDB make sure that your bundle repository contains the javax.resource 1.5.0 bundle, which, if I am not mistaken, is included in the standard EclipseLink distribution.
Also, you may need to add javax.resource to your imported packages.
(BTW, you'd better use Import-Package over Require-Bundle, http://wiki.osgi.org/wiki/Use_Import-Package_instead_of_Require-Bundle)
Giamma.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04322 seconds