Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361547 - NoClassDefFoundError for org.eclipse.persistence.* classes when redeploying a persistence unit bundle in Virgo
Summary: NoClassDefFoundError for org.eclipse.persistence.* classes when redeploying a...
Status: RESOLVED FIXED
Alias: None
Product: Gemini.JPA
Classification: RT
Component: Core (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.1.0 M1   Edit
Assignee: Michael Keith CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-20 10:02 EDT by Thomas Gillet CLA
Modified: 2012-10-10 10:15 EDT (History)
0 users

See Also:


Attachments
Test bundle (12.68 KB, application/java-archive)
2011-10-20 10:03 EDT, Thomas Gillet CLA
no flags Details
Stacktrace of the exception (9.71 KB, text/plain)
2011-10-20 10:10 EDT, Thomas Gillet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.