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...
Try removing the jsf-lib.jar file from pims.ear/lib (the one in the 'tmp' directory is the working copy). JBossAS already contains a jsf jar at server/xxx/deploy/jboss-web.deployer/jsf-libs.