Hi

Jean-Marc Orliaguet wrote:

Hi,

I'm trying to deploy nxruntime + nxthemes demo

it seems that NXRuntime.jar requires:

commons-io-1.2.jar
commons-lang-2.1.jar
commons-fileupload-1.1.1.jar

NXRuntime is not using any of these libraries. (you can also check maven deps) I've tested on my jboss by changing the deployment order for lib-fragments.xml and it works. NXRuntime is requiring only nuxeo-osgi.sar in order to be started (the error you have is happening when nxruntime is deployed before nuxeo-osgi)

they are referenced in org.nuxeo.ecm.webapp/ lib-fragments.xml

otherwise I get:

11:02:48,449 WARN [ServiceController] Problem creating service nx:type=service,name=RuntimeAdapter
java.lang.NullPointerException
at org.nuxeo.runtime.jboss.adapter.RuntimeAdapter.createService(RuntimeAdapter.java:108) at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
       at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
I investigated the problem and this happen because when you change the lib-fragments.xml name to zz-lib-fragments.xml nuxeo-osgi is deployed after nxruntime!!! (toward the end of the bundle list)
Weird :) In fact nuxeo-osgi must be deployed before any other osgi bundle.
The fact is that NXRuntime requires nuxeo-osgi.sar but it is deployed before and NXJBossRuntime is deployed after nuxeo-osgi which explain the error (NXJBossRuntime.sar define the RuntimeAdapter which requires NXRuntime - but NXRuntime requires nuxeo-osgi in order to initialize the runtime service and because nuxeo-osgi.sar was not deployed before nxruntime the runtime service is not initialzied and thus unusable.
I think this may be a bug in the deployment ordering
I will investigate this. Thanks

Bogdan

also note that deployment currently works because these libraries are referenced in 'lib-fragments.xml' which comes first before 'nx...' thanks to alphabetic order

if you rename 'lib-fragments.xml' as 'zz-lib-fragments.xml' it won't work. So I guess that a dependency on 'commons-..' must be added in NXRuntime.jar/sar ...


/JM



_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to