|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
For adventurous: first run of OSGified OpenEJB *seems* running fineHi,
With the recent changes in the openejb repo as far as MANIFEST.MF generation goes and the new openejb-core-osgi project/bundle, it seems that OpenEJB boots up fine within OSGi framework - Apache Felix 2.0.1. If you fancy giving it a try, do the following. I'd appreciate if it's verified on another machine before me going further with the openejb osgification. Make sure you're working with the latest openejb sources. Comments welcome. It looks it's on time with Geronimo osgification. I couldn't have wished more. Download felix-framework-2.0.1.tar.gz and install it Change its conf/config.properties so that it contains felix.log.level=4 (more information on wiring) and org.osgi.framework.system.packages.extra=sun.misc Change default.properties in bin/felix.jar -> javax.transaction turned off jar xf felix.jar default.properties sed 's,javax.transaction,#javax.transaction,' default.properties > default.properties.NOWY cp default.properties.NOWY default.properties jar uf felix.jar default.properties rm default.properties* Run Felix - java -jar bin/felix.jar "c:\openejb-osgi\felix-cache" jlaskowski@work /cygdrive/c/openejb-osgi/felix-framework-2.0.1 $ java -jar bin/felix.jar "c:\openejb-osgi\felix-cache" Welcome to Felix ================ DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0 DEBUG: WIRE: 1.0 -> org.osgi.service.log -> 2.0 DEBUG: WIRE: 1.0 -> org.osgi.service.url -> 0 DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0 DEBUG: WIRE: 2.0 -> org.osgi.service.packageadmin -> 0 DEBUG: WIRE: 2.0 -> org.osgi.service.startlevel -> 0 DEBUG: DYNAMIC WIRE: 1.0 -> org.apache.felix.shell -> 2.0 DEBUG: WIRE: 3.0 -> org.apache.felix.shell -> 2.0 DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0 -> ps START LEVEL 1 ID State Level Name [ 0] [Active ] [ 0] System Bundle (2.0.1) [ 1] [Active ] [ 1] Apache Felix Bundle Repository (1.4.2) [ 2] [Active ] [ 1] Apache Felix Shell Service (1.4.1) [ 3] [Active ] [ 1] Apache Felix Shell TUI (1.4.1) Install the following bundles (make sure you're online as some are pulled down from the Internet). Execute the following commands from within felix console: install file:C:/.m2/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/openejb-core-3.1.2-SNAPSHOT.jar install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-annotation_1.0_spec/1.1.1/geronimo-annotation_1.0_spec-1.1.1.jar install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-ejb_3.0_spec/1.0.1/geronimo-ejb_3.0_spec-1.0.1.jar install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1.jar install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-interceptor_3.0_spec/1.0.1/geronimo-interceptor_3.0_spec-1.0.1.jar install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.6/geronimo-javamail_1.4_spec-1.6.jar install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-j2ee-management_1.1_spec/1.0.1/geronimo-j2ee-management_1.1_spec-1.0.1.jar install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-jpa_3.0_spec/1.1.1/geronimo-jpa_3.0_spec-1.1.1.jar install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-j2ee-connector_1.5_spec/2.0.0/geronimo-j2ee-connector_1.5_spec-2.0.0.jar install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-jacc_1.1_spec/1.0.2/geronimo-jacc_1.1_spec-1.0.2.jar install http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.wsdl4j/1.6.1_1/org.apache.servicemix.bundles.wsdl4j-1.6.1_1.jar install http://download.eclipse.org/tools/orbit/downloads/drops/R20090825191606/bundles/org.apache.commons.cli_1.0.0.v20080604-1500.jar install http://download.eclipse.org/tools/orbit/downloads/drops/R20090825191606/bundles/org.apache.commons.lang_2.4.0.v20081016-1030.jar install http://download.eclipse.org/tools/orbit/downloads/drops/R20090825191606/bundles/org.apache.commons.logging_1.1.1.v200904062255.jar install http://repo2.maven.org/maven2/org/apache/geronimo/components/geronimo-connector/2.1.3/geronimo-connector-2.1.3.jar install http://repo2.maven.org/maven2/org/apache/geronimo/components/geronimo-transaction/2.1.3/geronimo-transaction-2.1.3.jar install file:C:\.m2\org\apache\openejb\openejb-api\3.1.2-SNAPSHOT\openejb-api-3.1.2-SNAPSHOT.jar install file:C:\.m2\org\apache\openejb\openejb-javaagent\3.1.2-SNAPSHOT\openejb-javaagent-3.1.2-SNAPSHOT.jar install file:C:/.m2/org/apache/openejb/openejb-jee/3.1.2-SNAPSHOT/openejb-jee-3.1.2-SNAPSHOT.jar install file:C:/.m2/org/apache/openejb/openejb-loader/3.1.2-SNAPSHOT/openejb-loader-3.1.2-SNAPSHOT.jar install file:C:\.m2\org\apache\xbean\xbean-asm-shaded\3.7-SNAPSHOT\xbean-asm-shaded-3.7-SNAPSHOT.jar install file:C:\.m2\org\apache\xbean\xbean-finder-shaded\3.7-SNAPSHOT\xbean-finder-shaded-3.7-SNAPSHOT.jar install file:C:\.m2\org\apache\xbean\xbean-naming\3.7-SNAPSHOT\xbean-naming-3.7-SNAPSHOT.jar install file:C:\.m2\org\apache\xbean\xbean-reflect\3.7-SNAPSHOT\xbean-reflect-3.7-SNAPSHOT.jar Execute "start 4" and Core is up. -> ps START LEVEL 1 ID State Level Name [ 0] [Active ] [ 0] System Bundle (2.0.1) [ 1] [Active ] [ 1] Apache Felix Bundle Repository (1.4.2) [ 2] [Active ] [ 1] Apache Felix Shell Service (1.4.1) [ 3] [Active ] [ 1] Apache Felix Shell TUI (1.4.1) [ 4] [Active ] [ 1] Apache OpenEJB :: Container :: Core (3.1.2.SNAPSHOT) [ 5] [Resolved ] [ 1] geronimo-annotation_1.0_spec (1.1.1) [ 6] [Resolved ] [ 1] geronimo-ejb_3.0_spec (1.0.1) [ 7] [Resolved ] [ 1] geronimo-jta_1.1_spec (1.1.1) [ 8] [Resolved ] [ 1] geronimo-interceptor_3.0_spec (1.0.1) [ 9] [Resolved ] [ 1] geronimo-javamail_1.4_spec (1.6) [ 10] [Resolved ] [ 1] geronimo-j2ee-management_1.1_spec (1.0.1) [ 11] [Resolved ] [ 1] geronimo-jpa_3.0_spec (1.1.1) [ 12] [Resolved ] [ 1] geronimo-j2ee-connector_1.5_spec (2.0.0) [ 13] [Resolved ] [ 1] J2EE JACC 1.1 (1.0.2) [ 14] [Resolved ] [ 1] Apache ServiceMix Bundles: wsdl4j-1.6.1 (1.6.1.1) [ 16] [Resolved ] [ 1] OPS4J Pax Logging - API (1.4) [ 17] [Resolved ] [ 1] pluginName (1.0.0.v20080604-1500) [ 18] [Resolved ] [ 1] Apache Jakarta Commons Lang (2.4.0.v20081016-1030) [ 19] [Resolved ] [ 1] Apache Commons Logging Plug-in (1.1.1.v200904062255) [ 20] [Resolved ] [ 1] Geronimo TxManager :: Connector (2.1.3) [ 21] [Resolved ] [ 1] Geronimo TxManager :: Transaction (2.1.3) [ 22] [Resolved ] [ 1] Apache OpenEJB :: Container :: API (3.1.2.SNAPSHOT) [ 23] [Resolved ] [ 1] Apache OpenEJB :: Container :: Java Agent (3.1.2.SNAPSHOT) [ 24] [Resolved ] [ 1] Apache OpenEJB :: Container :: Java EE (3.1.2.SNAPSHOT) [ 25] [Resolved ] [ 1] Apache OpenEJB :: Container :: Loader (3.1.2.SNAPSHOT) [ 27] [Resolved ] [ 1] Apache XBean :: ASM shaded (repackaged) (3.7.0.SNAPSHOT) [ 28] [Resolved ] [ 1] Apache XBean :: Finder shaded (repackaged) (3.7.0.SNAPSHOT) [ 29] [Resolved ] [ 1] Apache XBean :: Naming (3.7.0.SNAPSHOT) [ 30] [Resolved ] [ 1] Apache XBean :: Reflect (3.7.0.SNAPSHOT) Install the new bundle from http://svn.apache.org/repos/asf/openejb/trunk/sandbox/openejb-osgi/openejb-core-osgi. Build it locally so it's in Maven's local repo. install file:C:\.m2\org\apache\openejb\openejb-core-osgi\3.1.2-SNAPSHOT\openejb-core-osgi-3.1.2-SNAPSHOT.jar Install OPS4J wrap bundle and start it install http://repo1.maven.org/maven2/org/ops4j/pax/url/pax-url-wrap/1.1.2/pax-url-wrap-1.1.2.jar install wrap:http://repo2.maven.org/maven2/org/apache/activemq/activemq-ra/4.1.1/activemq-ra-4.1.1.jar install wrap:http://repo2.maven.org/maven2/org/apache/activemq/activemq-core/4.1.1/activemq-core-4.1.1.jar Bounce felix with -Dopenejb.log.factory=org.apache.openejb.util.JuliLogStreamFactory on the command line: java -Dopenejb.log.factory=org.apache.openejb.util.JuliLogStreamFactory -jar bin/felix.jar "c:\openejb-osgi\felix-cache" -> ps START LEVEL 1 ID State Level Name [ 0] [Active ] [ 0] System Bundle (2.0.1) [ 1] [Active ] [ 1] Apache Felix Bundle Repository (1.4.2) [ 2] [Active ] [ 1] Apache Felix Shell Service (1.4.1) [ 3] [Active ] [ 1] Apache Felix Shell TUI (1.4.1) [ 4] [Active ] [ 1] Apache OpenEJB :: Container :: Core (3.1.2.SNAPSHOT) [ 5] [Resolved ] [ 1] geronimo-annotation_1.0_spec (1.1.1) [ 6] [Resolved ] [ 1] geronimo-ejb_3.0_spec (1.0.1) [ 7] [Resolved ] [ 1] geronimo-jta_1.1_spec (1.1.1) [ 8] [Resolved ] [ 1] geronimo-interceptor_3.0_spec (1.0.1) [ 9] [Resolved ] [ 1] geronimo-javamail_1.4_spec (1.6) [ 10] [Resolved ] [ 1] geronimo-j2ee-management_1.1_spec (1.0.1) [ 11] [Resolved ] [ 1] geronimo-jpa_3.0_spec (1.1.1) [ 12] [Resolved ] [ 1] geronimo-j2ee-connector_1.5_spec (2.0.0) [ 13] [Resolved ] [ 1] J2EE JACC 1.1 (1.0.2) [ 14] [Resolved ] [ 1] Apache ServiceMix Bundles: wsdl4j-1.6.1 (1.6.1.1) [ 16] [Resolved ] [ 1] OPS4J Pax Logging - API (1.4) [ 17] [Resolved ] [ 1] pluginName (1.0.0.v20080604-1500) [ 18] [Resolved ] [ 1] Apache Jakarta Commons Lang (2.4.0.v20081016-1030) [ 19] [Resolved ] [ 1] Apache Commons Logging Plug-in (1.1.1.v200904062255) [ 20] [Resolved ] [ 1] Geronimo TxManager :: Connector (2.1.3) [ 21] [Resolved ] [ 1] Geronimo TxManager :: Transaction (2.1.3) [ 22] [Resolved ] [ 1] Apache OpenEJB :: Container :: API (3.1.2.SNAPSHOT) [ 23] [Resolved ] [ 1] Apache OpenEJB :: Container :: Java Agent (3.1.2.SNAPSHOT) [ 24] [Resolved ] [ 1] Apache OpenEJB :: Container :: Java EE (3.1.2.SNAPSHOT) [ 25] [Resolved ] [ 1] Apache OpenEJB :: Container :: Loader (3.1.2.SNAPSHOT) [ 27] [Resolved ] [ 1] Apache XBean :: ASM shaded (repackaged) (3.7.0.SNAPSHOT) [ 28] [Resolved ] [ 1] Apache XBean :: Finder shaded (repackaged) (3.7.0.SNAPSHOT) [ 29] [Resolved ] [ 1] Apache XBean :: Naming (3.7.0.SNAPSHOT) [ 30] [Resolved ] [ 1] Apache XBean :: Reflect (3.7.0.SNAPSHOT) [ 31] [Active ] [ 1] Apache OpenEJB :: Container :: Core :: OSGi (3.1.2.SNAPSHOT) [ 32] [Resolved ] [ 1] geronimo-jms_1.1_spec (1.1.1) [ 35] [Active ] [ 1] OPS4J Pax Url - wrap: (1.1.2) [ 36] [Resolved ] [ 1] wrap_http___repo2.maven.org_maven2_org_apache_activemq_activemq-core_4.1.1_activemq-core-4.1.1.jar (0) [ 37] [Resolved ] [ 1] wrap_http___repo2.maven.org_maven2_org_apache_activemq_activemq-ra_4.1.1_activemq-ra-4.1.1.jar (0) -> start 31 Activator started DEBUG: juli.properties FATAL ERROR WHILE CONFIGURING LOGGING!!!. MISSING logging.properties FILE Apache OpenEJB ${pom.version} build: @DATE-REPLACED-BY-MAVEN@-@TIME-REPLACED-BY-MAVEN@ http://openejb.apache.org/ 2009-10-23 22:39:53 org.apache.openejb.OpenEJB$Instance <init> INFO: ******************************************************************************** OpenEJB http://openejb.apache.org/ Startup: 23.10.09 22:39 Copyright 1999-2009 (C) Apache OpenEJB Project, All Rights Reserved. Version: ${pom.version} Build date: @DATE-REPLACED-BY-MAVEN@ Build time: @TIME-REPLACED-BY-MAVEN@ ******************************************************************************** 2009-10-23 22:39:53 org.apache.openejb.OpenEJB$Instance <init> INFO: openejb.home = C:\openejb-osgi\felix-framework-2.0.1 2009-10-23 22:39:53 org.apache.openejb.OpenEJB$Instance <init> INFO: openejb.base = C:\openejb-osgi\felix-framework-2.0.1 DEBUG: META-INF/services/javax.xml.parsers.SAXParserFactory 2009-10-23 22:39:53 org.apache.openejb.config.ConfigurationFactory configureService INFO: Configuring Service(id=Default Security Service, type=SecurityService, provider-id=Default Security Service) 2009-10-23 22:39:53 org.apache.openejb.config.ConfigurationFactory configureService INFO: Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager) 2009-10-23 22:39:53 org.apache.openejb.config.ConfigurationFactory configureService INFO: Configuring Service(id=My Stateless Container, type=Container, provider-id=Default Stateless Container) 2009-10-23 22:39:53 org.apache.openejb.util.OptionsLog info INFO: Using 'openejb.deployments.classpath=false' 2009-10-23 22:39:53 org.apache.openejb.assembler.classic.Assembler createRecipe INFO: Creating TransactionManager(id=Default Transaction Manager) 2009-10-23 22:39:53 org.apache.openejb.assembler.classic.Assembler createRecipe INFO: Creating SecurityService(id=Default Security Service) 2009-10-23 22:39:53 org.apache.openejb.assembler.classic.Assembler createRecipe INFO: Creating Container(id=My Stateless Container) OpenEJB *seems* running fine. The missing pieces are to create a service bundle so JNDI namespace is visible to other bundles being ejb clients or exposing ejb interfaces as osgi services and finally create a osgified deployer (picks up instaled bundles that are ejbs as well, passes them to openejb and registers osgi services). Fancy helping out? Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineHi Jacek...
Sounds and looks really cool, I will give it a try today and send a feedback. On Fri, Oct 23, 2009 at 11:36 PM, Jacek Laskowski <jacek@...> wrote: > Hi, > > With the recent changes in the openejb repo as far as MANIFEST.MF > generation goes and the new openejb-core-osgi project/bundle, it seems > that OpenEJB boots up fine within OSGi framework - Apache Felix 2.0.1. > If you fancy giving it a try, do the following. I'd appreciate if it's > verified on another machine before me going further with the openejb > osgification. Make sure you're working with the latest openejb > sources. Comments welcome. It looks it's on time with Geronimo > osgification. I couldn't have wished more. > > Download felix-framework-2.0.1.tar.gz and install it > > Change its conf/config.properties so that it contains > felix.log.level=4 (more information on wiring) and > org.osgi.framework.system.packages.extra=sun.misc > > Change default.properties in bin/felix.jar -> javax.transaction turned off > jar xf felix.jar default.properties > sed 's,javax.transaction,#javax.transaction,' default.properties > > default.properties.NOWY > cp default.properties.NOWY default.properties > jar uf felix.jar default.properties > rm default.properties* > > Run Felix - java -jar bin/felix.jar "c:\openejb-osgi\felix-cache" > jlaskowski@work /cygdrive/c/openejb-osgi/felix-framework-2.0.1 > $ java -jar bin/felix.jar "c:\openejb-osgi\felix-cache" > > Welcome to Felix > ================ > > DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0 > DEBUG: WIRE: 1.0 -> org.osgi.service.log -> 2.0 > DEBUG: WIRE: 1.0 -> org.osgi.service.url -> 0 > DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0 > DEBUG: WIRE: 2.0 -> org.osgi.service.packageadmin -> 0 > DEBUG: WIRE: 2.0 -> org.osgi.service.startlevel -> 0 > DEBUG: DYNAMIC WIRE: 1.0 -> org.apache.felix.shell -> 2.0 > DEBUG: WIRE: 3.0 -> org.apache.felix.shell -> 2.0 > DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0 > -> ps > START LEVEL 1 > ID State Level Name > [ 0] [Active ] [ 0] System Bundle (2.0.1) > [ 1] [Active ] [ 1] Apache Felix Bundle Repository (1.4.2) > [ 2] [Active ] [ 1] Apache Felix Shell Service (1.4.1) > [ 3] [Active ] [ 1] Apache Felix Shell TUI (1.4.1) > > Install the following bundles (make sure you're online as some are > pulled down from the Internet). Execute the following commands from > within felix console: > > install file:C:/.m2/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/openejb-core-3.1.2-SNAPSHOT.jar > install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-annotation_1.0_spec/1.1.1/geronimo-annotation_1.0_spec-1.1.1.jar > install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-ejb_3.0_spec/1.0.1/geronimo-ejb_3.0_spec-1.0.1.jar > install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1.jar > install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-interceptor_3.0_spec/1.0.1/geronimo-interceptor_3.0_spec-1.0.1.jar > install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.6/geronimo-javamail_1.4_spec-1.6.jar > install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-j2ee-management_1.1_spec/1.0.1/geronimo-j2ee-management_1.1_spec-1.0.1.jar > install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-jpa_3.0_spec/1.1.1/geronimo-jpa_3.0_spec-1.1.1.jar > install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-j2ee-connector_1.5_spec/2.0.0/geronimo-j2ee-connector_1.5_spec-2.0.0.jar > install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-jacc_1.1_spec/1.0.2/geronimo-jacc_1.1_spec-1.0.2.jar > install http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.wsdl4j/1.6.1_1/org.apache.servicemix.bundles.wsdl4j-1.6.1_1.jar > install http://download.eclipse.org/tools/orbit/downloads/drops/R20090825191606/bundles/org.apache.commons.cli_1.0.0.v20080604-1500.jar > install http://download.eclipse.org/tools/orbit/downloads/drops/R20090825191606/bundles/org.apache.commons.lang_2.4.0.v20081016-1030.jar > install http://download.eclipse.org/tools/orbit/downloads/drops/R20090825191606/bundles/org.apache.commons.logging_1.1.1.v200904062255.jar > install http://repo2.maven.org/maven2/org/apache/geronimo/components/geronimo-connector/2.1.3/geronimo-connector-2.1.3.jar > install http://repo2.maven.org/maven2/org/apache/geronimo/components/geronimo-transaction/2.1.3/geronimo-transaction-2.1.3.jar > install file:C:\.m2\org\apache\openejb\openejb-api\3.1.2-SNAPSHOT\openejb-api-3.1.2-SNAPSHOT.jar > install file:C:\.m2\org\apache\openejb\openejb-javaagent\3.1.2-SNAPSHOT\openejb-javaagent-3.1.2-SNAPSHOT.jar > install file:C:/.m2/org/apache/openejb/openejb-jee/3.1.2-SNAPSHOT/openejb-jee-3.1.2-SNAPSHOT.jar > install file:C:/.m2/org/apache/openejb/openejb-loader/3.1.2-SNAPSHOT/openejb-loader-3.1.2-SNAPSHOT.jar > install file:C:\.m2\org\apache\xbean\xbean-asm-shaded\3.7-SNAPSHOT\xbean-asm-shaded-3.7-SNAPSHOT.jar > install file:C:\.m2\org\apache\xbean\xbean-finder-shaded\3.7-SNAPSHOT\xbean-finder-shaded-3.7-SNAPSHOT.jar > install file:C:\.m2\org\apache\xbean\xbean-naming\3.7-SNAPSHOT\xbean-naming-3.7-SNAPSHOT.jar > install file:C:\.m2\org\apache\xbean\xbean-reflect\3.7-SNAPSHOT\xbean-reflect-3.7-SNAPSHOT.jar > > Execute "start 4" and Core is up. > > -> ps > START LEVEL 1 > ID State Level Name > [ 0] [Active ] [ 0] System Bundle (2.0.1) > [ 1] [Active ] [ 1] Apache Felix Bundle Repository (1.4.2) > [ 2] [Active ] [ 1] Apache Felix Shell Service (1.4.1) > [ 3] [Active ] [ 1] Apache Felix Shell TUI (1.4.1) > [ 4] [Active ] [ 1] Apache OpenEJB :: Container :: Core > (3.1.2.SNAPSHOT) > [ 5] [Resolved ] [ 1] geronimo-annotation_1.0_spec (1.1.1) > [ 6] [Resolved ] [ 1] geronimo-ejb_3.0_spec (1.0.1) > [ 7] [Resolved ] [ 1] geronimo-jta_1.1_spec (1.1.1) > [ 8] [Resolved ] [ 1] geronimo-interceptor_3.0_spec (1.0.1) > [ 9] [Resolved ] [ 1] geronimo-javamail_1.4_spec (1.6) > [ 10] [Resolved ] [ 1] geronimo-j2ee-management_1.1_spec (1.0.1) > [ 11] [Resolved ] [ 1] geronimo-jpa_3.0_spec (1.1.1) > [ 12] [Resolved ] [ 1] geronimo-j2ee-connector_1.5_spec (2.0.0) > [ 13] [Resolved ] [ 1] J2EE JACC 1.1 (1.0.2) > [ 14] [Resolved ] [ 1] Apache ServiceMix Bundles: wsdl4j-1.6.1 (1.6.1.1) > [ 16] [Resolved ] [ 1] OPS4J Pax Logging - API (1.4) > [ 17] [Resolved ] [ 1] pluginName (1.0.0.v20080604-1500) > [ 18] [Resolved ] [ 1] Apache Jakarta Commons Lang (2.4.0.v20081016-1030) > [ 19] [Resolved ] [ 1] Apache Commons Logging Plug-in > (1.1.1.v200904062255) > [ 20] [Resolved ] [ 1] Geronimo TxManager :: Connector (2.1.3) > [ 21] [Resolved ] [ 1] Geronimo TxManager :: Transaction (2.1.3) > [ 22] [Resolved ] [ 1] Apache OpenEJB :: Container :: API (3.1.2.SNAPSHOT) > [ 23] [Resolved ] [ 1] Apache OpenEJB :: Container :: Java Agent > (3.1.2.SNAPSHOT) > [ 24] [Resolved ] [ 1] Apache OpenEJB :: Container :: Java EE > (3.1.2.SNAPSHOT) > [ 25] [Resolved ] [ 1] Apache OpenEJB :: Container :: Loader > (3.1.2.SNAPSHOT) > [ 27] [Resolved ] [ 1] Apache XBean :: ASM shaded (repackaged) > (3.7.0.SNAPSHOT) > [ 28] [Resolved ] [ 1] Apache XBean :: Finder shaded > (repackaged) (3.7.0.SNAPSHOT) > [ 29] [Resolved ] [ 1] Apache XBean :: Naming (3.7.0.SNAPSHOT) > [ 30] [Resolved ] [ 1] Apache XBean :: Reflect (3.7.0.SNAPSHOT) > > Install the new bundle from > http://svn.apache.org/repos/asf/openejb/trunk/sandbox/openejb-osgi/openejb-core-osgi. > Build it locally so it's in Maven's local repo. > install file:C:\.m2\org\apache\openejb\openejb-core-osgi\3.1.2-SNAPSHOT\openejb-core-osgi-3.1.2-SNAPSHOT.jar > > Install OPS4J wrap bundle and start it > install http://repo1.maven.org/maven2/org/ops4j/pax/url/pax-url-wrap/1.1.2/pax-url-wrap-1.1.2.jar > > install wrap:http://repo2.maven.org/maven2/org/apache/activemq/activemq-ra/4.1.1/activemq-ra-4.1.1.jar > install wrap:http://repo2.maven.org/maven2/org/apache/activemq/activemq-core/4.1.1/activemq-core-4.1.1.jar > > Bounce felix with > -Dopenejb.log.factory=org.apache.openejb.util.JuliLogStreamFactory on > the command line: > java -Dopenejb.log.factory=org.apache.openejb.util.JuliLogStreamFactory > -jar bin/felix.jar "c:\openejb-osgi\felix-cache" > > -> ps > START LEVEL 1 > ID State Level Name > [ 0] [Active ] [ 0] System Bundle (2.0.1) > [ 1] [Active ] [ 1] Apache Felix Bundle Repository (1.4.2) > [ 2] [Active ] [ 1] Apache Felix Shell Service (1.4.1) > [ 3] [Active ] [ 1] Apache Felix Shell TUI (1.4.1) > [ 4] [Active ] [ 1] Apache OpenEJB :: Container :: Core > (3.1.2.SNAPSHOT) > [ 5] [Resolved ] [ 1] geronimo-annotation_1.0_spec (1.1.1) > [ 6] [Resolved ] [ 1] geronimo-ejb_3.0_spec (1.0.1) > [ 7] [Resolved ] [ 1] geronimo-jta_1.1_spec (1.1.1) > [ 8] [Resolved ] [ 1] geronimo-interceptor_3.0_spec (1.0.1) > [ 9] [Resolved ] [ 1] geronimo-javamail_1.4_spec (1.6) > [ 10] [Resolved ] [ 1] geronimo-j2ee-management_1.1_spec (1.0.1) > [ 11] [Resolved ] [ 1] geronimo-jpa_3.0_spec (1.1.1) > [ 12] [Resolved ] [ 1] geronimo-j2ee-connector_1.5_spec (2.0.0) > [ 13] [Resolved ] [ 1] J2EE JACC 1.1 (1.0.2) > [ 14] [Resolved ] [ 1] Apache ServiceMix Bundles: wsdl4j-1.6.1 (1.6.1.1) > [ 16] [Resolved ] [ 1] OPS4J Pax Logging - API (1.4) > [ 17] [Resolved ] [ 1] pluginName (1.0.0.v20080604-1500) > [ 18] [Resolved ] [ 1] Apache Jakarta Commons Lang (2.4.0.v20081016-1030) > [ 19] [Resolved ] [ 1] Apache Commons Logging Plug-in > (1.1.1.v200904062255) > [ 20] [Resolved ] [ 1] Geronimo TxManager :: Connector (2.1.3) > [ 21] [Resolved ] [ 1] Geronimo TxManager :: Transaction (2.1.3) > [ 22] [Resolved ] [ 1] Apache OpenEJB :: Container :: API (3.1.2.SNAPSHOT) > [ 23] [Resolved ] [ 1] Apache OpenEJB :: Container :: Java Agent > (3.1.2.SNAPSHOT) > [ 24] [Resolved ] [ 1] Apache OpenEJB :: Container :: Java EE > (3.1.2.SNAPSHOT) > [ 25] [Resolved ] [ 1] Apache OpenEJB :: Container :: Loader > (3.1.2.SNAPSHOT) > [ 27] [Resolved ] [ 1] Apache XBean :: ASM shaded (repackaged) > (3.7.0.SNAPSHOT) > [ 28] [Resolved ] [ 1] Apache XBean :: Finder shaded > (repackaged) (3.7.0.SNAPSHOT) > [ 29] [Resolved ] [ 1] Apache XBean :: Naming (3.7.0.SNAPSHOT) > [ 30] [Resolved ] [ 1] Apache XBean :: Reflect (3.7.0.SNAPSHOT) > [ 31] [Active ] [ 1] Apache OpenEJB :: Container :: Core :: > OSGi (3.1.2.SNAPSHOT) > [ 32] [Resolved ] [ 1] geronimo-jms_1.1_spec (1.1.1) > [ 35] [Active ] [ 1] OPS4J Pax Url - wrap: (1.1.2) > [ 36] [Resolved ] [ 1] > wrap_http___repo2.maven.org_maven2_org_apache_activemq_activemq-core_4.1.1_activemq-core-4.1.1.jar > (0) > [ 37] [Resolved ] [ 1] > wrap_http___repo2.maven.org_maven2_org_apache_activemq_activemq-ra_4.1.1_activemq-ra-4.1.1.jar > (0) > > -> start 31 > Activator started > DEBUG: juli.properties > FATAL ERROR WHILE CONFIGURING LOGGING!!!. MISSING logging.properties FILE > Apache OpenEJB ${pom.version} build: > @DATE-REPLACED-BY-MAVEN@-@TIME-REPLACED-BY-MAVEN@ > http://openejb.apache.org/ > 2009-10-23 22:39:53 org.apache.openejb.OpenEJB$Instance <init> > INFO: > ******************************************************************************** > OpenEJB http://openejb.apache.org/ > Startup: 23.10.09 22:39 > Copyright 1999-2009 (C) Apache OpenEJB Project, All Rights Reserved. > Version: ${pom.version} > Build date: @DATE-REPLACED-BY-MAVEN@ > Build time: @TIME-REPLACED-BY-MAVEN@ > ******************************************************************************** > > > 2009-10-23 22:39:53 org.apache.openejb.OpenEJB$Instance <init> > INFO: openejb.home = C:\openejb-osgi\felix-framework-2.0.1 > 2009-10-23 22:39:53 org.apache.openejb.OpenEJB$Instance <init> > INFO: openejb.base = C:\openejb-osgi\felix-framework-2.0.1 > DEBUG: META-INF/services/javax.xml.parsers.SAXParserFactory > 2009-10-23 22:39:53 org.apache.openejb.config.ConfigurationFactory > configureService > INFO: Configuring Service(id=Default Security Service, > type=SecurityService, provider-id=Default Security Service) > 2009-10-23 22:39:53 org.apache.openejb.config.ConfigurationFactory > configureService > INFO: Configuring Service(id=Default Transaction Manager, > type=TransactionManager, provider-id=Default Transaction Manager) > 2009-10-23 22:39:53 org.apache.openejb.config.ConfigurationFactory > configureService > INFO: Configuring Service(id=My Stateless Container, type=Container, > provider-id=Default Stateless Container) > 2009-10-23 22:39:53 org.apache.openejb.util.OptionsLog info > INFO: Using 'openejb.deployments.classpath=false' > 2009-10-23 22:39:53 org.apache.openejb.assembler.classic.Assembler createRecipe > INFO: Creating TransactionManager(id=Default Transaction Manager) > 2009-10-23 22:39:53 org.apache.openejb.assembler.classic.Assembler createRecipe > INFO: Creating SecurityService(id=Default Security Service) > 2009-10-23 22:39:53 org.apache.openejb.assembler.classic.Assembler createRecipe > INFO: Creating Container(id=My Stateless Container) > > OpenEJB *seems* running fine. > > The missing pieces are to create a service bundle so JNDI namespace is > visible to other bundles being ejb clients or exposing ejb interfaces > as osgi services and finally create a osgified deployer (picks up > instaled bundles that are ejbs as well, passes them to openejb and > registers osgi services). Fancy helping out? > > Jacek > > -- > Jacek Laskowski > Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl > -- Thanks - Mohammad Nour - LinkedIn: http://www.linkedin.com/in/mnour ---- "Life is like riding a bicycle. To keep your balance you must keep moving" - Albert Einstein "Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best." - Clean Code: A Handbook of Agile Software Craftsmanship |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineAwesome!
Good job Jacek! I'll give it a try on Monday and give you a feedback. Thanks for that. I'll be a very nice feature. Jean-Louis
|
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineHey Jacek...
I tried the steps and after I installed the mentioned bundles I got this BundleException org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.openejb.core [6]: package; (package=javax.jws) my ps execution is -> ps START LEVEL 1 ID State Level Name [ 0] [Active ] [ 0] System Bundle (2.0.1) [ 1] [Active ] [ 1] Apache Felix Bundle Repository (1.4.2) [ 2] [Active ] [ 1] Apache Felix Shell Service (1.4.1) [ 3] [Active ] [ 1] Apache Felix Shell TUI (1.4.1) [ 6] [Installed ] [ 1] Apache OpenEJB :: Container :: Core (3.1.2.SNAPSHOT) [ 7] [Installed ] [ 1] geronimo-annotation_1.0_spec (1.1.1) [ 8] [Installed ] [ 1] geronimo-ejb_3.0_spec (1.0.1) [ 9] [Installed ] [ 1] geronimo-jta_1.1_spec (1.1.1) [ 10] [Installed ] [ 1] geronimo-interceptor_3.0_spec (1.0.1) [ 11] [Installed ] [ 1] geronimo-javamail_1.4_spec (1.6) [ 12] [Installed ] [ 1] geronimo-j2ee-management_1.1_spec (1.0.1) [ 13] [Installed ] [ 1] geronimo-jpa_3.0_spec (1.1.1) [ 14] [Installed ] [ 1] geronimo-j2ee-connector_1.5_spec (2.0.0) [ 15] [Installed ] [ 1] J2EE JACC 1.1 (1.0.2) [ 16] [Installed ] [ 1] Apache ServiceMix Bundles: wsdl4j-1.6.1 (1.6.1.1) [ 17] [Installed ] [ 1] pluginName (1.0.0.v20080604-1500) [ 18] [Installed ] [ 1] Apache Jakarta Commons Lang (2.4.0.v20081016-1030) [ 19] [Installed ] [ 1] Apache Commons Logging Plug-in (1.1.1.v200904062255) [ 20] [Installed ] [ 1] Geronimo TxManager :: Connector (2.1.3) [ 21] [Installed ] [ 1] Geronimo TxManager :: Transaction (2.1.3) [ 22] [Installed ] [ 1] Apache OpenEJB :: Container :: API (3.1.2.SNAPSHOT) [ 23] [Installed ] [ 1] Apache OpenEJB :: Container :: Java Agent (3.1.2.SNAPSHOT) [ 25] [Installed ] [ 1] Apache OpenEJB :: Container :: Java EE (3.1.2.SNAPSHOT) [ 26] [Installed ] [ 1] Apache OpenEJB :: Container :: Loader (3.1.2.SNAPSHOT) [ 27] [Installed ] [ 1] Apache XBean :: ASM shaded (repackaged) (3.6) [ 28] [Installed ] [ 1] Apache XBean :: Finder shaded (repackaged) (3.6) [ 29] [Installed ] [ 1] Apache XBean :: Reflect (3.6) [ 30] [Installed ] [ 1] Apache XBean :: Naming (3.6) -> start 6 org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.openejb.core [6]: package; (package=javax.jws) Any clues ? On Sat, Oct 24, 2009 at 10:21 AM, Mohammad Nour El-Din <nour.mohammad@...> wrote: > Hi Jacek... > > Sounds and looks really cool, I will give it a try today and send a feedback. > > On Fri, Oct 23, 2009 at 11:36 PM, Jacek Laskowski > <jacek@...> wrote: >> Hi, >> >> With the recent changes in the openejb repo as far as MANIFEST.MF >> generation goes and the new openejb-core-osgi project/bundle, it seems >> that OpenEJB boots up fine within OSGi framework - Apache Felix 2.0.1. >> If you fancy giving it a try, do the following. I'd appreciate if it's >> verified on another machine before me going further with the openejb >> osgification. Make sure you're working with the latest openejb >> sources. Comments welcome. It looks it's on time with Geronimo >> osgification. I couldn't have wished more. >> >> Download felix-framework-2.0.1.tar.gz and install it >> >> Change its conf/config.properties so that it contains >> felix.log.level=4 (more information on wiring) and >> org.osgi.framework.system.packages.extra=sun.misc >> >> Change default.properties in bin/felix.jar -> javax.transaction turned off >> jar xf felix.jar default.properties >> sed 's,javax.transaction,#javax.transaction,' default.properties > >> default.properties.NOWY >> cp default.properties.NOWY default.properties >> jar uf felix.jar default.properties >> rm default.properties* >> >> Run Felix - java -jar bin/felix.jar "c:\openejb-osgi\felix-cache" >> jlaskowski@work /cygdrive/c/openejb-osgi/felix-framework-2.0.1 >> $ java -jar bin/felix.jar "c:\openejb-osgi\felix-cache" >> >> Welcome to Felix >> ================ >> >> DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0 >> DEBUG: WIRE: 1.0 -> org.osgi.service.log -> 2.0 >> DEBUG: WIRE: 1.0 -> org.osgi.service.url -> 0 >> DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0 >> DEBUG: WIRE: 2.0 -> org.osgi.service.packageadmin -> 0 >> DEBUG: WIRE: 2.0 -> org.osgi.service.startlevel -> 0 >> DEBUG: DYNAMIC WIRE: 1.0 -> org.apache.felix.shell -> 2.0 >> DEBUG: WIRE: 3.0 -> org.apache.felix.shell -> 2.0 >> DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0 >> -> ps >> START LEVEL 1 >> ID State Level Name >> [ 0] [Active ] [ 0] System Bundle (2.0.1) >> [ 1] [Active ] [ 1] Apache Felix Bundle Repository (1.4.2) >> [ 2] [Active ] [ 1] Apache Felix Shell Service (1.4.1) >> [ 3] [Active ] [ 1] Apache Felix Shell TUI (1.4.1) >> >> Install the following bundles (make sure you're online as some are >> pulled down from the Internet). Execute the following commands from >> within felix console: >> >> install file:C:/.m2/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/openejb-core-3.1.2-SNAPSHOT.jar >> install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-annotation_1.0_spec/1.1.1/geronimo-annotation_1.0_spec-1.1.1.jar >> install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-ejb_3.0_spec/1.0.1/geronimo-ejb_3.0_spec-1.0.1.jar >> install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1.jar >> install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-interceptor_3.0_spec/1.0.1/geronimo-interceptor_3.0_spec-1.0.1.jar >> install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.6/geronimo-javamail_1.4_spec-1.6.jar >> install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-j2ee-management_1.1_spec/1.0.1/geronimo-j2ee-management_1.1_spec-1.0.1.jar >> install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-jpa_3.0_spec/1.1.1/geronimo-jpa_3.0_spec-1.1.1.jar >> install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-j2ee-connector_1.5_spec/2.0.0/geronimo-j2ee-connector_1.5_spec-2.0.0.jar >> install http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-jacc_1.1_spec/1.0.2/geronimo-jacc_1.1_spec-1.0.2.jar >> install http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.wsdl4j/1.6.1_1/org.apache.servicemix.bundles.wsdl4j-1.6.1_1.jar >> install http://download.eclipse.org/tools/orbit/downloads/drops/R20090825191606/bundles/org.apache.commons.cli_1.0.0.v20080604-1500.jar >> install http://download.eclipse.org/tools/orbit/downloads/drops/R20090825191606/bundles/org.apache.commons.lang_2.4.0.v20081016-1030.jar >> install http://download.eclipse.org/tools/orbit/downloads/drops/R20090825191606/bundles/org.apache.commons.logging_1.1.1.v200904062255.jar >> install http://repo2.maven.org/maven2/org/apache/geronimo/components/geronimo-connector/2.1.3/geronimo-connector-2.1.3.jar >> install http://repo2.maven.org/maven2/org/apache/geronimo/components/geronimo-transaction/2.1.3/geronimo-transaction-2.1.3.jar >> install file:C:\.m2\org\apache\openejb\openejb-api\3.1.2-SNAPSHOT\openejb-api-3.1.2-SNAPSHOT.jar >> install file:C:\.m2\org\apache\openejb\openejb-javaagent\3.1.2-SNAPSHOT\openejb-javaagent-3.1.2-SNAPSHOT.jar >> install file:C:/.m2/org/apache/openejb/openejb-jee/3.1.2-SNAPSHOT/openejb-jee-3.1.2-SNAPSHOT.jar >> install file:C:/.m2/org/apache/openejb/openejb-loader/3.1.2-SNAPSHOT/openejb-loader-3.1.2-SNAPSHOT.jar >> install file:C:\.m2\org\apache\xbean\xbean-asm-shaded\3.7-SNAPSHOT\xbean-asm-shaded-3.7-SNAPSHOT.jar >> install file:C:\.m2\org\apache\xbean\xbean-finder-shaded\3.7-SNAPSHOT\xbean-finder-shaded-3.7-SNAPSHOT.jar >> install file:C:\.m2\org\apache\xbean\xbean-naming\3.7-SNAPSHOT\xbean-naming-3.7-SNAPSHOT.jar >> install file:C:\.m2\org\apache\xbean\xbean-reflect\3.7-SNAPSHOT\xbean-reflect-3.7-SNAPSHOT.jar >> >> Execute "start 4" and Core is up. >> >> -> ps >> START LEVEL 1 >> ID State Level Name >> [ 0] [Active ] [ 0] System Bundle (2.0.1) >> [ 1] [Active ] [ 1] Apache Felix Bundle Repository (1.4.2) >> [ 2] [Active ] [ 1] Apache Felix Shell Service (1.4.1) >> [ 3] [Active ] [ 1] Apache Felix Shell TUI (1.4.1) >> [ 4] [Active ] [ 1] Apache OpenEJB :: Container :: Core >> (3.1.2.SNAPSHOT) >> [ 5] [Resolved ] [ 1] geronimo-annotation_1.0_spec (1.1.1) >> [ 6] [Resolved ] [ 1] geronimo-ejb_3.0_spec (1.0.1) >> [ 7] [Resolved ] [ 1] geronimo-jta_1.1_spec (1.1.1) >> [ 8] [Resolved ] [ 1] geronimo-interceptor_3.0_spec (1.0.1) >> [ 9] [Resolved ] [ 1] geronimo-javamail_1.4_spec (1.6) >> [ 10] [Resolved ] [ 1] geronimo-j2ee-management_1.1_spec (1.0.1) >> [ 11] [Resolved ] [ 1] geronimo-jpa_3.0_spec (1.1.1) >> [ 12] [Resolved ] [ 1] geronimo-j2ee-connector_1.5_spec (2.0.0) >> [ 13] [Resolved ] [ 1] J2EE JACC 1.1 (1.0.2) >> [ 14] [Resolved ] [ 1] Apache ServiceMix Bundles: wsdl4j-1.6.1 (1.6.1.1) >> [ 16] [Resolved ] [ 1] OPS4J Pax Logging - API (1.4) >> [ 17] [Resolved ] [ 1] pluginName (1.0.0.v20080604-1500) >> [ 18] [Resolved ] [ 1] Apache Jakarta Commons Lang (2.4.0.v20081016-1030) >> [ 19] [Resolved ] [ 1] Apache Commons Logging Plug-in >> (1.1.1.v200904062255) >> [ 20] [Resolved ] [ 1] Geronimo TxManager :: Connector (2.1.3) >> [ 21] [Resolved ] [ 1] Geronimo TxManager :: Transaction (2.1.3) >> [ 22] [Resolved ] [ 1] Apache OpenEJB :: Container :: API (3.1.2.SNAPSHOT) >> [ 23] [Resolved ] [ 1] Apache OpenEJB :: Container :: Java Agent >> (3.1.2.SNAPSHOT) >> [ 24] [Resolved ] [ 1] Apache OpenEJB :: Container :: Java EE >> (3.1.2.SNAPSHOT) >> [ 25] [Resolved ] [ 1] Apache OpenEJB :: Container :: Loader >> (3.1.2.SNAPSHOT) >> [ 27] [Resolved ] [ 1] Apache XBean :: ASM shaded (repackaged) >> (3.7.0.SNAPSHOT) >> [ 28] [Resolved ] [ 1] Apache XBean :: Finder shaded >> (repackaged) (3.7.0.SNAPSHOT) >> [ 29] [Resolved ] [ 1] Apache XBean :: Naming (3.7.0.SNAPSHOT) >> [ 30] [Resolved ] [ 1] Apache XBean :: Reflect (3.7.0.SNAPSHOT) >> >> Install the new bundle from >> http://svn.apache.org/repos/asf/openejb/trunk/sandbox/openejb-osgi/openejb-core-osgi. >> Build it locally so it's in Maven's local repo. >> install file:C:\.m2\org\apache\openejb\openejb-core-osgi\3.1.2-SNAPSHOT\openejb-core-osgi-3.1.2-SNAPSHOT.jar >> >> Install OPS4J wrap bundle and start it >> install http://repo1.maven.org/maven2/org/ops4j/pax/url/pax-url-wrap/1.1.2/pax-url-wrap-1.1.2.jar >> >> install wrap:http://repo2.maven.org/maven2/org/apache/activemq/activemq-ra/4.1.1/activemq-ra-4.1.1.jar >> install wrap:http://repo2.maven.org/maven2/org/apache/activemq/activemq-core/4.1.1/activemq-core-4.1.1.jar >> >> Bounce felix with >> -Dopenejb.log.factory=org.apache.openejb.util.JuliLogStreamFactory on >> the command line: >> java -Dopenejb.log.factory=org.apache.openejb.util.JuliLogStreamFactory >> -jar bin/felix.jar "c:\openejb-osgi\felix-cache" >> >> -> ps >> START LEVEL 1 >> ID State Level Name >> [ 0] [Active ] [ 0] System Bundle (2.0.1) >> [ 1] [Active ] [ 1] Apache Felix Bundle Repository (1.4.2) >> [ 2] [Active ] [ 1] Apache Felix Shell Service (1.4.1) >> [ 3] [Active ] [ 1] Apache Felix Shell TUI (1.4.1) >> [ 4] [Active ] [ 1] Apache OpenEJB :: Container :: Core >> (3.1.2.SNAPSHOT) >> [ 5] [Resolved ] [ 1] geronimo-annotation_1.0_spec (1.1.1) >> [ 6] [Resolved ] [ 1] geronimo-ejb_3.0_spec (1.0.1) >> [ 7] [Resolved ] [ 1] geronimo-jta_1.1_spec (1.1.1) >> [ 8] [Resolved ] [ 1] geronimo-interceptor_3.0_spec (1.0.1) >> [ 9] [Resolved ] [ 1] geronimo-javamail_1.4_spec (1.6) >> [ 10] [Resolved ] [ 1] geronimo-j2ee-management_1.1_spec (1.0.1) >> [ 11] [Resolved ] [ 1] geronimo-jpa_3.0_spec (1.1.1) >> [ 12] [Resolved ] [ 1] geronimo-j2ee-connector_1.5_spec (2.0.0) >> [ 13] [Resolved ] [ 1] J2EE JACC 1.1 (1.0.2) >> [ 14] [Resolved ] [ 1] Apache ServiceMix Bundles: wsdl4j-1.6.1 (1.6.1.1) >> [ 16] [Resolved ] [ 1] OPS4J Pax Logging - API (1.4) >> [ 17] [Resolved ] [ 1] pluginName (1.0.0.v20080604-1500) >> [ 18] [Resolved ] [ 1] Apache Jakarta Commons Lang (2.4.0.v20081016-1030) >> [ 19] [Resolved ] [ 1] Apache Commons Logging Plug-in >> (1.1.1.v200904062255) >> [ 20] [Resolved ] [ 1] Geronimo TxManager :: Connector (2.1.3) >> [ 21] [Resolved ] [ 1] Geronimo TxManager :: Transaction (2.1.3) >> [ 22] [Resolved ] [ 1] Apache OpenEJB :: Container :: API (3.1.2.SNAPSHOT) >> [ 23] [Resolved ] [ 1] Apache OpenEJB :: Container :: Java Agent >> (3.1.2.SNAPSHOT) >> [ 24] [Resolved ] [ 1] Apache OpenEJB :: Container :: Java EE >> (3.1.2.SNAPSHOT) >> [ 25] [Resolved ] [ 1] Apache OpenEJB :: Container :: Loader >> (3.1.2.SNAPSHOT) >> [ 27] [Resolved ] [ 1] Apache XBean :: ASM shaded (repackaged) >> (3.7.0.SNAPSHOT) >> [ 28] [Resolved ] [ 1] Apache XBean :: Finder shaded >> (repackaged) (3.7.0.SNAPSHOT) >> [ 29] [Resolved ] [ 1] Apache XBean :: Naming (3.7.0.SNAPSHOT) >> [ 30] [Resolved ] [ 1] Apache XBean :: Reflect (3.7.0.SNAPSHOT) >> [ 31] [Active ] [ 1] Apache OpenEJB :: Container :: Core :: >> OSGi (3.1.2.SNAPSHOT) >> [ 32] [Resolved ] [ 1] geronimo-jms_1.1_spec (1.1.1) >> [ 35] [Active ] [ 1] OPS4J Pax Url - wrap: (1.1.2) >> [ 36] [Resolved ] [ 1] >> wrap_http___repo2.maven.org_maven2_org_apache_activemq_activemq-core_4.1.1_activemq-core-4.1.1.jar >> (0) >> [ 37] [Resolved ] [ 1] >> wrap_http___repo2.maven.org_maven2_org_apache_activemq_activemq-ra_4.1.1_activemq-ra-4.1.1.jar >> (0) >> >> -> start 31 >> Activator started >> DEBUG: juli.properties >> FATAL ERROR WHILE CONFIGURING LOGGING!!!. MISSING logging.properties FILE >> Apache OpenEJB ${pom.version} build: >> @DATE-REPLACED-BY-MAVEN@-@TIME-REPLACED-BY-MAVEN@ >> http://openejb.apache.org/ >> 2009-10-23 22:39:53 org.apache.openejb.OpenEJB$Instance <init> >> INFO: >> ******************************************************************************** >> OpenEJB http://openejb.apache.org/ >> Startup: 23.10.09 22:39 >> Copyright 1999-2009 (C) Apache OpenEJB Project, All Rights Reserved. >> Version: ${pom.version} >> Build date: @DATE-REPLACED-BY-MAVEN@ >> Build time: @TIME-REPLACED-BY-MAVEN@ >> ******************************************************************************** >> >> >> 2009-10-23 22:39:53 org.apache.openejb.OpenEJB$Instance <init> >> INFO: openejb.home = C:\openejb-osgi\felix-framework-2.0.1 >> 2009-10-23 22:39:53 org.apache.openejb.OpenEJB$Instance <init> >> INFO: openejb.base = C:\openejb-osgi\felix-framework-2.0.1 >> DEBUG: META-INF/services/javax.xml.parsers.SAXParserFactory >> 2009-10-23 22:39:53 org.apache.openejb.config.ConfigurationFactory >> configureService >> INFO: Configuring Service(id=Default Security Service, >> type=SecurityService, provider-id=Default Security Service) >> 2009-10-23 22:39:53 org.apache.openejb.config.ConfigurationFactory >> configureService >> INFO: Configuring Service(id=Default Transaction Manager, >> type=TransactionManager, provider-id=Default Transaction Manager) >> 2009-10-23 22:39:53 org.apache.openejb.config.ConfigurationFactory >> configureService >> INFO: Configuring Service(id=My Stateless Container, type=Container, >> provider-id=Default Stateless Container) >> 2009-10-23 22:39:53 org.apache.openejb.util.OptionsLog info >> INFO: Using 'openejb.deployments.classpath=false' >> 2009-10-23 22:39:53 org.apache.openejb.assembler.classic.Assembler createRecipe >> INFO: Creating TransactionManager(id=Default Transaction Manager) >> 2009-10-23 22:39:53 org.apache.openejb.assembler.classic.Assembler createRecipe >> INFO: Creating SecurityService(id=Default Security Service) >> 2009-10-23 22:39:53 org.apache.openejb.assembler.classic.Assembler createRecipe >> INFO: Creating Container(id=My Stateless Container) >> >> OpenEJB *seems* running fine. >> >> The missing pieces are to create a service bundle so JNDI namespace is >> visible to other bundles being ejb clients or exposing ejb interfaces >> as osgi services and finally create a osgified deployer (picks up >> instaled bundles that are ejbs as well, passes them to openejb and >> registers osgi services). Fancy helping out? >> >> Jacek >> >> -- >> Jacek Laskowski >> Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl >> > > > > -- > Thanks > - Mohammad Nour > - LinkedIn: http://www.linkedin.com/in/mnour > ---- > "Life is like riding a bicycle. To keep your balance you must keep moving" > - Albert Einstein > > "Writing clean code is what you must do in order to call yourself a > professional. There is no reasonable excuse for doing anything less > than your best." > - Clean Code: A Handbook of Agile Software Craftsmanship > -- Thanks - Mohammad Nour - LinkedIn: http://www.linkedin.com/in/mnour ---- "Life is like riding a bicycle. To keep your balance you must keep moving" - Albert Einstein "Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best." - Clean Code: A Handbook of Agile Software Craftsmanship |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineOn Sun, Oct 25, 2009 at 12:47 AM, Mohammad Nour El-Din
<nour.mohammad@...> wrote: > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.apache.openejb.core [6]: package; (package=javax.jws) I'm running on Java 6 where the javax.jwa is already available. Perhaps you're running on Java 5 or older. > [ 27] [Installed ] [ 1] Apache XBean :: ASM shaded (repackaged) (3.6) > [ 28] [Installed ] [ 1] Apache XBean :: Finder shaded (repackaged) (3.6) > [ 29] [Installed ] [ 1] Apache XBean :: Reflect (3.6) > [ 30] [Installed ] [ 1] Apache XBean :: Naming (3.6) I don't remember why, but there's something that made me upgrade XBean to 3.7-SNAPSHOT too. Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineThats true, I will try it on Java 6.0 but tomorrow ;) and send ya a feedback too
On Sun, Oct 25, 2009 at 12:58 AM, Jacek Laskowski <jacek@...> wrote: > On Sun, Oct 25, 2009 at 12:47 AM, Mohammad Nour El-Din > <nour.mohammad@...> wrote: > >> org.osgi.framework.BundleException: Unresolved constraint in bundle >> org.apache.openejb.core [6]: package; (package=javax.jws) > > I'm running on Java 6 where the javax.jwa is already available. > Perhaps you're running on Java 5 or older. > >> [ 27] [Installed ] [ 1] Apache XBean :: ASM shaded (repackaged) (3.6) >> [ 28] [Installed ] [ 1] Apache XBean :: Finder shaded (repackaged) (3.6) >> [ 29] [Installed ] [ 1] Apache XBean :: Reflect (3.6) >> [ 30] [Installed ] [ 1] Apache XBean :: Naming (3.6) > > I don't remember why, but there's something that made me upgrade XBean > to 3.7-SNAPSHOT too. > > Jacek > > -- > Jacek Laskowski > Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl > -- Thanks - Mohammad Nour - LinkedIn: http://www.linkedin.com/in/mnour ---- "Life is like riding a bicycle. To keep your balance you must keep moving" - Albert Einstein "Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best." - Clean Code: A Handbook of Agile Software Craftsmanship |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineHi Jacek...
Now I started to use Java 6.0 but I got the following error :(. Notice that I attached the "default.properties" file I have in my "felix.jar" Welcome to Felix ================ DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0 DEBUG: WIRE: 2.0 -> org.osgi.service.packageadmin -> 0 DEBUG: WIRE: 2.0 -> org.osgi.service.startlevel -> 0 DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0 DEBUG: WIRE: 1.0 -> org.osgi.service.log -> 2.0 DEBUG: WIRE: 1.0 -> org.osgi.service.url -> 0 DEBUG: DYNAMIC WIRE: 1.0 -> org.apache.felix.shell -> 2.0 DEBUG: WIRE: 3.0 -> org.apache.felix.shell -> 2.0 DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0 -> ERROR: Error starting file:C:\Users\mnour\.m2\repository\org\apache\openejb\openejb-core\3.1.2-SNAPSHOT\openejb-core-3.1.2-SNAPSHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org .apache.openejb.core [6]: package; (&(package=javax.transaction)(version>=5.0.0))) org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.openejb.core [6]: package; (&(package=javax.transaction)(version>=5.0.0)) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3263) at org.apache.felix.framework.Felix.startBundle(Felix.java:1597) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:619) On Sun, Oct 25, 2009 at 1:04 AM, Mohammad Nour El-Din <nour.mohammad@...> wrote: > Thats true, I will try it on Java 6.0 but tomorrow ;) and send ya a feedback too > > On Sun, Oct 25, 2009 at 12:58 AM, Jacek Laskowski > <jacek@...> wrote: >> On Sun, Oct 25, 2009 at 12:47 AM, Mohammad Nour El-Din >> <nour.mohammad@...> wrote: >> >>> org.osgi.framework.BundleException: Unresolved constraint in bundle >>> org.apache.openejb.core [6]: package; (package=javax.jws) >> >> I'm running on Java 6 where the javax.jwa is already available. >> Perhaps you're running on Java 5 or older. >> >>> [ 27] [Installed ] [ 1] Apache XBean :: ASM shaded (repackaged) (3.6) >>> [ 28] [Installed ] [ 1] Apache XBean :: Finder shaded (repackaged) (3.6) >>> [ 29] [Installed ] [ 1] Apache XBean :: Reflect (3.6) >>> [ 30] [Installed ] [ 1] Apache XBean :: Naming (3.6) >> >> I don't remember why, but there's something that made me upgrade XBean >> to 3.7-SNAPSHOT too. >> >> Jacek >> >> -- >> Jacek Laskowski >> Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl >> > > > > -- > Thanks > - Mohammad Nour > - LinkedIn: http://www.linkedin.com/in/mnour > ---- > "Life is like riding a bicycle. To keep your balance you must keep moving" > - Albert Einstein > > "Writing clean code is what you must do in order to call yourself a > professional. There is no reasonable excuse for doing anything less > than your best." > - Clean Code: A Handbook of Agile Software Craftsmanship > -- Thanks - Mohammad Nour - LinkedIn: http://www.linkedin.com/in/mnour ---- "Life is like riding a bicycle. To keep your balance you must keep moving" - Albert Einstein "Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best." - Clean Code: A Handbook of Agile Software Craftsmanship |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineOn Sun, Oct 25, 2009 at 12:17 PM, Mohammad Nour El-Din
<nour.mohammad@...> wrote: > Hi Jacek... > > Now I started to use Java 6.0 but I got the following error :(. > Notice that I attached the "default.properties" file I have in my > "felix.jar" The attached default.properties doesn't have javax.transaction.xa commented out. Make sure it is (I'm not sure if it's the root cause, but just to be on the safe side give it a try). Execute inspect package requirement 6 in the felix shell. 6 is the identifier of the Apache OpenEJB :: Container :: Core (3.1.2.SNAPSHOT) in your case. Execute inspect package capability 0 Send both outputs so I can hunt down the issue with enough info. I can't figure out where the version of javax.transaction came from. Execute -> inspect package capability 7 org.apache.geronimo.specs.geronimo-jta_1.1_spec [7] exports packages: --------------------------------------------------------------------- javax.transaction.xa; version=1.1.0 javax.transaction; version=1.1.0 and send it as well. I'm pretty sure the identifier of the org.apache.geronimo.specs.geronimo-jta_1.1_spec bundle is different in the configuration I'm working with. Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineOn Sun, Oct 25, 2009 at 2:55 PM, Jacek Laskowski <jacek@...> wrote:
> I can't figure out where the version of javax.transaction came from. I've found it. You suffered from my last-change-before-commit-without-much-testing change committed to the repo :) Commited another change to let you pass it. jlaskowski@work /cygdrive/c/oss/openejb3/container/openejb-core $ svn ci -m 'Fix the version of javax.transaction' pom.xml Sending pom.xml Transmitting file data . Committed revision 829573. Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineI tried all combinations of commenting the javax.transaction in the
default.properties file :D. Thanks for the last commit, I will try it again this night. On Sun, Oct 25, 2009 at 4:05 PM, Jacek Laskowski <jacek@...> wrote: > On Sun, Oct 25, 2009 at 2:55 PM, Jacek Laskowski <jacek@...> wrote: > > >> I can't figure out where the version of javax.transaction came from. > > I've found it. You suffered from my > last-change-before-commit-without-much-testing change committed to the > repo :) Commited another change to let you pass it. > > jlaskowski@work /cygdrive/c/oss/openejb3/container/openejb-core > $ svn ci -m 'Fix the version of javax.transaction' pom.xml > Sending pom.xml > Transmitting file data . > Committed revision 829573. > > Jacek > > -- > Jacek Laskowski > Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl > -- Thanks - Mohammad Nour - LinkedIn: http://www.linkedin.com/in/mnour ---- "Life is like riding a bicycle. To keep your balance you must keep moving" - Albert Einstein "Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best." - Clean Code: A Handbook of Agile Software Craftsmanship |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineHi Jacek...
I still have the same error showing up Welcome to Felix ================ DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0 DEBUG: WIRE: 1.0 -> org.osgi.service.log -> 2.0 DEBUG: WIRE: 1.0 -> org.osgi.service.url -> 0 DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0 DEBUG: WIRE: 2.0 -> org.osgi.service.packageadmin -> 0 DEBUG: WIRE: 2.0 -> org.osgi.service.startlevel -> 0 DEBUG: DYNAMIC WIRE: 1.0 -> org.apache.felix.shell -> 2.0 DEBUG: WIRE: 3.0 -> org.apache.felix.shell -> 2.0 DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0 -> ERROR: Error starting file:C:\Users\mnour\.m2\repository\org\apache\openejb\openejb-core\3.1.2-SNAPSHOT\openejb-core-3.1.2-SNAPSHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org .apache.openejb.core [6]: package; (&(package=javax.transaction)(version>=5.0.0))) org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.openejb.core [6]: package; (&(package=javax.transaction)(version>=5.0.0)) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3263) at org.apache.felix.framework.Felix.startBundle(Felix.java:1597) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:619) NOTE: My environment is: jdk1.6.0_16 Windows Vista Home Premium SP1 On Sun, Oct 25, 2009 at 5:35 PM, Mohammad Nour El-Din <nour.mohammad@...> wrote: > I tried all combinations of commenting the javax.transaction in the > default.properties file :D. Thanks for the last commit, I will try it > again this night. > > On Sun, Oct 25, 2009 at 4:05 PM, Jacek Laskowski <jacek@...> wrote: >> On Sun, Oct 25, 2009 at 2:55 PM, Jacek Laskowski <jacek@...> wrote: >> >> >>> I can't figure out where the version of javax.transaction came from. >> >> I've found it. You suffered from my >> last-change-before-commit-without-much-testing change committed to the >> repo :) Commited another change to let you pass it. >> >> jlaskowski@work /cygdrive/c/oss/openejb3/container/openejb-core >> $ svn ci -m 'Fix the version of javax.transaction' pom.xml >> Sending pom.xml >> Transmitting file data . >> Committed revision 829573. >> >> Jacek >> >> -- >> Jacek Laskowski >> Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl >> > > > > -- > Thanks > - Mohammad Nour > - LinkedIn: http://www.linkedin.com/in/mnour > ---- > "Life is like riding a bicycle. To keep your balance you must keep moving" > - Albert Einstein > > "Writing clean code is what you must do in order to call yourself a > professional. There is no reasonable excuse for doing anything less > than your best." > - Clean Code: A Handbook of Agile Software Craftsmanship > -- Thanks - Mohammad Nour - LinkedIn: http://www.linkedin.com/in/mnour ---- "Life is like riding a bicycle. To keep your balance you must keep moving" - Albert Einstein "Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best." - Clean Code: A Handbook of Agile Software Craftsmanship |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineOn Mon, Oct 26, 2009 at 10:44 PM, Mohammad Nour El-Din
<nour.mohammad@...> wrote: > I still have the same error showing up .... > -> ERROR: Error starting > file:C:\Users\mnour\.m2\repository\org\apache\openejb\openejb-core\3.1.2-SNAPSHOT\openejb-core-3.1.2-SNAPSHOT.jar > (org.osgi.framework.BundleException: Unresolved constraint in bundle > org.apache.openejb.core [6]: package; > (&(package=javax.transaction)(version>=5.0.0))) > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.apache.openejb.core [6]: package; > (&(package=javax.transaction)(version>=5.0.0)) > at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3263) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1597) > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077) > at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) > at java.lang.Thread.run(Thread.java:619) After you rebuild the openejb-core bundle project you have to update it in felix. The org.apache.openejb.core has the identifier 6 so you should do as follows: -> update 6 If the issue keeps showing up, send 'headers 6' command output. I do 'refresh' sometimes to make felix happy with my current bundle setup. Give it a try too. Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running finecool, OK I will tonight ALLAH willing.
On Tue, Oct 27, 2009 at 12:01 AM, Jacek Laskowski <jacek@...> wrote: > On Mon, Oct 26, 2009 at 10:44 PM, Mohammad Nour El-Din > <nour.mohammad@...> wrote: > >> I still have the same error showing up > .... >> -> ERROR: Error starting >> file:C:\Users\mnour\.m2\repository\org\apache\openejb\openejb-core\3.1.2-SNAPSHOT\openejb-core-3.1.2-SNAPSHOT.jar >> (org.osgi.framework.BundleException: Unresolved constraint in bundle >> org.apache.openejb.core [6]: package; >> (&(package=javax.transaction)(version>=5.0.0))) >> org.osgi.framework.BundleException: Unresolved constraint in bundle >> org.apache.openejb.core [6]: package; >> (&(package=javax.transaction)(version>=5.0.0)) >> at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3263) >> at org.apache.felix.framework.Felix.startBundle(Felix.java:1597) >> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077) >> at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) >> at java.lang.Thread.run(Thread.java:619) > > After you rebuild the openejb-core bundle project you have to update > it in felix. The org.apache.openejb.core has the identifier 6 so you > should do as follows: > > -> update 6 > > If the issue keeps showing up, send 'headers 6' command output. I do > 'refresh' sometimes to make felix happy with my current bundle setup. > Give it a try too. > > Jacek > > -- > Jacek Laskowski > Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl > -- Thanks - Mohammad Nour - LinkedIn: http://www.linkedin.com/in/mnour ---- "Life is like riding a bicycle. To keep your balance you must keep moving" - Albert Einstein "Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best." - Clean Code: A Handbook of Agile Software Craftsmanship |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineHey Jacek...
I got another error now : Welcome to Felix ================ DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0 DEBUG: WIRE: 2.0 -> org.osgi.service.packageadmin -> 0 DEBUG: WIRE: 2.0 -> org.osgi.service.startlevel -> 0 DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0 DEBUG: WIRE: 1.0 -> org.osgi.service.log -> 2.0 DEBUG: WIRE: 1.0 -> org.osgi.service.url -> 0 DEBUG: DYNAMIC WIRE: 1.0 -> org.apache.felix.shell -> 2.0 DEBUG: WIRE: 3.0 -> org.apache.felix.shell -> 2.0 DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0 -> ERROR: Error starting file:C:\Users\mnour\.m2\repository\org\apache\openejb\openejb-core\3.1.2-SNAPSHOT\openejb-core-3.1.2-SNAPSHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org .apache.geronimo.components.geronimo-transaction [21]: package; (&(package=org.slf4j)(version>=1.4.0)(!(version>=2.0.0)))) org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.geronimo.components.geronimo-transaction [21]: package; (&(package=org.slf4j)(version>=1.4.0)(!(version>=2.0.0))) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3263) at org.apache.felix.framework.Felix.startBundle(Felix.java:1597) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:619) I attached the output of the "headers" command too On Tue, Oct 27, 2009 at 10:44 AM, Mohammad Nour El-Din <nour.mohammad@...> wrote: > cool, OK I will tonight ALLAH willing. > > On Tue, Oct 27, 2009 at 12:01 AM, Jacek Laskowski > <jacek@...> wrote: >> On Mon, Oct 26, 2009 at 10:44 PM, Mohammad Nour El-Din >> <nour.mohammad@...> wrote: >> >>> I still have the same error showing up >> .... >>> -> ERROR: Error starting >>> file:C:\Users\mnour\.m2\repository\org\apache\openejb\openejb-core\3.1.2-SNAPSHOT\openejb-core-3.1.2-SNAPSHOT.jar >>> (org.osgi.framework.BundleException: Unresolved constraint in bundle >>> org.apache.openejb.core [6]: package; >>> (&(package=javax.transaction)(version>=5.0.0))) >>> org.osgi.framework.BundleException: Unresolved constraint in bundle >>> org.apache.openejb.core [6]: package; >>> (&(package=javax.transaction)(version>=5.0.0)) >>> at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3263) >>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1597) >>> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077) >>> at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) >>> at java.lang.Thread.run(Thread.java:619) >> >> After you rebuild the openejb-core bundle project you have to update >> it in felix. The org.apache.openejb.core has the identifier 6 so you >> should do as follows: >> >> -> update 6 >> >> If the issue keeps showing up, send 'headers 6' command output. I do >> 'refresh' sometimes to make felix happy with my current bundle setup. >> Give it a try too. >> >> Jacek >> >> -- >> Jacek Laskowski >> Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl >> > > > > -- > Thanks > - Mohammad Nour > - LinkedIn: http://www.linkedin.com/in/mnour > ---- > "Life is like riding a bicycle. To keep your balance you must keep moving" > - Albert Einstein > > "Writing clean code is what you must do in order to call yourself a > professional. There is no reasonable excuse for doing anything less > than your best." > - Clean Code: A Handbook of Agile Software Craftsmanship > -- Thanks - Mohammad Nour - LinkedIn: http://www.linkedin.com/in/mnour ---- "Life is like riding a bicycle. To keep your balance you must keep moving" - Albert Einstein "Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best." - Clean Code: A Handbook of Agile Software Craftsmanship -> headers 6 Apache OpenEJB :: Container :: Core (6) --------------------------------------- Archiver-Version = Plexus Archiver Bnd-LastModified = 1256591213702 Build-Jdk = 1.6.0_16 Built-By = mnour Bundle-Description = Apache OpenEJB is an open source, modular, configurable and extendable EJB Container System and EJB Server. Bundle-DocURL = http://openejb.apache.org Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt Bundle-ManifestVersion = 2 Bundle-Name = Apache OpenEJB :: Container :: Core Bundle-SymbolicName = org.apache.openejb.core Bundle-Vendor = The Apache OpenEJB development community Bundle-Version = 3.1.2.SNAPSHOT Class-Path = openejb-loader-3.1.2-SNAPSHOT.jar openejb-client-3.1.2-SNAPSHOT.jar xbean-finder-shaded-3.6.jar xbean-asm-shaded-3.6.jar Created-By = 1.6.0_16 (Sun Microsystems Inc.) Export-Package = org.apache.openejb.client;mandatory=partial;partial=true;uses:="javax.naming,org.apache.openejb.core.ivm.naming,javax.security.auth.login,org.apache.openejb.util,org.apache.openejb,org.apache.op enejb.loader,org.apache.openejb.core.ivm,org.apache.openejb.api,org.apache.openejb.spi,javax.naming.spi";version="3.1.2.SNAPSHOT",org.apache.openejb.core.stateless;uses:="javax.xml.ws.handler,javax.ejb,org.w3c.d om,org.apache.openejb.core,org.apache.openejb.core.webservices,org.apache.openejb.util,org.apache.openejb.core.interceptor,javax.interceptor,org.apache.openejb,org.apache.xbean.finder,org.apache.openejb.core.tra nsaction,javax.xml.rpc.handler,org.apache.openejb.spi,org.apache.openejb.core.timer,org.apache.openejb.core.ivm,org.apache.openejb.util.proxy,javax.naming,org.apache.xbean.recipe";version="3.1.2.SNAPSHOT",org.ap ache.openejb.persistence;uses:="javax.persistence,javax.transaction,org.xml.sax.helpers,org.xml.sax,org.apache.openejb.javaagent,org.apache.openejb.core,javax.sql,javax.xml.parsers,javax.persistence.spi";version ="3.1.2.SNAPSHOT",org.apache.openejb.ri.sp;uses:="javax.security.jacc,javax.security.auth.login,org.apache.openejb.spi,org.apache.openejb,org.apache.openejb.util,javax.transaction,javax.transaction.xa";version=" 3.1.2.SNAPSHOT",org.apache.openejb.resource.jdbc;uses:="org.apache.openejb.loader,org.apache.commons.dbcp,javax.sql,org.apache.xbean.finder,org.apache.commons.dbcp.managed,org.apache.openejb.resource,org.apache. openejb.util,javax.transaction,javax.transaction.xa,javax.crypto.spec,javax.crypto";version="3.1.2.SNAPSHOT",org.apache.openejb.core.ivm.naming.java;uses:="org.apache.openejb.loader,javax.naming,org.apache.opene jb.spi,javax.naming.spi,org.apache.openejb.core";version="3.1.2.SNAPSHOT",org.apache.openejb.mgmt;uses:="javax.ejb,javax.management,javax.management.j2ee";version="3.1.2.SNAPSHOT",org.apache.openejb;uses:="org.a pache.openejb.util,org.apache.openejb.core,javax.ejb,org.apache.openejb.core.transaction,javax.naming,org.apache.openejb.core.interceptor,org.apache.openejb.core.timer,org.apache.xbean.recipe,org.apache.openejb. loader,javax.transaction,org.apache.openejb.spi";version="3.1.2.SNAPSHOT",org.apache.openejb.core.security;uses:="javax.security.auth,org.apache.openejb.core.security.jacc,javax.security.auth.login,org.apache.op enejb,org.apache.openejb.core,org.apache.openejb.loader,javax.security.jacc,org.apache.openejb.spi,javax.security.auth.callback,org.apache.openejb.util,org.apache.openejb.core.security.jaas";version="3.1.2.SNAPS HOT",org.apache.openejb.assembler;uses:="org.apache.openejb.assembler.classic,org.apache.openejb,javax.ejb,org.apache.openejb.config,org.apache.openejb.loader,org.apache.openejb.spi";version="3.1.2.SNAPSHOT",org .apache.openejb.core.cmp.cmp2;uses:="org.apache.xbean.asm,javax.ejb,org.apache.openejb.core.cmp,org.apache.openejb.core.ivm,org.apache.openejb,org.apache.openejb.util.proxy,org.apache.openejb.core,javax.transact ion,org.apache.openejb.loader";version="3.1.2.SNAPSHOT",org.apache.openejb.spi;uses:="javax.ejb,org.apache.openejb,javax.transaction,javax.naming,org.apache.openejb.core,javax.security.auth.login";version="3.1.2 .SNAPSHOT",org.apache.openejb.core.security.jaas;uses:="javax.security.auth.callback,javax.security.auth.spi,javax.security.auth.login,org.apache.openejb.util,javax.security.auth,javax.naming,org.apache.openejb. loader,javax.sql,org.apache.openejb.spi";version="3.1.2.SNAPSHOT",org.apache.openejb.assembler.dynamic;uses:="org.apache.openejb.assembler.classic";version="3.1.2.SNAPSHOT",org.apache.openejb.core.ivm.naming;use s:="javax.naming,org.apache.openejb,org.apache.openejb.core.ivm,org.apache.openejb.loader,javax.security.auth.login,org.apache.openejb.spi,javax.naming.spi,org.apache.xbean.naming.context,org.apache.openejb.core .ivm.naming.openejb,org.apache.openejb.core.ivm.naming.java,org.apache.openejb.core,javax.xml.registry,org.apache.openejb.util,javax.xml.namespace,javax.xml.rpc,javax.xml.ws.handler,org.apache.openejb.core.webse rvices,javax.persistence,org.apache.xbean.naming.reference";version="3.1.2.SNAPSHOT",org.apache.openejb.assembler.classic;uses:="org.apache.openejb.util,org.apache.openejb,org.apache.openejb.javaagent,org.apache .openejb.persistence,org.apache.geronimo.connector.work,org.apache.openejb.resource,org.apache.xbean.finder,org.apache.xbean.recipe,org.apache.openejb.core,org.apache.openejb.loader,javax.resource.spi,org.apache .openejb.spi,org.apache.geronimo.transaction.manager,javax.persistence,javax.naming,org.apache.openejb.core.ivm.naming,org.apache.openejb.util.proxy,org.apache.openejb.core.transaction,javax.transaction,javax.re source.spi.work,org.apache.openejb.core.timer,org.apache.openejb.core.cmp,org.apache.openejb.core.cmp.cmp2,javax.ejb,javax.xml.namespace,org.apache.openejb.core.interceptor,javax.interceptor,javax.security.jacc, javax.jms,org.omg.CORBA,javax.ejb.spi,org.apache.openejb.core.webservices,javax.sql,javax.persistence.spi";version="3.1.2.SNAPSHOT",org.apache.openejb.util;uses:="org.apache.xbean.asm,org.apache.xbean.finder,org .apache.xbean.recipe,org.apache.xbean.asm.commons,org.apache.openejb.loader,javax.naming,javax.ejb,javax.transaction,org.apache.openejb,org.apache.log4j,sun.misc,javax.xml.parsers,org.xml.sax,org.w3c.dom";versio n="3.1.2.SNAPSHOT",org.apache.openejb.core.mdb;uses:="org.apache.openejb.core.transaction,javax.resource.spi,javax.transaction.xa,org.apache.openejb.resource,org.apache.openejb.core,javax.resource.spi.endpoint,j avax.ejb,org.apache.openejb,javax.resource,org.apache.openejb.util,org.apache.openejb.core.interceptor,org.apache.xbean.recipe,org.apache.openejb.loader,org.apache.openejb.spi,org.apache.openejb.core.timer,javax .transaction,javax.naming";version="3.1.2.SNAPSHOT",org.apache.openejb.util.resources;version="3.1.2.SNAPSHOT",org.apache.openejb.util.io;uses:="org.apache.openejb.util";version="3.1.2.SNAPSHOT",org.apache.opene jb.core.webservices;uses:="org.w3c.dom,javax.xml.namespace,javax.xml.ws.handler,javax.naming,org.apache.openejb,javax.jws,javax.xml.ws.spi,javax.xml.bind,javax.xml.ws.soap,org.apache.openejb.util,javax.xml.trans form,javax.wsdl.xml,org.xml.sax";version="3.1.2.SNAPSHOT",org.apache.openejb.core.transaction;uses:="javax.transaction,org.apache.openejb,org.apache.openejb.core,org.apache.openejb.util,org.apache.openejb.loader ,javax.transaction.xa,javax.resource.spi,javax.resource.spi.work";version="3.1.2.SNAPSHOT",org.apache.openejb.core.ivm;uses:="javax.ejb,org.apache.openejb,org.apache.openejb.util.proxy,org.apache.openejb.core,or g.apache.openejb.loader,javax.transaction,org.apache.openejb.spi,org.apache.openejb.core.stateless,org.apache.openejb.core.singleton,org.apache.openejb.util,org.apache.openejb.core.entity,org.apache.openejb.core .stateful";version="3.1.2.SNAPSHOT",org.apache.openejb.core.stateful;uses:="org.apache.openejb.util,org.apache.openejb.core,javax.persistence,org.apache.openejb,org.apache.openejb.loader,org.apache.openejb.core. transaction,javax.transaction,org.apache.openejb.spi,javax.ejb,org.apache.openejb.core.interceptor,javax.naming,org.apache.openejb.persistence,org.apache.xbean.recipe,javax.xml.rpc.handler,org.apache.openejb.cor e.ivm,org.apache.openejb.util.proxy";version="3.1.2.SNAPSHOT",org.apache.openejb.core.timer;uses:="javax.sql,org.apache.openejb.util,javax.ejb,org.quartz,org.apache.openejb,org.apache.openejb.core,org.apache.ope nejb.core.transaction,org.apache.openejb.loader,javax.transaction,org.apache.openejb.spi";version="3.1.2.SNAPSHOT",org.apache.openejb.core.cmp;uses:="javax.ejb,org.apache.openejb,javax.transaction,org.apache.ope nejb.util,org.apache.openejb.core,org.apache.openejb.core.transaction,org.apache.openejb.loader,org.apache.openejb.spi,org.apache.openejb.core.entity,org.apache.openejb.core.timer,org.apache.openejb.util.proxy"; version="3.1.2.SNAPSHOT",org.apache.openejb.core.security.jacc;uses:="org.apache.openejb.core.security,javax.security.jacc,org.apache.openejb.loader";version="3.1.2.SNAPSHOT",org.apache.openejb.config;uses:="jav ax.ejb,org.apache.openejb.jee,javax.jws,org.apache.openejb.util,org.apache.openejb,org.apache.xbean.finder,org.apache.openejb.api,org.apache.openejb.jee.oejb3,javax.annotation,javax.interceptor,javax.xml.namespa ce,org.apache.openejb.core.webservices,org.apache.openejb.loader,javax.annotation.security,javax.persistence,org.apache.openejb.assembler.classic,org.apache.openejb.jee.jpa,org.apache.openejb.config.sys,org.apac he.openejb.jee.jpa.unit,javax.xml.bind,org.apache.openejb.jee.oejb2,org.apache.openejb.cli,org.apache.commons.cli,org.apache.openejb.config.rules,javax.jms,org.apache.openejb.resource.jdbc,org.apache.openejb.cor e.cmp,org.xml.sax,javax.naming,org.apache.openejb.assembler,javax.enterprise.deploy.spi,javax.enterprise.deploy.spi.factories,javax.enterprise.deploy.spi.exceptions,javax.enterprise.deploy.shared,javax.enterpris e.deploy.spi.status,javax.enterprise.deploy.model,org.apache.xbean.asm.commons,org.apache.xbean.asm,org.xml.sax.helpers,javax.wsdl.factory,javax.xml.parsers,javax.wsdl,javax.wsdl.xml,org.apache.openejb.jee.sun,o rg.apache.openejb.jee.wls,javax.wsdl.extensions.http,javax.wsdl.extensions.soap";version="3.1.2.SNAPSHOT",org.apache.openejb.util.urlhandler.resource;version="3.1.2.SNAPSHOT",org.apache.openejb.alt.util.resource s;version="3.1.2.SNAPSHOT",org.apache.openejb.resource;uses:="org.apache.geronimo.connector.outbound,org.apache.geronimo.connector.outbound.connectiontracking,javax.resource,javax.resource.spi,org.apache.geronim o.connector.outbound.connectionmanagerconfig,javax.transaction,org.apache.geronimo.transaction.manager,javax.transaction.xa,org.apache.openejb.loader,org.apache.geronimo.transaction.log";version="3.1.2.SNAPSHOT" ,org.apache.openejb.core.cmp.jpa;uses:="javax.ejb,org.apache.openejb.core.cmp,javax.persistence,org.apache.openjpa.event,javax.naming,org.apache.openejb,org.apache.openejb.core,org.apache.openejb.core.transactio n,org.apache.openejb.core.cmp.cmp2,org.apache.openjpa.persistence,javax.transaction";version="3.1.2.SNAPSHOT",org.apache.openejb.core;uses:="org.apache.openejb.core.transaction,javax.ejb,javax.transaction,org.ap ache.openejb.spi,org.apache.openejb,org.apache.openejb.core.timer,javax.naming,org.apache.openejb.core.ivm,javax.xml.rpc.handler,org.apache.openejb.core.stateless,org.apache.openejb.core.singleton,org.apache.ope nejb.core.stateful,org.apache.openejb.util.proxy,javax.resource,org.apache.openejb.core.ivm.naming,javax.resource.spi,org.apache.openejb.loader,org.apache.openejb.core.cmp,org.apache.openejb.util,org.apache.open ejb.core.interceptor,javax.persistence,javax.mail,org.omg.CORBA,org.apache.xbean.asm.commons,org.apache.xbean.asm";version="3.1.2.SNAPSHOT",org.apache.openejb.cli;uses:="org.apache.openejb.loader,org.apache.comm ons.cli,org.apache.openejb.util,org.apache.xbean.finder";version="3.1.2.SNAPSHOT",org.apache.openejb.core.ivm.naming.openejb;uses:="org.apache.openejb.loader,javax.naming,org.apache.openejb.spi,javax.naming.spi" ;version="3.1.2.SNAPSHOT",org.apache.openejb.assembler.classic.cmd;uses:="org.apache.openejb.assembler.classic,org.apache.openejb.loader,javax.ejb,javax.naming,org.apache.commons.cli,org.apache.openejb.util";ver sion="3.1.2.SNAPSHOT",org.apache.openejb.core.entity;uses:="javax.ejb,org.apache.openejb.util,org.apache.openejb,org.apache.openejb.core,org.apache.openejb.core.transaction,org.apache.openejb.loader,javax.transa ction,org.apache.openejb.spi,org.apache.openejb.core.timer,org.apache.openejb.core.ivm,org.apache.openejb.util.proxy";version="3.1.2.SNAPSHOT",org.apache.openejb.config.rules;uses:="org.apache.openejb.config,org .apache.openejb.util,org.apache.openejb.jee,javax.ejb,javax.interceptor,org.apache.openejb,org.apache.xbean.finder,javax.annotation,javax.jws,javax.annotation.security";version="3.1.2.SNAPSHOT",org.apache.openej b.resource.activemq;uses:="javax.resource.spi,org.apache.activemq.ra,org.apache.openejb.util,org.apache.openejb.loader,org.apache.activemq.store.memory,javax.naming,javax.sql,org.apache.activemq.broker,org.apach e.activemq.store,org.apache.openejb.spi,org.apache.activemq.store.jdbc";version="3.1.2.SNAPSHOT",org.apache.openejb.core.singleton;uses:="javax.xml.ws.handler,javax.ejb,org.w3c.dom,org.apache.openejb.core,org.ap ache.openejb.core.webservices,org.apache.openejb.util,org.apache.openejb.core.interceptor,javax.interceptor,org.apache.openejb,org.apache.xbean.finder,org.apache.openejb.core.transaction,javax.xml.rpc.handler,or g.apache.openejb.spi,org.apache.openejb.core.timer,org.apache.openejb.core.ivm,org.apache.openejb.util.proxy,javax.naming,org.apache.xbean.recipe";version="3.1.2.SNAPSHOT",org.apache.openejb.core.interceptor;use s:="org.apache.openejb.core,org.apache.openejb.core.transaction,org.apache.openejb.util,javax.interceptor,javax.xml.ws.handler,javax.xml.rpc.handler";version="3.1.2.SNAPSHOT",org.apache.openejb.config.sys;uses:= "org.apache.openejb.config,javax.xml.bind.annotation,javax.xml.bind.annotation.adapters,org.xml.sax.helpers,org.xml.sax,javax.xml.bind,org.apache.openejb.util,javax.xml.parsers,org.apache.openejb.jee,org.apache. openejb,org.apache.xbean.finder,javax.xml.transform,javax.xml.transform.sax";version="3.1.2.SNAPSHOT",org.apache.openejb.util.proxy;uses:="org.apache.openejb";version="3.1.2.SNAPSHOT" Implementation-Title = Apache OpenEJB Implementation-Version = 3.1.2-SNAPSHOT Import-Package = javax.annotation,javax.annotation.security,javax.crypto,javax.crypto.spec,javax.ejb,javax.ejb.spi,javax.enterprise.deploy.model;resolution:=optional,javax.enterprise.deploy.shared;resolution:=op tional,javax.enterprise.deploy.spi;resolution:=optional,javax.enterprise.deploy.spi.exceptions;resolution:=optional,javax.enterprise.deploy.spi.factories;resolution:=optional,javax.enterprise.deploy.spi.status;r esolution:=optional,javax.interceptor,javax.jms;resolution:=optional,javax.jws,javax.mail,javax.management,javax.management.j2ee,javax.naming,javax.naming.spi,javax.persistence,javax.persistence.spi,javax.resour ce,javax.resource.spi,javax.resource.spi.endpoint,javax.resource.spi.work,javax.security.auth,javax.security.auth.callback,javax.security.auth.login,javax.security.auth.spi,javax.security.jacc,javax.sql,javax.tr ansaction;version="1.1",javax.transaction.xa;version="1.1",javax.wsdl,javax.wsdl.extensions.http,javax.wsdl.extensions.soap,javax.wsdl.factory,javax.wsdl.xml,javax.xml.bind,javax.xml.bind.annotation,javax.xml.bi nd.annotation.adapters,javax.xml.namespace,javax.xml.parsers,javax.xml.registry;resolution:=optional,javax.xml.rpc;resolution:=optional,javax.xml.rpc.handler;resolution:=optional,javax.xml.transform,javax.xml.tr ansform.sax,javax.xml.ws.handler,javax.xml.ws.soap,javax.xml.ws.spi,org.apache.activemq.broker;resolution:=optional,org.apache.activemq.ra;resolution:=optional,org.apache.activemq.store;resolution:=optional,org. apache.activemq.store.jdbc;resolution:=optional,org.apache.activemq.store.memory;resolution:=optional,org.apache.commons.cli,org.apache.commons.dbcp;resolution:=optional,org.apache.commons.dbcp.managed;resolutio n:=optional,org.apache.geronimo.connector.outbound,org.apache.geronimo.connector.outbound.connectionmanagerconfig,org.apache.geronimo.connector.outbound.connectiontracking,org.apache.geronimo.connector.work,org. apache.geronimo.transaction.log,org.apache.geronimo.transaction.manager,org.apache.log4j,org.apache.openejb;version="3.1",org.apache.openejb.alt.util.resources;version="3.1",org.apache.openejb.api;version="3.1", org.apache.openejb.assembler;version="3.1",org.apache.openejb.assembler.classic;version="3.1",org.apache.openejb.assembler.classic.cmd;version="3.1",org.apache.openejb.assembler.dynamic;version="3.1",org.apache. openejb.cli;version="3.1",org.apache.openejb.client;mandatory=partial;partial=true;version="3.1",org.apache.openejb.config;version="3.1",org.apache.openejb.config.rules;version="3.1",org.apache.openejb.config.sy s;version="3.1",org.apache.openejb.core;version="3.1",org.apache.openejb.core.cmp;version="3.1",org.apache.openejb.core.cmp.cmp2;version="3.1",org.apache.openejb.core.cmp.jpa;version="3.1",org.apache.openejb.cor e.entity;version="3.1",org.apache.openejb.core.interceptor;version="3.1",org.apache.openejb.core.ivm;version="3.1",org.apache.openejb.core.ivm.naming;version="3.1",org.apache.openejb.core.ivm.naming.java;version ="3.1",org.apache.openejb.core.ivm.naming.openejb;version="3.1",org.apache.openejb.core.mdb;version="3.1",org.apache.openejb.core.security;version="3.1",org.apache.openejb.core.security.jaas;version="3.1",org.ap ache.openejb.core.security.jacc;version="3.1",org.apache.openejb.core.singleton;version="3.1",org.apache.openejb.core.stateful;version="3.1",org.apache.openejb.core.stateless;version="3.1",org.apache.openejb.cor e.timer;version="3.1",org.apache.openejb.core.transaction;version="3.1",org.apache.openejb.core.webservices;version="3.1",org.apache.openejb.javaagent;version="3.1",org.apache.openejb.jee;version="3.1",org.apach e.openejb.jee.jpa;version="3.1",org.apache.openejb.jee.jpa.unit;version="3.1",org.apache.openejb.jee.oejb2;version="3.1",org.apache.openejb.jee.oejb3;version="3.1",org.apache.openejb.jee.sun;version="3.1",org.ap ache.openejb.jee.wls;version="3.1",org.apache.openejb.loader;version="3.1",org.apache.openejb.mgmt;version="3.1",org.apache.openejb.persistence;version="3.1",org.apache.openejb.resource;version="3.1",org.apache. openejb.resource.activemq;version="3.1",org.apache.openejb.resource.jdbc;version="3.1",org.apache.openejb.ri.sp;version="3.1",org.apache.openejb.spi;version="3.1",org.apache.openejb.util;version="3.1",org.apache .openejb.util.io;version="3.1",org.apache.openejb.util.proxy;version="3.1",org.apache.openejb.util.resources;version="3.1",org.apache.openejb.util.urlhandler.resource;version="3.1",org.apache.openjpa.event;resol ution:=optional,org.apache.openjpa.persistence;resolution:=optional,org.apache.xbean.asm;version="3.1",org.apache.xbean.asm.commons;version="3.1",org.apache.xbean.finder;version="3.6",org.apache.xbean.naming.con text;version="3.6",org.apache.xbean.naming.reference;version="3.6",org.apache.xbean.recipe;version="3.6",org.omg.CORBA,org.quartz;resolution:=optional,org.w3c.dom,org.xml.sax,org.xml.sax.helpers,sun.misc J2EE-DeploymentFactory-Implementation-Class = org.apache.openejb.config.VmDeploymentFactory Main-Class = org.apache.openejb.cli.Bootstrap Manifest-Version = 1.0 Tool = Bnd-0.0.357 |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineOn Wed, Oct 28, 2009 at 12:42 AM, Mohammad Nour El-Din
<nour.mohammad@...> wrote: > -> ERROR: Error starting > file:C:\Users\mnour\.m2\repository\org\apache\openejb\openejb-core\3.1.2-SNAPSHOT\openejb-core-3.1.2-SNAPSHOT.jar > (org.osgi.framework.BundleException: Unresolved constraint in bundle > org > .apache.geronimo.components.geronimo-transaction [21]: package; > (&(package=org.slf4j)(version>=1.4.0)(!(version>=2.0.0)))) > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.apache.geronimo.components.geronimo-transaction [21]: package; > (&(package=org.slf4j)(version>=1.4.0)(!(version>=2.0.0))) > at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3263) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1597) > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077) > at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) > at java.lang.Thread.run(Thread.java:619) Doh, I don't know why I missed it in my initial email, but you need to install OPS4J Pax Logging - API (1.4) as well. Sorry for wasting your time. Do the following in the console of Felix. install http://repo2.maven.org/maven2/org/ops4j/pax/logging/pax-logging-api/1.4/pax-logging-api-1.4.jar In such cases where a package is missing, it's more helpful to have 'ps' or 'inspect package requirement <id>' output. Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineHi Jacek...
No worries wasting my time to test and learn a new thing is no way wasting, I dream to waste all my time like this :D. I am at work now, I will give a try when I get back home ALLAH willing. On Wed, Oct 28, 2009 at 2:25 AM, Jacek Laskowski <jacek@...> wrote: > On Wed, Oct 28, 2009 at 12:42 AM, Mohammad Nour El-Din > <nour.mohammad@...> wrote: > >> -> ERROR: Error starting >> file:C:\Users\mnour\.m2\repository\org\apache\openejb\openejb-core\3.1.2-SNAPSHOT\openejb-core-3.1.2-SNAPSHOT.jar >> (org.osgi.framework.BundleException: Unresolved constraint in bundle >> org >> .apache.geronimo.components.geronimo-transaction [21]: package; >> (&(package=org.slf4j)(version>=1.4.0)(!(version>=2.0.0)))) >> org.osgi.framework.BundleException: Unresolved constraint in bundle >> org.apache.geronimo.components.geronimo-transaction [21]: package; >> (&(package=org.slf4j)(version>=1.4.0)(!(version>=2.0.0))) >> at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3263) >> at org.apache.felix.framework.Felix.startBundle(Felix.java:1597) >> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077) >> at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) >> at java.lang.Thread.run(Thread.java:619) > > Doh, I don't know why I missed it in my initial email, but you need to > install OPS4J Pax Logging - API (1.4) as well. Sorry for wasting your > time. Do the following in the console of Felix. > > install http://repo2.maven.org/maven2/org/ops4j/pax/logging/pax-logging-api/1.4/pax-logging-api-1.4.jar > > In such cases where a package is missing, it's more helpful to have > 'ps' or 'inspect package requirement <id>' output. > > Jacek > > -- > Jacek Laskowski > Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl > -- Thanks - Mohammad Nour - LinkedIn: http://www.linkedin.com/in/mnour ---- "Life is like riding a bicycle. To keep your balance you must keep moving" - Albert Einstein "Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best." - Clean Code: A Handbook of Agile Software Craftsmanship |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineHi Jacek,
I finally got time to play with. First of all, i went to Felix-Karaf 1.0.0 which is a bit for user friendly :) That said, here is what i did. 1. For some strange reasons, installing osgi bundles using Pax mvn url handler didn't run fine (not able to find my proxy settings). So i had to change the org.ops4j.pax.url.cfg in order to hard coded where is my settings.xml. org.ops4j.pax.url.mvn.settings=file:///c:/Documents and Settings/XXX/.m2/settings.xml 2. I played with information from your mail. It was useful but too heavy. 3. To eases installation i started changing some stuff either in OpenEJB or in your OSGI module. The result is a set of features. But, i'm facing an issue with openejb-loader and openejb-core. Basically, we have openejb-core depending on openejb-loader. And openejb-loader declares a required bundle: openejb-core. I would be nice to get rid of this dependency. To get it temporary working, i change some few things but it could definitely be enhanced. With features, you just need to do: features:addUrl mvn:org.apache.openejb/openejb-core-osgi/3.1.2-SNAPSHOT/xml/features features:list outputs karaf@root> features:list State Version Name Repository [uninstalled] [5.0-2 ] javaee-api repo-0 [uninstalled] [3.1.2-SNAPSHOT] openejb-loader repo-0 [uninstalled] [3.1.2-SNAPSHOT] openejb-api repo-0 [uninstalled] [3.1.2-SNAPSHOT] openejb-javaagent repo-0 [uninstalled] [3.1.2-SNAPSHOT] openejb-jee repo-0 [uninstalled] [3.1.2-SNAPSHOT] ejb31-api-experimental repo-0 [uninstalled] [3.1.2-SNAPSHOT] openejb-core repo-0 [uninstalled] [3.1.2-SNAPSHOT] openejb-core-osgi repo-0 [uninstalled] [2.5.6.SEC01 ] spring karaf-1.0.0 [uninstalled] [1.2.0 ] spring-dm karaf-1.0.0 [uninstalled] [1.0.0 ] wrapper karaf-1.0.0 [uninstalled] [1.0.0 ] obr karaf-1.0.0 [uninstalled] [1.0.0 ] http karaf-1.0.0 [uninstalled] [1.0.0 ] webconsole karaf-1.0.0 [installed ] [1.0.0 ] ssh karaf-1.0.0 [installed ] [1.0.0 ] management karaf-1.0.0 i'd like to just do a features:install openejb-core-osgi. If you are interesting i'm more than happy to commit or to share something. Hope it helps. Jean-Louis
|
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineOn Wed, Oct 28, 2009 at 5:38 PM, Jean-Louis MONTEIRO
<jean-louis.monteiro@...> wrote: > First of all, i went to Felix-Karaf 1.0.0 which is a bit for user friendly I've been wondering what Karaf was having seen it in use in Geronimo osgification. I'm glad you used it so I'm encourage to do so if it gets things easier. > 1. For some strange reasons, installing osgi bundles using Pax mvn url > handler didn't run fine (not able to find my proxy settings). Why did you have to use it at all? Was it as a replacement for installing bundles from maven repos using http? > 2. I played with information from your mail. It was useful but too heavy. It will get easier when I (or someone else) prepare appropriate config file and the necessary bundles get installed automatically. Anyway, I'm all ears to hear how the process can get simpler. > 3. To eases installation i started changing some stuff either in OpenEJB or > in your OSGI module. > The result is a set of features. But, i'm facing an issue with > openejb-loader and openejb-core. > > Basically, we have openejb-core depending on openejb-loader. > And openejb-loader declares a required bundle: openejb-core. I would be nice > to get rid of this dependency. +1 if it gets the osgification simpler. Having a bundle required is just a way to link bundles together and they can get installed by not started. Starting a bundle resolves imports so it's not a cyclic dependency because only openejb-core has to be started. > With features, you just need to do: > > features:addUrl > mvn:org.apache.openejb/openejb-core-osgi/3.1.2-SNAPSHOT/xml/features > > features:list outputs > karaf@root> features:list > State Version Name Repository > [uninstalled] [5.0-2 ] javaee-api repo-0 > [uninstalled] [3.1.2-SNAPSHOT] openejb-loader repo-0 > [uninstalled] [3.1.2-SNAPSHOT] openejb-api repo-0 > [uninstalled] [3.1.2-SNAPSHOT] openejb-javaagent repo-0 > [uninstalled] [3.1.2-SNAPSHOT] openejb-jee repo-0 > [uninstalled] [3.1.2-SNAPSHOT] ejb31-api-experimental repo-0 > [uninstalled] [3.1.2-SNAPSHOT] openejb-core repo-0 > [uninstalled] [3.1.2-SNAPSHOT] openejb-core-osgi repo-0 > [uninstalled] [2.5.6.SEC01 ] spring karaf-1.0.0 > [uninstalled] [1.2.0 ] spring-dm karaf-1.0.0 > [uninstalled] [1.0.0 ] wrapper karaf-1.0.0 > [uninstalled] [1.0.0 ] obr karaf-1.0.0 > [uninstalled] [1.0.0 ] http karaf-1.0.0 > [uninstalled] [1.0.0 ] webconsole karaf-1.0.0 > [installed ] [1.0.0 ] ssh karaf-1.0.0 > [installed ] [1.0.0 ] management karaf-1.0.0 I don't understand it yet - it looks karaf-specific which I would avoid unless it's required. Could you explain what it is for? Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineJacek I did a damn mistake by deleting the cache thought there is
something wrong with it but it is like I removed all bundles I installed few days ago. But before doing that I got the same error about javax.transaction thing related to bundle of openejb loader. I will restart the thing all over again will not do that till tomorrow night or maybe even on Friday. Sorry pal :(. On Wed, Oct 28, 2009 at 7:48 PM, Jacek Laskowski <jacek@...> wrote: > On Wed, Oct 28, 2009 at 5:38 PM, Jean-Louis MONTEIRO > <jean-louis.monteiro@...> wrote: > >> First of all, i went to Felix-Karaf 1.0.0 which is a bit for user friendly > > I've been wondering what Karaf was having seen it in use in Geronimo > osgification. I'm glad you used it so I'm encourage to do so if it > gets things easier. > >> 1. For some strange reasons, installing osgi bundles using Pax mvn url >> handler didn't run fine (not able to find my proxy settings). > > Why did you have to use it at all? Was it as a replacement for > installing bundles from maven repos using http? > >> 2. I played with information from your mail. It was useful but too heavy. > > It will get easier when I (or someone else) prepare appropriate config > file and the necessary bundles get installed automatically. Anyway, > I'm all ears to hear how the process can get simpler. > >> 3. To eases installation i started changing some stuff either in OpenEJB or >> in your OSGI module. >> The result is a set of features. But, i'm facing an issue with >> openejb-loader and openejb-core. >> >> Basically, we have openejb-core depending on openejb-loader. >> And openejb-loader declares a required bundle: openejb-core. I would be nice >> to get rid of this dependency. > > +1 if it gets the osgification simpler. Having a bundle required is > just a way to link bundles together and they can get installed by not > started. Starting a bundle resolves imports so it's not a cyclic > dependency because only openejb-core has to be started. > >> With features, you just need to do: >> >> features:addUrl >> mvn:org.apache.openejb/openejb-core-osgi/3.1.2-SNAPSHOT/xml/features >> >> features:list outputs >> karaf@root> features:list >> State Version Name Repository >> [uninstalled] [5.0-2 ] javaee-api repo-0 >> [uninstalled] [3.1.2-SNAPSHOT] openejb-loader repo-0 >> [uninstalled] [3.1.2-SNAPSHOT] openejb-api repo-0 >> [uninstalled] [3.1.2-SNAPSHOT] openejb-javaagent repo-0 >> [uninstalled] [3.1.2-SNAPSHOT] openejb-jee repo-0 >> [uninstalled] [3.1.2-SNAPSHOT] ejb31-api-experimental repo-0 >> [uninstalled] [3.1.2-SNAPSHOT] openejb-core repo-0 >> [uninstalled] [3.1.2-SNAPSHOT] openejb-core-osgi repo-0 >> [uninstalled] [2.5.6.SEC01 ] spring karaf-1.0.0 >> [uninstalled] [1.2.0 ] spring-dm karaf-1.0.0 >> [uninstalled] [1.0.0 ] wrapper karaf-1.0.0 >> [uninstalled] [1.0.0 ] obr karaf-1.0.0 >> [uninstalled] [1.0.0 ] http karaf-1.0.0 >> [uninstalled] [1.0.0 ] webconsole karaf-1.0.0 >> [installed ] [1.0.0 ] ssh karaf-1.0.0 >> [installed ] [1.0.0 ] management karaf-1.0.0 > > I don't understand it yet - it looks karaf-specific which I would > avoid unless it's required. Could you explain what it is for? > > Jacek > > -- > Jacek Laskowski > Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl > -- Thanks - Mohammad Nour - LinkedIn: http://www.linkedin.com/in/mnour ---- "Life is like riding a bicycle. To keep your balance you must keep moving" - Albert Einstein "Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best." - Clean Code: A Handbook of Agile Software Craftsmanship |
|
|
Re: For adventurous: first run of OSGified OpenEJB *seems* running fineOn Wed, Oct 28, 2009 at 11:44 PM, Mohammad Nour El-Din
<nour.mohammad@...> wrote: > Jacek I did a damn mistake by deleting the cache thought there is > something wrong with it but it is like I removed all bundles I > installed few days ago. But before doing that I got the same error > about javax.transaction thing related to bundle of openejb loader. I > will restart the thing all over again will not do that till tomorrow > night or maybe even on Friday. Sorry pal :(. Don't forget to build openejb again as I committed some important OSGi-related changes. I hope they made a difference and openejb will start up from the very beginning. Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl |
| < Prev | 1 - 2 | Next > |
| Free embeddable forum powered by Nabble | Forum Help |