Community
Participate
Working Groups
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.
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?
Setting target and priority. See the following page for the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink