Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361547

Summary: NoClassDefFoundError for org.eclipse.persistence.* classes when redeploying a persistence unit bundle in Virgo
Product: [RT] Gemini.JPA Reporter: Thomas Gillet <thomas.gillet.2>
Component: CoreAssignee: Michael Keith <michael.keith>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.0.0   
Target Milestone: 1.1.0 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Test bundle
none
Stacktrace of the exception none

Description Thomas Gillet CLA 2011-10-20 10:02:49 EDT
Build Identifier: 1.0.0.RELEASE

In Virgo Tomcat Server, redeploying a bundle containing a persistence unit fails with a NoClassDefFoundError for classes in org.eclipse.persistence.* packages.

The first deploy works fine, but any further refreshing (overwrite in pickup) or reinstall (remove from pickup then copy again) fails.
The only way I can redeploy the persistence unit is to first restart the bundle "org.eclipse.gemini.jpa".

As a workaround I imported in my persistence unit manifest all packages exported by the bundle "org.eclipse.persistence.core". It works now, but makes my persistence unit really not portable.

I'm using Virgo 3.0.1.RELEASE, Gemini JPA 1.0.0.RELEASE and EclipseLink 2.3.0.


Reproducible: Always

Steps to Reproduce:
1. Starts a Virgo server with Gemini JPA
2. Deploy the test bundle
3. Redeploy the test bundle
Comment 1 Thomas Gillet CLA 2011-10-20 10:03:57 EDT
Created attachment 205628 [details]
Test bundle
Comment 2 Thomas Gillet CLA 2011-10-20 10:10:06 EDT
Created attachment 205629 [details]
Stacktrace of the exception
Comment 3 Thomas Gillet CLA 2012-06-28 08:53:46 EDT
Tested with 1.1.0.M1. No change.
Comment 4 Thomas Gillet CLA 2012-10-10 04:44:15 EDT
Ok, seems to be resolved in Gemini 1.1.0.RC1 / EL 2.4.0.
Comment 5 Michael Keith CLA 2012-10-10 10:15:48 EDT
Good. Thanks for checking back.