22 Dec 16:05
RichFaces problem on nuxeo tree]
Hi again,
It seems that the problem is not at richfaces level as this is working
just fine.The method that is called to populated the tree in nuxeo
returns a list of DocumentTreeNode and on each node,which is a
DocumentTreeNodeImpl, the method getChildren() is called in order to
retrieve the children documents.This is done by making a call on
DocumentManagerBean
public DocumentModelList getChildren(DocumentRef parent, String type,
String perm, Filter filter, Sorter sorter) throws
ClientException {
The problem appears on the statefull/stateless architecture,where the
modules that interact with a database of any kind are kept on a jboss
instance and represents the statefull part of the architecture, and the
web modules which represent,together with the corresponding api modules,
the stateless architecture and are kept on another jboss instances.Both
filters and sorters that are used in TreeManager service are registered
by this service which is part of a stateless modules.The classes of
these filters and sorters are searched like this
TreeManagerImpl.class.getClassLoader().loadClass(
filterClass).newInstance();
so the classes of these sorters and filters have to be on a same module
like the module where TreeManager service is,a stateless module.By doing
this we get into problems when calling the method 'getChildren()' from a
DocumentTreeNodeImpl.This method wants to use the method 'getChildren'
from DocumentManagerBean,but the classes of the filters and sorters are
not available on the statefull jboss instance where the
DocumentManagerBean is located and an error like this is obtained
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException:
No ClassLoaders found for:
org.nuxeo.ecm.webapp.tree.DefaultDocumentTreeSorter (no security
manager: RMI class loader disabled)
The only solution I could find was to register both the filters and the
sorters in an api module but I don't think this is such a good solution.
Any suggestions or help would be great.
Thanks a lot !
Subject: ***[spam]*** [Spam:***** SpamScore] [Ecm] RichFaces problem on nuxeo tree
Date: 2008-12-22 12:03:34 GMT
Hi all, I have a little problem,I hope,with the nuxeo support offered for generating trees.In the statefull stateless architecture it seems there is a problem in generating the tree,meaning that only the root tree does appear(Default domain);it seems that the method changeExpandListener that should be called on expand/collapse event on the node is not called. Any help would be great. Thanks a lot! _______________________________________________ ECM mailing list ECM@... http://lists.nuxeo.com/mailman/listinfo/ecm
_______________________________________________ ECM mailing list ECM@... http://lists.nuxeo.com/mailman/listinfo/ecm
RSS Feed