EclipseLink 2.0.0 OSGI Bundles RCP Plugin error in manifest [message #503730] |
Tue, 15 December 2009 04:38  |
Eclipse User |
|
|
|
Originally posted by: mail.thomashaertel.com
Hi all,
I am trying to add the new 2.0 release of eclipselink zu my rcp
application (eclipse-3.5.1-rcp install). When I add
org.eclipse.persistence.core or org.eclipse.persistence.jpa to my
manifest as a required plugin I get the following errors in the
manifest: "Unsatisfied version constraint" and in the plugin classes all
imports beginning with org.eclipse.* cannot be resolved.
I have seen that there is already a bug reported, which is markted as
fixed: https://bugs.eclipse.org/bugs/show_bug.cgi?id=265763
Does anyone has a solution for this problem?
thx.
Best regards,
Thomas Haertel
|
|
|
|
Re: EclipseLink 2.0.0 OSGI Bundles RCP Plugin error in manifest [message #503950 is a reply to message #503813] |
Wed, 16 December 2009 10:10   |
Eclipse User |
|
|
|
Originally posted by: mail.thomashaertel.com
Hi Shaun,
thanks for your reply. I can't get it run with your instructions.
I took a fresh Eclipse 3.5.1 RCP installation an installed the
EclipseLink plugin from your link as a dropin in Eclipse. Then I
imported the example projects into a new workspace. To fix all the
errors in PDE I had to change the manifest in
org.eclipse.persistence.example.jpa.comics.model.annotated to the follwing:
Import-Package: javax.persistence;version="[1.99.0,2.0.0]"
The same change was made in the manifest from plugin
org.eclipse.persistence.example.jpa.comics.setup.
I made no changes in plugin
org.eclipse.persistence.example.jpa.rcp.comics. The plugin has as
required plugin org.eclipse.persistence.jpa which gives the same errors
as I wrote in my first post. Every class is markted with errors, because
the org.eclipse packages are not found. When I remove the dependency
these errors are gone, but then the classes PersistenceUnitProperties
and PersistenceProvider are not found.
I hope you can reproduce it.
regards,
Thomas
Am 15.12.2009 17:46, schrieb Shaun Smith:
> Hi Thomas,
>
> I checked the RCP example out of trunk in the EclipseLink SVN, updated
> the javax.persistence version requirement of the
> org.eclipse.persistence.example.jpa.comics.model.annotated bundle to
> minimum 2.0 and was able to run against the EclipseLink 2.0 bundles
> available for download as the
> http://www.eclipse.org/downloads/download.php?file=/rt/eclip selink/releases/2.0.0/eclipselink-plugins-2.0.0.v20091127-r5 931.zip
>
>
> When I changed my target in PDE to include EclipseLink 2.0 I got all
> kinds of errors but through reloading the target, restarting Eclipse,
> and cleaning all projects I was finally able to convince PDE that there
> wasn't a problem. Perhaps you're experiencing the same PDE issues I was
> seeing?
>
> The RCP example app ran fine once PDE was happy.
>
> --Shaun
|
|
|
|
|
|
|
Re: EclipseLink 2.0.0 OSGI Bundles RCP Plugin error in manifest [message #506511 is a reply to message #506221] |
Thu, 07 January 2010 13:54   |
Eclipse User |
|
|
|
Hi Shaun,
I tried to follow your instructions - without luck. Here'a step by step list what I did:
1. Download/Unpack fresh Eclipse RCP Package
2. Download/Unpack fresh EclipseLink 2.0.0 Plugins Package
3. Copy EclipseLink Plugins folder to eclipse root folder as "plugins_custom"
4. Adding the EclipseLink Plugin folder to the target environment (Preferences/Plug-in Development/Target Platform - Running Platform - Edit - Locations - Add - Directory)
5. Unchecking javax.activation, javax.transaction and javax.xml.stream (Preferences/Plug-in Development/Target Platform - Running Platform - Edit - Content)
6. Savig the preferences
7. Creating a new RCP Projects
8. Add javax.pesistence (2.0.0), org.eclipse.persistence.antlr (2.0.0), org.eclipse.persistence.asm (2.0.0), org.eclipse.persistence.core (2.0.0), org.eclipse.persistence.jpa (2.0.0) under Dependencies in the MANIFEST.MF from my RCP-Project.
As soon as I save the MANIFEST.MF file, the same error occurs - the Plugin-Dependencies Folder in the Package Explorer disappears, every class-file get's a red cross, and in the MANIFEST.MF section of the editor all packages show the "Unsatisfied version constraint" error...
I'm not very experienced as a RCP Developer, so... what am I doing wrong???
Kind regards,
Juergen
|
|
|
|
Re: EclipseLink 2.0.0 OSGI Bundles RCP Plugin error in manifest [message #506551 is a reply to message #506517] |
Thu, 07 January 2010 18:27  |
Eclipse User |
|
|
|
Thanks for the very quick reply which "solved" the problem.
If I understand this correctly, these .jar files don't have to be included because they are also provided by the JDK's rt.jar and they only appear in the EclipseLink plugins download because they get reexported with the EclipseLink Bundle, right?
Thanks again for your help, kind regards, Juergen
|
|
|
Powered by
FUDForum. Page generated in 0.09573 seconds