Jean-Marc Orliaguet wrote:
Florent Guillaume wrote:
On 7 Dec 2006, at 20:07, Bogdan Stefanescu wrote:
Hi Jean Marc,

I reworked the deployment model of nuxeo5 so now the custom URLComparator used to control the deployment order (declared in conf/jboss-service.xml) is obsolete.
The order is controlled by the nuxeo5 custom EAR deployer.
Anyway I cannot remove the URLComparator because nxthemes EARs are using it to deploy in correct order (the nxthemes-jsf-editor.ear should be deployed after nxthemes-jsf.ear)

My question is how can we solve this (to be able to remove the custom URLComparator)?
I see several solutions:
1. make a unique EAR for nxthemes (there is a reason to use 2 EARs?)
2. integrate nxthemes inside nuxeo5 EAR
3. make a unique nuxeo EAR for nxthemes (nxthemes.nxp) - you can benefit thus of deployment preprocessing available in a nuxeo EAR.


One use case to keep in mind is the install of several instances of the nuxeo5 webapp in a single JBoss server. They will require an instance of nxthemes each (with a different webapp url prefix). It would be nice if configuring for that didn't involve hairy jar unzipping/rezipping.

Florent


lots of things would break because nxthemes resources are mapped against /nxthemes/lib ..., the editor expects a /nxthemes-jsf-editor/ url for getting its resources.

if the problem is the deployment order, I'm not even sure that it matter if nxthemes-jsf.ear is deployed before nxthemes-jsf-editor.ear or the opposite ... They're independent applications, so the deployment order shouldn't matter.

are you sure that it doesn't work, Bogdan, if nxthemes-jsf.ear is deployed after nxthemes-jsf-editor.ear? (nxthemes-jsf-editor.ear is an optional application)

If I remove the custom URLComparator nxthemes-jsf-editor.ear I get errors when starting JBoss.
For example I have this sort of exceptions:

2006-12-07 22:55:30,849 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config jar:file:/opt/jboss/server/default/lib/jsf-facelets.jar!/META-INF/faces-config.xml 2006-12-07 22:55:30,858 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config jar:file:/opt/jboss/server/default/tmp/deploy/tmp38596nxthemes-jsf-editor.ear-contents/jboss-seam.jar!/META-INF/faces-config.xml 2006-12-07 22:55:30,865 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config jar:file:/opt/jboss/server/default/tmp/deploy/tmp38596nxthemes-jsf-editor.ear-contents/nxthemes-jsf-lib.jar!/META-INF/faces-config.xml 2006-12-07 22:55:30,874 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config /WEB-INF/faces-config.xml 2006-12-07 22:55:30,973 WARN [org.apache.myfaces.shared_impl.util.LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : en_US 2006-12-07 22:55:31,015 ERROR [org.apache.myfaces.shared_impl.util.ClassUtils] Class org.nuxeo.theme.jsf.component.UITab not found java.lang.ClassNotFoundException: No ClassLoaders found for: org.nuxeo.theme.jsf.component.UITab
   at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511) at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:242)

In the deploy directory I have the following JARs and EARs

nxthemes-fragments.jar
nxthemes-jsf.ear
nxthemes-jsf-editor.ear
nxthemes-jsf-filters.jar

If I re-enable the URLComparator with the following dependency.order file

nxthemes-core.jar
nxthemes-fragments.jar
nxthemes-jsf.ear
nxthemes-jsf-filters.jar
nxthemes-jsf-editor.ear


I have no more these exceptions

Bogdan


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

Reply via email to