java.lang.ClassCastException: org.richfaces.component.html.HtmlTree

java.lang.ClassCastException: org.richfaces.component.html.HtmlTree2010-03-14 09:39
public void processSelection(NodeSelectedEvent event) {
HtmlTree tree =null;

UIComponent ut=event.getComponent();
tree = (HtmlTree) event.getComponent();

//nodeTitle = (String) tree.getRowData();
nodeTitle = tree.getRowKey().toString();

//System.out.println("lurim_NO_Title"+nodeTitle+"lurim");

selectedNodeChildren.clear();
TreeNode currentNode = tree.getModelTreeNode(tree.getRowKey());

if (currentNode.isLeaf()){
selectedNodeChildren.add((String)currentNode.getData());
}else
{
Iterator<Map.Entry<Object, TreeNode>> it = currentNode.getChildren();
while (it!=null &&it.hasNext()) {
Map.Entry<Object, TreeNode> entry = it.next();
selectedNodeChildren.add(entry.getValue().getData().toString());
}
}
}

ClassCastException org.richfaces.component.html.HtmlTree


server/default/deploy/jboss-web.deployer/META-INF/jboss-service.xml 4.2.3
jboss-5.0.1.GA/server/default/deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml 5.0.1(bug)
<!-- A flag indicating if the JBoss Loader should be used. This loader
uses a unified class loader as the class loader rather than the tomcat
specific class loader.
The default is false to ensure that wars have isolated class loading
for duplicate jars and jsp files.
-->
<attribute name="UseJBossWebLoader">true</attribute>

类加载

richface 标配jboss看来,其下包装的tomcat的核搞不定

你可能感兴趣的:(java,html,tomcat,jboss,Richfaces)