This has been fix but not backported in 4.5.2 i guess Le 15 juin 2013 14:43, "Mansour Al Akeel" <mansour.alak...@gmail.com> a écrit :
> Thank you Jean. > > When I change the version to 4.5.2 it builds fine, but then when I unpack > and run the resulting karafee, I get this error in karaf.log file: > > Downloaded: > > http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/2.2/plexus-compiler-manager-2.2.jar(5 > KB at 31.6 KB/sec) > Downloading: > > http://repo.maven.apache.org/maven2/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar > at > java.net.URLClassLoader$1.run(URLClassLoader.java:355)[:1.7.0_13] > at java.security.AccessController.doPrivileged(Native > Method)[:1.7.0_13] > at > java.net.URLClassLoader.findClass(URLClassLoader.java:354)[:1.7.0_13] > at java.lang.ClassLoader.loadClass(ClassLoader.java:423)[:1.7.0_13] > at java.lang.ClassLoader.loadClass(ClassLoader.java:356)[:1.7.0_13] > at > > org.apache.felix.framework.ExtensionManager$ExtensionManagerWiring.getClassByDelegation(ExtensionManager.java:871) > at > > org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1481) > at > > org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1427) > at > > org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72) > at > > org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843) > at java.lang.ClassLoader.loadClass(ClassLoader.java:356)[:1.7.0_13] > ... 25 more > 2013-06-15 08:39:00,148 | ERROR | Thread-7 | > Activator | openejb.core.osgi.impl.Activator 88 | > 166 - org.apache.openejb.core-osgi - 4.5.2 | can't start the bundle > org.apache.openejb.OpenEJBException: OpenEJB has encountered a fatal error > and cannot be started: The Assembler encountered an unexpected error while > attempting to build the container system.: javax/annotation/ManagedBean > at > > org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:154)[166:org.apache.openejb.core-osgi:4.5.2] > at > > org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:65)[166:org.apache.openejb.core-osgi:4.5.2] > at > > org.apache.openejb.OpenEJB.init(OpenEJB.java:292)[166:org.apache.openejb.core-osgi:4.5.2] > at > > org.apache.openejb.OpenEJB.init(OpenEJB.java:272)[166:org.apache.openejb.core-osgi:4.5.2] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method)[:1.7.0_13] > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_13] > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_13] > at java.lang.reflect.Method.invoke(Method.java:601)[:1.7.0_13] > at > > org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)[165:org.apache.openejb.loader:4.5.2] > at > > org.apache.openejb.core.osgi.impl.Activator.start(Activator.java:86)[166:org.apache.openejb.core-osgi:4.5.2] > at > > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)[org.apache.felix.framework-4.0.3.jar:] > at > > org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)[org.apache.felix.framework-4.0.3.jar:] > at > > org.apache.felix.framework.Felix.startBundle(Felix.java:1895)[org.apache.felix.framework-4.0.3.jar:] > at > > org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)[org.apache.felix.framework-4.0.3.jar:] > at > > org.apache.felix.framework.BundleImpl.start(BundleImpl.java:931)[org.apache.felix.framework-4.0.3.jar:] > at > > org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:515)[20:org.apache.karaf.features.core:2.3.0] > at > > org.apache.karaf.features.internal.FeaturesServiceImpl$2.run(FeaturesServiceImpl.java:1141)[20:org.apache.karaf.features.core:2.3.0] > Caused by: java.lang.NoClassDefFoundError: javax/annotation/ManagedBean > at > > org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:1399)[166:org.apache.openejb.core-osgi:4.5.2] > at > > org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:417)[166:org.apache.openejb.core-osgi:4.5.2] > at > > org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:340)[166:org.apache.openejb.core-osgi:4.5.2] > at > > org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:379)[166:org.apache.openejb.core-osgi:4.5.2] > at > > org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:884)[166:org.apache.openejb.core-osgi:4.5.2] > at > > org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:499)[166:org.apache.openejb.core-osgi:4.5.2] > at > > org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:373)[166:org.apache.openejb.core-osgi:4.5.2] > at > > org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:352)[166:org.apache.openejb.core-osgi:4.5.2] > at > > org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:147)[166:org.apache.openejb.core-osgi:4.5.2] > ... 16 more > Caused by: java.lang.ClassNotFoundException: javax.annotation.ManagedBean > at > java.net.URLClassLoader$1.run(URLClassLoader.java:366)[:1.7.0_13] > at > java.net.URLClassLoader$1.run(URLClassLoader.java:355)[:1.7.0_13] > at java.security.AccessController.doPrivileged(Native > Method)[:1.7.0_13] > at > java.net.URLClassLoader.findClass(URLClassLoader.java:354)[:1.7.0_13] > at java.lang.ClassLoader.loadClass(ClassLoader.java:423)[:1.7.0_13] > at java.lang.ClassLoader.loadClass(ClassLoader.java:356)[:1.7.0_13] > at > > org.apache.felix.framework.ExtensionManager$ExtensionManagerWiring.getClassByDelegation(ExtensionManager.java:871) > at > > org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1481) > at > > org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1427) > at > > org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72) > at > > org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843) > at java.lang.ClassLoader.loadClass(ClassLoader.java:356)[:1.7.0_13] > ... 25 more > 2013-06-15 08:39:00,200 | INFO | Thread-7 | > geronimo-osgi-registry | ? ? | > 135 - org.apache.geronimo.specs.geronimo-osgi-registry - 1.1.0 | > SPI-Provider Manifest header found in bundle: > org.apache.bval.org.apache.bval.bundle > 2013-06-15 08:39:00,265 | INFO | Thread-7 | > geronimo-osgi-registry | ? ? | > 135 - org.apache.geronimo.specs.geronimo-osgi-registry - 1.1.0 | > SPI-Provider Manifest header found in bundle: > org.apache.geronimo.bundles.jaxb-impl > 2013-06-15 08:39:00,287 | ERROR | Thread-7 | > FeaturesServiceImpl | s.internal.FeaturesServiceImpl$2 1143 | > 20 - org.apache.karaf.features.core - 2.3.0 | Error installing boot > features > java.lang.Exception: Could not start bundle > mvn:org.apache.geronimo.specs/geronimo-jaxb_2.2_spec/1.0.1 in feature(s) > javaee-api-6.0-5: Unresolved constraint in bundle > org.apache.geronimo.specs.geronimo-jaxb_2.2_spec [106]: Unable to resolve > 106.0: missing requirement [106.0] osgi.wiring.package; > (&(osgi.wiring.package=javax.xml.namespace)(version>=1.0.0)) > at > > org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:476)[20:org.apache.karaf.features.core:2.3.0] > at > > org.apache.karaf.features.internal.FeaturesServiceImpl$2.run(FeaturesServiceImpl.java:1141)[20:org.apache.karaf.features.core:2.3.0] > Caused by: org.osgi.framework.BundleException: Unresolved constraint in > bundle org.apache.geronimo.specs.geronimo-jaxb_2.2_spec [106]: Unable to > resolve 106.0: missing requirement [106.0] osgi.wiring.package; > (&(osgi.wiring.package=javax.xml.namespace)(version>=1.0.0)) > at > > org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)[org.apache.felix.framework-4.0.3.jar:] > at > > org.apache.felix.framework.Felix.startBundle(Felix.java:1868)[org.apache.felix.framework-4.0.3.jar:] > at > > org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)[org.apache.felix.framework-4.0.3.jar:] > > > > > Thank you. > > > > On Sat, Jun 15, 2013 at 8:24 AM, Jean-Baptiste Onofré <j...@nanthrax.net > >wrote: > > > Hi guys, > > > > I gonna take a look in the mean time on my side. > > > > I keep you posted. > > > > Regards > > JB > > > > > > On 06/15/2013 01:45 PM, Romain Manni-Bucau wrote: > > > >> Use 4.5.2 release > >> Le 15 juin 2013 13:40, "Mansour Al Akeel" <mansour.alak...@gmail.com> a > >> écrit : > >> > >> Yes, I did it manually. > >>> > >>> What spanshot. Can you please elaborate ?? > >>> > >>> > >>> > >>> On Sat, Jun 15, 2013 at 5:34 AM, Romain Manni-Bucau > >>> <rmannibu...@gmail.com>wrote: > >>> > >>> Resources were filtered, did you do it manually? > >>>> > >>>> Btw remove snapshot and it should build > >>>> Le 15 juin 2013 10:59, "Mansour Al Akeel" <mansour.alak...@gmail.com> > a > >>>> écrit : > >>>> > >>>> Romain, > >>>>> Thank you for replying. > >>>>> Building from the source didn't work, as > >>>>> http://svn.apache.org/repos/**asf/tomee/karafee/trunk< > http://svn.apache.org/repos/asf/tomee/karafee/trunk>is looking for > >>>>> 4.5.2-SNAPSHOT, while the one provided by > >>>>> http://svn.apache.org/repos/**asf/tomee/tomee/trunk/pom.xml< > http://svn.apache.org/repos/asf/tomee/tomee/trunk/pom.xml> > >>>>> > >>>>> may be I can dig in svn and find the correct versions to match, but I > >>>>> decided to go with tweaking the jre imports like you said. I prefer > >>>>> > >>>> this > >>> > >>>> option any way. > >>>>> > >>>>> I tried to copy the configurations from > >>>>> karafee/apache-karafee/src/**main/filtered-resources/etc to > >>>>> MyKARAF/etc > >>>>> > >>>>> but no luck (even features command is gone). > >>>>> > >>>>> How can I tweak these configuration to get a plain karaf to install > >>>>> > >>>> openejb > >>>> > >>>>> and be able to deploy bundles and inject the contained EJBs as OSGI > >>>>> services ?? > >>>>> I am using Karak 2.3.1 > >>>>> > >>>>> Thank you. > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> On Sat, Jun 15, 2013 at 3:06 AM, Romain Manni-Bucau > >>>>> <rmannibu...@gmail.com>wrote: > >>>>> > >>>>> Hi > >>>>>> > >>>>>> KarafEE is just a Karaf + OpenEJB feature + optional rebranding + > >>>>>> > >>>>> some > >>> > >>>> config. > >>>>>> > >>>>>> Last trunk is here > >>>>>> http://svn.apache.org/repos/**asf/tomee/karafee/trunk/(**should< > http://svn.apache.org/repos/asf/tomee/karafee/trunk/(should>work > >>>>>> > >>>>> with > >>> > >>>> openejb 4.5.2). > >>>>>> > >>>>>> If you look karafee resources you see jre imports needs to be > >>>>>> > >>>>> tweaked. > >>> > >>>> That > >>>>> > >>>>>> what you didnt do i think. > >>>>>> Le 15 juin 2013 00:03, "Mansour Al Akeel" < > >>>>>> > >>>>> mansour.alak...@gmail.com> > >>> > >>>> a > >>>> > >>>>> écrit : > >>>>>> > >>>>>> I downloaded karaf 2.3.1. > >>>>>>> I added openejb features from > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> > >>>>> > >>>> http://repo1.maven.org/maven2/**/org/apache/openejb/openejb-** > >>> feature/4.5.0/openejb-feature-**4.5.0-features.xml< > http://repo1.maven.org/maven2//org/apache/openejb/openejb-feature/4.5.0/openejb-feature-4.5.0-features.xml > > > >>> > >>>> > >>>>>>> > >>>>>>> Then tried : > >>>>>>> features:install -v openejb-core > >>>>>>> > >>>>>>> and > >>>>>>> > >>>>>>> features:install -v openejb-server > >>>>>>> > >>>>>>> In both cases I am getting the following error: > >>>>>>> > >>>>>>> ... > >>>>>>> Installing bundle mvn:org.apache.openejb/**openejb-javaagent/4.5.0 > >>>>>>> Installing bundle mvn:org.apache.openejb/**openejb-jee/4.5.0 > >>>>>>> Installing bundle mvn:org.apache.openejb/**openejb-loader/4.5.0 > >>>>>>> Installing bundle mvn:org.apache.openejb/**openejb-core-osgi/4.5.0 > >>>>>>> Installing bundle > >>>>>>> > >>>>>> mvn:org.apache.openejb/**openejb-karaf-commands/4.5.0 > >>> > >>>> Error executing command: Could not start bundle > >>>>>>> mvn:org.apache.geronimo.specs/**geronimo-jaxb_2.2_spec/1.0.1 in > >>>>>>> > >>>>>> feature(s) > >>>>> > >>>>>> javaee-api-6.0-5, javaee-api-6.0-4: Unresolved constraint in bundle > >>>>>>> org.apache.geronimo.specs.**geronimo-jaxb_2.2_spec [307]: Unable to > >>>>>>> > >>>>>> resolve > >>>>> > >>>>>> 307.0: missing requirement [307.0] osgi.wiring.package; > >>>>>>> (&(osgi.wiring.package=javax.**xml.namespace)(version>=1.0.0)**) > >>>>>>> karaf@root> > >>>>>>> > >>>>>>> > >>>>>>> I am looking to be able to deploy bundles containing ejbs and > >>>>>>> > >>>>>> expose > >>> > >>>> them > >>>>> > >>>>>> as OSGI services. > >>>>>>> > >>>>>>> > >>>>>>> Is there a way to install OpenEJB on karaf without using a > >>>>>>> > >>>>>> prepackaged > >>>> > >>>>> karaf or openejb ? > >>>>>>> > >>>>>>> Thank you. > >>>>>>> > >>>>>>> > >>>>>> > >>>>> > >>>> > >>> > >> > > -- > > Jean-Baptiste Onofré > > jbono...@apache.org > > http://blog.nanthrax.net > > Talend - http://www.talend.com > > >