Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Org.eclipse.persistence.jpa deployment issue in VIRGO(java.lang.NoClassDefFoundError: javax/resource/ResourceException)
Org.eclipse.persistence.jpa deployment issue in VIRGO [message #1366494] Mon, 19 May 2014 10:39 Go to next message
Chandre Gowda is currently offline Chandre GowdaFriend
Messages: 56
Registered: April 2013
Member
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 11:27 Go to previous messageGo to next message
GianMaria Romanato is currently offline GianMaria RomanatoFriend
Messages: 72
Registered: July 2009
Member
Chandre Gowda wrote on Mon, 19 May 2014 06:39
Hello,

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.
Re: Org.eclipse.persistence.jpa deployment issue in VIRGO [message #1368890 is a reply to message #1366579] Tue, 20 May 2014 10:15 Go to previous message
Chandre Gowda is currently offline Chandre GowdaFriend
Messages: 56
Registered: April 2013
Member
Thanks Giamma. I have downloaded 'com.springsource.javax.resource-1.5.0.jar' and put in virgo/user folder. It worked Smile
Previous Topic:REST Apis for Administration
Next Topic:Deploy Web bundle in Virgo Nano full
Goto Forum:
  


Current Time: Sat Dec 07 08:43:17 GMT 2024

Powered by FUDForum. Page generated in 0.03456 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top