You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Mohammad Nour El-Din <no...@gmail.com> on 2009/10/24 10:21:29 UTC

Re: For adventurous: first run of OSGified OpenEJB *seems* running fine

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
<ja...@laskowski.net.pl> 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 fine

Posted by Mohammad Nour El-Din <no...@gmail.com>.
Hi 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 <ja...@laskowski.net.pl> wrote:
> On Wed, Oct 28, 2009 at 12:42 AM, Mohammad Nour El-Din
> <no...@gmail.com> 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 fine

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Wed, Oct 28, 2009 at 12:42 AM, Mohammad Nour El-Din
<no...@gmail.com> 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 fine

Posted by Mohammad Nour El-Din <no...@gmail.com>.
Hey 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
<no...@gmail.com> wrote:
> cool, OK I will tonight ALLAH willing.
>
> On Tue, Oct 27, 2009 at 12:01 AM, Jacek Laskowski
> <ja...@laskowski.net.pl> wrote:
>> On Mon, Oct 26, 2009 at 10:44 PM, Mohammad Nour El-Din
>> <no...@gmail.com> 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

Re: For adventurous: first run of OSGified OpenEJB *seems* running fine

Posted by Mohammad Nour El-Din <no...@gmail.com>.
cool, OK I will tonight ALLAH willing.

On Tue, Oct 27, 2009 at 12:01 AM, Jacek Laskowski
<ja...@laskowski.net.pl> wrote:
> On Mon, Oct 26, 2009 at 10:44 PM, Mohammad Nour El-Din
> <no...@gmail.com> 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 fine

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Mon, Oct 26, 2009 at 10:44 PM, Mohammad Nour El-Din
<no...@gmail.com> 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 fine

Posted by Mohammad Nour El-Din <no...@gmail.com>.
Hi 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
<no...@gmail.com> 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 <ja...@laskowski.net.pl> wrote:
>> On Sun, Oct 25, 2009 at 2:55 PM, Jacek Laskowski <ja...@laskowski.net.pl> 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 fine

Posted by Mohammad Nour El-Din <no...@gmail.com>.
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 <ja...@laskowski.net.pl> wrote:
> On Sun, Oct 25, 2009 at 2:55 PM, Jacek Laskowski <ja...@laskowski.net.pl> 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 fine

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Sun, Oct 25, 2009 at 2:55 PM, Jacek Laskowski <ja...@laskowski.net.pl> 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 fine

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Sun, Oct 25, 2009 at 12:17 PM, Mohammad Nour El-Din
<no...@gmail.com> 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 fine

Posted by Mohammad Nour El-Din <no...@gmail.com>.
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"


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
<no...@gmail.com> 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
> <ja...@laskowski.net.pl> wrote:
>> On Sun, Oct 25, 2009 at 12:47 AM, Mohammad Nour El-Din
>> <no...@gmail.com> 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 fine

Posted by Mohammad Nour El-Din <no...@gmail.com>.
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
<ja...@laskowski.net.pl> wrote:
> On Sun, Oct 25, 2009 at 12:47 AM, Mohammad Nour El-Din
> <no...@gmail.com> 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 fine

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Sun, Oct 25, 2009 at 12:47 AM, Mohammad Nour El-Din
<no...@gmail.com> 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 fine

Posted by Mohammad Nour El-Din <no...@gmail.com>.
Hey 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
<no...@gmail.com> 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
> <ja...@laskowski.net.pl> 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