Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » org.osgi.framework.BundleException: Bundle org.eclipse.persistence.jpa cannot be resolved
org.osgi.framework.BundleException: Bundle org.eclipse.persistence.jpa cannot be resolved [message #1079180] Sun, 04 August 2013 02:02 Go to next message
Juan Pablo is currently offline Juan Pablo
Messages: 2
Registered: August 2013
Junior Member
Hi I'm compiling eclipselink source code, I've followed the instructions from the wiki but when I run the build using ant the build stops when this message appears. Anyone knows what could be wrong? Thanks.


 [java] [ERROR] Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle org.eclipse.persistence.jpa cannot be resolved
     [java] [ERROR] Resolution errors:
     [java] [ERROR] Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence; version="[1.1.0,2.2.0)"
     [java] [ERROR] Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence.criteria; version="[1.1.0,2.2.0)"
     [java] [ERROR] Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence.metamodel; version="[1.1.0,2.2.0)"
     [java] [ERROR] Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence.spi; version="[1.1.0,2.2.0)"
     [java] [ERROR] -> [Help 1]
     [java] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle org.eclipse.persistence.jpa cannot be resolved
     [java] Resolution errors:
     [java]    Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence; version="[1.1.0,2.2.0)"
     [java]    Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence.criteria; version="[1.1.0,2.2.0)"
     [java]    Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence.metamodel; version="[1.1.0,2.2.0)"
     [java]    Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence.spi; version="[1.1.0,2.2.0)"
     [java] 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
     [java] 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
     [java] 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
     [java] 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
     [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [java] 	at java.lang.reflect.Method.invoke(Method.java:601)
     [java] 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
     [java] 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
     [java] 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
     [java] 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
     [java] Caused by: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle org.eclipse.persistence.jpa cannot be resolved
     [java] Resolution errors:
     [java]    Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence; version="[1.1.0,2.2.0)"
     [java]    Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence.criteria; version="[1.1.0,2.2.0)"
     [java]    Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence.metamodel; version="[1.1.0,2.2.0)"
     [java]    Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence.spi; version="[1.1.0,2.2.0)"
     [java] 	at org.eclipse.tycho.core.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:252)
     [java] 	at org.eclipse.tycho.core.osgitools.OsgiBundleProject.resolveClassPath(OsgiBundleProject.java:158)
     [java] 	at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:111)
     [java] 	at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:64)
     [java] 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
     [java] 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
     [java] 	... 11 more
     [java] Caused by: org.osgi.framework.BundleException: Bundle org.eclipse.persistence.jpa cannot be resolved
     [java] Resolution errors:
     [java]    Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence; version="[1.1.0,2.2.0)"
     [java]    Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence.criteria; version="[1.1.0,2.2.0)"
     [java]    Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence.metamodel; version="[1.1.0,2.2.0)"
     [java]    Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence.spi; version="[1.1.0,2.2.0)"
     [java] 	at org.eclipse.tycho.core.osgitools.EquinoxResolver.assertResolved(EquinoxResolver.java:291)
     [java] 	at org.eclipse.tycho.core.osgitools.EquinoxResolver.newResolvedState(EquinoxResolver.java:71)
     [java] 	at org.eclipse.tycho.core.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:250)
     [java] 	... 16 more
     [java] [ERROR] 
     [java] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
     [java] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
     [java] [ERROR] 
     [java] [ERROR] For more information about the errors and possible solutions, please read the following articles:

BUILD FAILED
D:\workspace\eclipselink\antbuild.xml:343: Java returned: 1

Total time: 28 seconds
Re: org.osgi.framework.BundleException: Bundle org.eclipse.persistence.jpa cannot be resolved [message #1082404 is a reply to message #1079180] Thu, 08 August 2013 10:23 Go to previous message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Looks like it cannot find the follow packages,

Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence; version="[1.1.0,2.2.0)"
Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence.criteria; version="[1.1.0,2.2.0)"
Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence.metamodel; version="[1.1.0,2.2.0)"
[java] Bundle org.eclipse.persistence.jpa - Missing Constraint: Import-Package: javax.persistence.spi; version="[1.1.0,2.2.0)"

Are these available in your maven repository?


James : Wiki : Book : Blog : Twitter
Previous Topic:RCP / EclipseLink(Gemini) Example ??
Next Topic:Behaviour merge() of detached objects
Goto Forum:
  


Current Time: Thu Aug 28 11:23:48 EDT 2014

Powered by FUDForum. Page generated in 0.01590 seconds