When i tried to start examples from MyFaces examples in my application i faced with problem

17:02:30,671 INFO [STDOUT] 20.10.2005 17:02:30 com.sun.facelets.FaceletViewHandler handleRenderException
SEVERE: Error Rendering View
java.lang.IllegalArgumentException: Value must be a TreeModel or TreeNode
at org.apache.myfaces.custom.tree2.UITreeData.getDataModel(UITreeData.java:398)
at org.apache.myfaces.custom.tree2.UITreeData.saveState(UITreeData.java:91)
at org.apache.myfaces.custom.tree2.HtmlTree.saveState(HtmlTree.java:60)
at javax.faces.component.UIComponentBase.processSaveState(UIComponentBase.java:462)
at javax.faces.component.UIComponentBase.processSaveState(UIComponentBase.java:456)
at javax.faces.component.UIComponentBase.processSaveState(UIComponentBase.java:456)
at org.apache.myfaces.application.jsp.JspStateManagerImpl.getComponentStateToSave(JspStateManagerImpl.java:70)
at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:215)
at com.sun.facelets.FaceletViewHandler.writeState(FaceletViewHandler.java:589)
at org.apache.myfaces.renderkit.html.HtmlFormRendererBase.encodeBegin(HtmlFormRendererBase.java:74)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:307)
at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:511)
at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:518)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:447)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source)
17:02:30,687 INFO [STDOUT] 20.10.2005 17:02:30 com.sun.facelets.FaceletViewHandler handleRenderException
SEVERE: Took Type: java.io.PrintWriter

Sorry for the slow reply. Rather than making your stateful session bean an extension of TreeNodeBase, place a private member variable within the stateful session bean that extends the TreeNodeBase class, and reference it from your jsf page through the stateful session bean (that way your not relying on remote/local interfaces of the stateful session bean to represent the extension of the TreeNodeBase.

11:14:35,687 INFO [NamingHelper] JNDI InitialContext properties:{}
11:14:35,890 INFO [STDOUT] 25.10.2005 11:14:35 com.sun.facelets.FaceletViewHandler handleRenderException
SEVERE: Error Rendering View
java.lang.IllegalArgumentException: Value must be a TreeModel or TreeNode
at org.apache.myfaces.custom.tree2.UITreeData.getDataModel(UITreeData.java:398)
at org.apache.myfaces.custom.tree2.UITreeData.saveState(UITreeData.java:91)
at org.apache.myfaces.custom.tree2.HtmlTree.saveState(HtmlTree.java:60)
at javax.faces.component.UIComponentBase.processSaveState(UIComponentBase.java:462)
at javax.faces.component.UIComponentBase.processSaveState(UIComponentBase.java:456)
at javax.faces.component.UIComponentBase.processSaveState(UIComponentBase.java:456)
at org.apache.myfaces.application.jsp.JspStateManagerImpl.getComponentStateToSave(JspStateManagerImpl.java:70)
at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:215)
at com.sun.facelets.FaceletViewHandler.writeState(FaceletViewHandler.java:589)
at org.apache.myfaces.renderkit.html.HtmlFormRendererBase.encodeBegin(HtmlFormRendererBase.java:74)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:307)
at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:511)
at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:518)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:447)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source)
11:14:35,890 INFO [STDOUT] 25.10.2005 11:14:35 com.sun.facelets.FaceletViewHandler handleRenderException
SEVERE: Took Type: java.io.PrintWriter

Finally I beat!!! :-) I put tomahawk.jar into server\default\deploy\jbossweb-tomcat55.sar\jsf-libs andremove it from project package. Everything working :-)But it strange for me, why i can't have this library in my WEB-INF/lib??????

javax.servlet.ServletException: Encountered a node [0] + with an illogical state. Node is expanded but it is also considered a leaf (a leaf cannot be considered expanded. javax.faces.webapp.FacesServlet.service(FacesServlet.java:109) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)

I'm also on the problem now.My SB ClassifierManagement.treeData is populated by an entitybean. However my deployment fails because the tomahawk classes cant be found. The removal of the backingbean the view logic is partly going to the sessionbean, putting the tomahawk jar inside the web-inf/lib/ making it invisible for the SB.

So I'm thinking right now that for this kind of "advanced" mixtture of appdata an ui-logic the backing bean will be back? Or should tomahawk.jar be globalized as topic origator stated?