Hi, If you uncomment those lines in the file /etc/jre.properties
javax.annotation, \ javax.annotation.processing, \ it should work. In this case, you don t need the bundle of geronimo Regards, Charles Moulliard Sr. Principal Solution Architect - FuseSource Apache Committer Blog : http://cmoulliard.blogspot.com Twitter : http://twitter.com/cmoulliard Linkedin : http://www.linkedin.com/in/charlesmoulliard Skype: cmoulliard On Fri, Nov 5, 2010 at 11:54 AM, Christian Müller <[email protected]> wrote: > Hello list! > > When I try to install OpenJPA 2.0.1 into FUSE ESB 4.2.0-fuse-02-00 running > in Java 6, I receive the following exception: > > {code} > ka...@root> osgi:install -s mvn:org.apache.openjpa/openjpa/2.0.1 > The bundle could not be resolved. Reason: Missing Constraint: > Import-Package: javax.annotation.processing; version="0.0.0" > {code} > > The problem is, the used Karaf version doesn't export javax.annotation* and > the bundle org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1 > exports the version "1.0" of these packages: > > {code} > ka...@root> headers 103 > > geronimo-annotation_1.0_spec (103) > ---------------------------------- > Manifest-Version = 1.0 > Archiver-Version = Plexus Archiver > Created-By = 1.5.0_13 (Apple Computer, Inc.) > Built-By = gnodet > Build-Jdk = 1.5.0_13 > Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt > Import-Package = > javax.annotation;version="1.0",javax.annotation.security;version="1.0" > Bnd-LastModified = 1201858009533 > Export-Package = > javax.annotation;version="1.0",javax.annotation.security;version="1.0" > Bundle-Version = 1.1.1 > Bundle-Name = geronimo-annotation_1.0_spec > Bundle-Description = Provides open-source implementations of Sun > specifications. > Bundle-DocURL = http://www.apache.org > Bundle-ManifestVersion = 2 > Bundle-Vendor = Apache Software Foundation > Implementation-Title = Apache Geronimo > Bundle-SymbolicName = org.apache.geronimo.specs.geronimo-annotation_1.0_spec > Tool = Bnd-0.0.227 > Implementation-Version = 1.1.1 > {code} > > Karaf 2.1 exports the javax.annotation* packages. See [KARAF-13| > https://issues.apache.org/jira/browse/KARAF-13]. Is this also the solution > for my problem? Should I raise an issue by the OpenJPA guys? > > Thanks in advance, > Christian >
