Even if you install openejb on Karaf, it will not scan your bundles to find classes annotated and inject them @Stateless, @Singleton, ... KarafEE will be required in this case but until now project has not been integrated as a sub(project) of Karaf.
On Thu, Jan 2, 2014 at 4:30 AM, Tom Leung <[email protected]> wrote: > Dear all, > > > > I started a new Karaf v3.0 instance on Ubuntu v13.04, use the default > setting and install the following bundles/features: > > > > >feature:install war > > >feature:install webconsole > > >feature:repo-add openejb 4.5.2 > > > > karaf@root()> feature:list | grep openejb > > org.apache.commons | 0.0.0 | | > openejb-features | > > xbean | 3.12 | | > openejb-features | > > org.apache.openwebbeans | 1.1.8 | | > openejb-features | > > geronimo-osgi | 1.1 | | > openejb-features | > > org.apache.activemq | 5.7.0 | | > openejb-features | > > openjpa | 2.2.0 | | > openejb-features | > > openejb-core | 4.5.2 | | > openejb-features | > > openejb-server | 4.5.2 | | > openejb-features | > > openejb-cxf | 4.5.2 | | > openejb-features | > > openejb-rest | 4.5.2 | | > openejb-features | > > openejb-soap | 4.5.2 | | > openejb-features | > > karaf@root()> > > > > >feature:install openejb-core > > > > but, I get the following error: > > > > karaf@root()> feature:install openejb-core > > Refreshing bundles > org.apache.geronimo.specs.geronimo-j2ee-management_1.1_spec (130), > org.apache.geronimo.specs.geronimo-jaspic_1.0_spec (84), > org.apache.geronimo.specs.geronimo-validation_1.0_spec (242) > > 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: Unresolved constraint in bundle > org.apache.geronimo.specs.geronimo-jaxb_2.2_spec [260]: Unable to resolve > 260.0: missing requirement [260.0] osgi.wiring.package; > (&(osgi.wiring.package=javax.xml.namespace)(version>=1.0.0)) > > karaf@root()> > > > > "javax.xml.namespace" is missing. > > > > Which bundle I should install to resolve the missing dependencies? > > > > Best Rgds, > > > > Tom > > > -- Charles Moulliard Apache Committer / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
