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

Bug 333320

Summary: Plug-in dependency issue with org.eclipse.persistence.antlr
Product: z_Archived Reporter: Christoph Keimel <c.keimel>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.orm-inbox, michael.f.obrien, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
URL: http://www.eclipse.org/forums/index.php?t=msg&th=202367&start=0&S=5c3ac9906ea2f2f1b4b7a3045bfe86d7
Whiteboard:
Attachments:
Description Flags
Test Projects Helios 3.6.1 none

Description Christoph Keimel CLA 2010-12-29 19:50:13 EST
Created attachment 185892 [details]
Test Projects Helios 3.6.1

Basic Setup: 

A Headless RCP Application with the following dependencies:
- org.elcipse.core.runtime
- javax.persistence
- org.eclipse.persistence.jpa
- (jdbc connector - in my testcase a mysqlWrapper)

Target Platform including:
- RCP Target Components
- EclipseLink Target Components


The Effect:

Create a new Run Configuration (Eclipse Application). 
On the Plug-ins Tab:
- Set "Launch with" to "plug-ins selected below only"
- Press "Deselect All"
- Select the Application Project Plug-in (i.e. "de.kware.testjpa")
- Set to false "Include optional dependencies ..."
- Choose "Add Required Plug-ins"

A) The plugin org.eclipse.persistence.antlr is not added to the configuration (Eclipse Application) on "Add Required Plug-ins" when "Include optional dependencies ..." is not activated.

B) After adding the plugin manualy to the configuration it still doesn't work. The classloader will bring a ClassNotFoundException for org.eclipse.persistence.internal.libraries.antlr.runtime.Parser.

C) After fooling around a bit I noticed that after changing the order of the dependencies in the Plug-in Editor, it will suddenly work.


Why is this a Problem:

Without org.eclipse.persistence.antlr the creation of a TypedQuery results in a ClassNotFoundException for org.eclipse.persistence.internal.libraries.antlr.runtime.Parser.
Comment 1 Tom Ware CLA 2011-01-07 13:44:19 EST
The things you have to do to make this work make me think this is more likely a PDE Issue than an EcipseLink issue.  I will leave this bug open because I am unsure, but at based on the description of the problem, I am not sure what EclipseLink can do to avoid this.  Do you have a suggestion?
Comment 2 Tom Ware CLA 2011-01-13 11:22:26 EST
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:14:49 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:20:43 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink