You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Charles Moulliard <cm...@gmail.com> on 2011/07/01 17:56:02 UTC
Error when openejb is started on Apache Karaf (osgi runtime)
Hi,
I have been able to find the bundles required to deploy OpenEJB
4.0-SNASPHOT on Apache Karaf 2.2.1. Unfortunately, I get this error at
the launch
Starting OpenEJB...
FATAL ERROR WHILE CONFIGURING LOGGING!!!. MISSING embedded.juli.properties FILE
FATAL ERROR WHILE CONFIGURING LOGGING!!!. MISSING embedded.juli.properties FILE
Apache OpenEJB ${pom.version} build:
@DATE-REPLACED-BY-MAVEN@-@TIME-REPLACED-BY-MAVEN@
http://openejb.apache.org/
Registering OSGified OpenEJB Deployer...
[Deployer] Bundle org.apache.openejb.core-osgi has been started
[Deployer] Checking whether it's an EJB module
ERROR: Bundle org.apache.openejb.core-osgi [198] EventDispatcher:
Error during dispatch. (java.lang.NullPointerException)
java.lang.NullPointerException
at org.apache.openejb.core.osgi.impl.Deployer.deploy(Deployer.java:58)
at org.apache.openejb.core.osgi.impl.Deployer.bundleChanged(Deployer.java:45)
at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)
at org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
at org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
at org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
at java.lang.Thread.run(Thread.java:680)
I think that some parameters are not well configured and that openejb
try to deploy a bundle as a EAR
Regards,
Charles Moulliard
Apache Committer
Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard
Re: Error when openejb is started on Apache Karaf (osgi runtime)
Posted by Romain Manni-Bucau <rm...@gmail.com>.
did you check you have an ejb-jar.xml?
i think the osgi deployer is not up to date :s
- Romain
2011/7/1 Charles Moulliard <cm...@gmail.com>
> Hi,
>
> I have been able to find the bundles required to deploy OpenEJB
> 4.0-SNASPHOT on Apache Karaf 2.2.1. Unfortunately, I get this error at
> the launch
>
> Starting OpenEJB...
> FATAL ERROR WHILE CONFIGURING LOGGING!!!. MISSING embedded.juli.properties
> FILE
> FATAL ERROR WHILE CONFIGURING LOGGING!!!. MISSING embedded.juli.properties
> FILE
> Apache OpenEJB ${pom.version} build:
> @DATE-REPLACED-BY-MAVEN@-@TIME-REPLACED-BY-MAVEN@
> http://openejb.apache.org/
> Registering OSGified OpenEJB Deployer...
> [Deployer] Bundle org.apache.openejb.core-osgi has been started
> [Deployer] Checking whether it's an EJB module
> ERROR: Bundle org.apache.openejb.core-osgi [198] EventDispatcher:
> Error during dispatch. (java.lang.NullPointerException)
> java.lang.NullPointerException
> at
> org.apache.openejb.core.osgi.impl.Deployer.deploy(Deployer.java:58)
> at
> org.apache.openejb.core.osgi.impl.Deployer.bundleChanged(Deployer.java:45)
> at
> org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
> at java.lang.Thread.run(Thread.java:680)
>
>
> I think that some parameters are not well configured and that openejb
> try to deploy a bundle as a EAR
>
> Regards,
>
> Charles Moulliard
>
> Apache Committer
>
> Blog : http://cmoulliard.blogspot.com
> Twitter : http://twitter.com/cmoulliard
> Linkedin : http://www.linkedin.com/in/charlesmoulliard
> Skype: cmoulliard
>
Re: Error when openejb is started on Apache Karaf (osgi runtime)
Posted by Charles Moulliard <cm...@gmail.com>.
Hi Romain,
Sorry, I discover this morning that you reply to my email. The NPE appears
because the Deployer class tries to find jars file attached to the following
bundle "openejb-core-osgi". This could only work if we deploy fragment
bundles (containing the ejb module) on OSGI / Karaf platform and link it to
the bundle "openejb-core-osgi"
Regards,
Charles
--
View this message in context: http://openejb.979440.n4.nabble.com/Error-when-openejb-is-started-on-Apache-Karaf-osgi-runtime-tp3638657p3645222.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Error when openejb is started on Apache Karaf (osgi runtime)
Posted by Romain Manni-Bucau <rm...@gmail.com>.
did you check you have an ejb-jar.xml?
i think the osgi deployer is not up to date :s
- Romain
2011/7/1 Charles Moulliard <cm...@gmail.com>
> Hi,
>
> I have been able to find the bundles required to deploy OpenEJB
> 4.0-SNASPHOT on Apache Karaf 2.2.1. Unfortunately, I get this error at
> the launch
>
> Starting OpenEJB...
> FATAL ERROR WHILE CONFIGURING LOGGING!!!. MISSING embedded.juli.properties
> FILE
> FATAL ERROR WHILE CONFIGURING LOGGING!!!. MISSING embedded.juli.properties
> FILE
> Apache OpenEJB ${pom.version} build:
> @DATE-REPLACED-BY-MAVEN@-@TIME-REPLACED-BY-MAVEN@
> http://openejb.apache.org/
> Registering OSGified OpenEJB Deployer...
> [Deployer] Bundle org.apache.openejb.core-osgi has been started
> [Deployer] Checking whether it's an EJB module
> ERROR: Bundle org.apache.openejb.core-osgi [198] EventDispatcher:
> Error during dispatch. (java.lang.NullPointerException)
> java.lang.NullPointerException
> at
> org.apache.openejb.core.osgi.impl.Deployer.deploy(Deployer.java:58)
> at
> org.apache.openejb.core.osgi.impl.Deployer.bundleChanged(Deployer.java:45)
> at
> org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
> at java.lang.Thread.run(Thread.java:680)
>
>
> I think that some parameters are not well configured and that openejb
> try to deploy a bundle as a EAR
>
> Regards,
>
> Charles Moulliard
>
> Apache Committer
>
> Blog : http://cmoulliard.blogspot.com
> Twitter : http://twitter.com/cmoulliard
> Linkedin : http://www.linkedin.com/in/charlesmoulliard
> Skype: cmoulliard
>