Integrate Orbeon Forms to OSGI

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Integrate Orbeon Forms to OSGI

eleni.hondrou
Hi everyone,

I'm trying to deploy orbeon.war (orbeon-4.4.0.201311042001-CE) to apache karaf (apache-karaf-2.3.3).
I deployed the war following the instructions described here.

Nevertheless I'm getting the following exceptions in the log file:

1. java.lang.NoClassDefFoundError: org/apache/log4j/Layout

2013-11-22 13:26:40,476 | ERROR | isherExecutor: 1 | RegisterWebAppVisitorWC          | internal.RegisterWebAppVisitorWC  286 | 83 - org.ops4j.pax.web.pax-web-extender-war - 1.1.14 | Registration exception. Skipping.
java.lang.NoClassDefFoundError: org/apache/log4j/Layout
        at org.orbeon.oxf.webapp.ProcessorService$.<init>(ProcessorService.scala:119)
        at org.orbeon.oxf.webapp.ProcessorService$.<clinit>(ProcessorService.scala)
        at org.orbeon.oxf.webapp.OrbeonServletContextListener.<init>(OrbeonServletContextListener.scala:33)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.7.0_10]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.7.0_10]



2. java.lang.NoClassDefFoundError: Could not initialize class org.orbeon.oxf.webapp.ProcessorService$

java.lang.NoClassDefFoundError: Could not initialize class org.orbeon.oxf.webapp.ProcessorService$
        at org.orbeon.oxf.webapp.OrbeonSessionListener.<init>(OrbeonSessionListener.scala:38)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.7.0_10]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.7.0_10]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_10]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)[:1.7.0_10]
        at java.lang.Class.newInstance0(Class.java:372)[:1.7.0_10]
        at java.lang.Class.newInstance(Class.java:325)[:1.7.0_10]
        at org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorHS.newInstance(RegisterWebAppVisitorHS.java:227)[83:org.ops4j.pax.web.pax-web-extender-war:1.1.14]


For solving the [1] exception I tried the following suggestions but with no success:
http://karaf.922171.n3.nabble.com/org-apache-log4j-Layout-missing-td4029659.html
http://comments.gmane.org/gmane.comp.apache.karaf.user/5555


Can anyone give me some hints on how to fix those issues? Has anyone else tried to integrate Orbeon with OSGI?

Thanks in advance
Reply | Threaded
Open this post in threaded view
|

Re: Integrate Orbeon Forms to OSGI

Erik Bruchez
Administrator
That sounds like an interesting thing to try, but we haven't tried this at all at Orbeon at least. Let us know if you make progress.

-Erik