2 Replies Latest reply on Apr 21, 2011 8:37 AM by impio

    JSF 1.1.X in JBOSS 5.1.0

    impio

      Hi,

      I'm trying to deploy an .ear that contains a .war. This war includes myfaces-1.1.3 jars.

      When trying to deploy I get the following exception:

      java.lang.ClassCastException: javax.faces.webapp.FacesServlet cannot be cast to javax.servlet.Servlet

       

      As per http://community.jboss.org/wiki/JBoss5AndMyFaces: "To run Sun's JSF 1.1 impl, you would need to surgically remove JSF from JBoss."

       

      So I tried to move JSF libraries from jbossweb.sar to admin-console.war as said here:

      http://publib.boulder.ibm.com/infocenter/brjrules/v7r1/index.jsp?topic=/com.ibm.websphere.ilog.jrules.install.doc/Content/Business_Rules/Documentation/_pubskel/JRules_Application_Servers/ps_Installing_JRules_IC319.html

       

      but no result .

      Could anyone spare me some hints about this issue?

       

      PS:

      ear META-INF/jboss-classloading.xml

      <classloading xmlns="urn:jboss:classloading:1.0"

                      domain="my-app.ear"

                      export-all="NON_EMPTY"

                      import-all="true"

              parent-first="false">

      </classloading>

       

      war WEB-INF/jboss-classloading.xml

      <classloading xmlns="urn:jboss:classloading:1.0"

                      domain="myapp-web.war"

              parent-domain="my-app.ear"

                      export-all="NON_EMPTY"

                      import-all="true"

              parent-first="false">

      </classloading>