3 Replies Latest reply on Jan 5, 2006 11:27 AM by rohini

    JSF portlets in JBoss portal.

    rohini

      Hi, i am facing problem while deploying JSF portlets in JBoss Portal.
      I am getting following exception

      javax.faces.FacesException: java.lang.ClassCastException
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:336)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
      at org.apache.catalina.core.ContainerBase.addChildInternal

      On searing on net, i found out , this could be the problem because of Apache myfaces jar. I tried removing jsf-libs from JBoss_home\server\default\deploy\jbossweb-tomcat55.sar, but to no avail.

      when this didnt work, i tried removing JSF specific jar files from lib folder of my web application and i configured listner in web.xml as follows.

      <listner-class>org.apache.myfaces.webapp.StartupServletContextListener</listner-class>

      but still getting the exception..

      can anybody suggest me something on this.
      thankyou

        • 1. Re: JSF portlets in JBoss portal.
          rohini

          Does anyone have any suggestions please?

          • 2. Re: JSF portlets in JBoss portal.
            jaredmladner

            I believe i had that problem. The app must use the jsf jars in JBoss. I had to remove jsf_core.tld and html_basic.tld in the WEB-INF of my app. That fixed the error but I still can't JSF working on JBoss Portal

            • 3. Re: JSF portlets in JBoss portal.
              rohini

              Hey,
              I could go ahead by removing the extra jar files(the JSF RI) and now my ear just contains the following:
              commons-fileupload-1.0.jar
              dataprovider.jar
              defaulttheme.jar
              errorhandler.jar
              jsfcl.jar
              jsf-portlet.jar
              jstl.jar
              myfaces-impl_old.jar
              rowset.jar
              sqlx.jar
              standard.jar
              webui.jar

              but now i don't get any exceptions on the jboss console although it throws an INFO saying:
              INFO [ContextConfig] Missing application web.xml, using defaults only StandardEngine[jboss.web].StandardHost[localhost].StandardContext[/DSAwebPOC1]
              INFO [EARDeployer] Started J2EE application: file:/C:/Program Files/jboss-4.0.3SP1/server/default/deploy/DSAwebPOC1.ear

              and my application doesn't come up.

              Please help.

              Thanks in advance,[/img]