1 Reply Latest reply on Nov 5, 2008 11:08 PM by Nick Belaevski

    ComponentBean cannot be cast to ComponentBean

    David Doherty Newbie

      I am receiving the following error message when trying to deploy my application on jboss:

      javax.faces.FacesException: Can't parse configuration file: jar:file:/C:/jboss-4.2.2-1-jsf/server/default/deploy/pims.ear/lib/jsf-facelets.jar!/META-INF/faces-config.xml: Error at line 8 column 16: Error at (8, 16: com.sun.faces.config.beans.ComponentBean cannot be cast to com.sun.faces.config.beans.ComponentBean

      After much reading about JBoss classloading I suspect that its because the class is being loaded by two classloaders and is then causing problems.. I believe this class is located in jsf-impl.jar. Looking at the loader repository for the ear for my jsf web app, there are two references to jsf-impl.jar. The unexpected on being in the tmp folder.


      Any ideas how I can solve this problem? It´s driving me nuts...