5 Replies Latest reply on May 2, 2010 1:37 PM by mceliksoy

    Problem with RichTree and nodeSelectListener

    mceliksoy

      Hello all,
      i have a problem with rich:tree nodeSelectListener. I have provided my project with Jboss tool for Eclipse as an EAR Project. Everything is ok.
      But as soon as  I implement nodeSelectListener, i get either ClassNotFoundException or org.richfaces.component.html.HtmlTree cannot be cast to org.richfaces.component.html.HtmlTree.


      public void processSelection(NodeSelectedEvent event) {
              HtmlTree tree = (HtmlTree) event.getComponent();
              ....
      }




      richfaces-ui.jar and
      richfaces-impl.jar consider in WEB-INF/lib



      I have looked on the Internet a lot. Apparently class loader problem.
      With JBoss 4.2 everything is ok. From JBoss 5.x ClassLoader structure was changed. Now war and ear projects are isolated from each other.
      I have found some solution, however, none of forum recommending solutions functions with me.


      My configuration:
      JBoss 5.1
      Seam 2.2
      RichFaces 3.1


      Has somebody implemented something like that successfully?
      Many thanks.