openejb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohammad Nour El-Din <nour.moham...@gmail.com>
Subject Re: For adventurous: first run of OSGified OpenEJB *seems* running fine
Date Sun, 01 Nov 2009 21:31:24 GMT
Hey Jacek...

   I gave a shot tonight and I got this error, pleas help :(, I also
attached the headers.

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.ap
ache.openejb.core [5]: package; (&(package=javax.ejb)(version>=3.1.0)))
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.openejb.core [5]: package;
(&(package=javax.ejb)(version>=3.1.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)
inspect package cpability 5
Invalid argument: cpability
-> inspect package capability 5
org.apache.openejb.core [5] exports packages:
---------------------------------------------
Nothing
-> inspect package requirement 5
org.apache.openejb.core [5] imports packages:
---------------------------------------------
Nothing
-> 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)
[   5] [Installed  ] [    1] Apache OpenEJB :: Container :: Core
(3.1.2.SNAPSHOT)
[   6] [Installed  ] [    1] geronimo-annotation_1.0_spec (1.1.1)
[   7] [Installed  ] [    1] geronimo-ejb_3.0_spec (1.0.1)
[   8] [Installed  ] [    1] geronimo-jta_1.1_spec (1.1.1)
[   9] [Installed  ] [    1] geronimo-interceptor_3.0_spec (1.0.1)
[  10] [Installed  ] [    1] geronimo-javamail_1.4_spec (1.6)
[  11] [Installed  ] [    1] geronimo-j2ee-management_1.1_spec (1.0.1)
[  12] [Installed  ] [    1] geronimo-jpa_3.0_spec (1.1.1)
[  13] [Installed  ] [    1] geronimo-j2ee-connector_1.5_spec (2.0.0)
[  14] [Installed  ] [    1] J2EE JACC 1.1 (1.0.2)
[  15] [Installed  ] [    1] Apache ServiceMix Bundles: wsdl4j-1.6.1 (1.6.1.1)
[  16] [Installed  ] [    1] pluginName (1.0.0.v20080604-1500)
[  17] [Installed  ] [    1] Apache Jakarta Commons Lang (2.4.0.v20081016-1030)
[  18] [Installed  ] [    1] Apache Commons Logging Plug-in
(1.1.1.v200904062255)
[  19] [Installed  ] [    1] Geronimo TxManager :: Connector (2.1.3)
[  20] [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)
[  24] [Installed  ] [    1] Apache OpenEJB :: Container :: Java EE
(3.1.2.SNAPSHOT)
[  25] [Installed  ] [    1] Apache OpenEJB :: Container :: Loader
(3.1.2.SNAPSHOT)
[  26] [Installed  ] [    1] Apache XBean :: ASM shaded (repackaged) (3.6)
[  27] [Installed  ] [    1] Apache XBean :: Finder shaded (repackaged) (3.6)
[  29] [Installed  ] [    1] Apache XBean :: Naming (3.6)
[  30] [Installed  ] [    1] Apache XBean :: Reflect (3.6)
[  31] [Installed  ] [    1] OPS4J Pax Logging - API (1.4)

On Thu, Oct 29, 2009 at 9:36 PM, Jacek Laskowski <jacek@laskowski.net.pl> wrote:
> On Thu, Oct 29, 2009 at 6:15 PM, Quintin Beukes <quintin@skywalk.co.za> wrote:
>> How much of the actual OpenEJB code changes to do a shift like this (to
>> OSGi)?
>
> Almost nothing. The goal was to make as less changes as possible and
> introduce some to make openejb more modular. The bundles are in fact
> the maven modules themselves. Just add/remove imports/exports and it
> begun working with not much hassle on my part. I was really surprised
> when openejb booted up in osgi.
>
> OSGi is just an enhanced classloader platform with a notion of
> services. Each bundle is to provide exports for the other bundles
> which import them. That's the way class visibility is handled. The
> other part of OSGi is the service layer. That's exactly how EJB3
> works. You expose a business intf and that's what you see from a
> client's perspective - no real implementation. In OSGi you register a
> service in the service registry with a set of interfaces backed by an
> implementation. When a bundle is started its activator is fired that's
> in turn registers itself as a service provider or a service consumer.
> Throw some listeners into it and that's what OSGi is all about. Easy
> :)
>
> 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

Mime
View raw message