3 Replies Latest reply on Apr 21, 2008 2:26 PM by peterj

    Error - Both MyFaces and the RI are on your classpath.

    ronnie8080

      Hello All,

      I am new to JBoss and am using portal version jboss-portal-2.6.4.
      When I access the server using "http://localhost:8080/portal", I get the following error.
      How do I remove these errors. I am more concerned about the last error the one that says
      both MyFaces and RI found in classpath. What do I need to do to solve this. If not solved, what all problems can this particular error cause.

      13:32:43,704 ERROR [STDERR] Apr 15, 2008 1:32:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/JBoss/jboss-portal-2.6.4/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/portal-faces-lib.jar!/META-INF/portal.taglib.xml
      13:32:43,876 ERROR [STDERR] Apr 15, 2008 1:32:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/JBoss/jboss-portal-2.6.4/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
      13:32:43,907 ERROR [STDERR] Apr 15, 2008 1:32:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/JBoss/jboss-portal-2.6.4/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
      13:32:43,985 ERROR [STDERR] Apr 15, 2008 1:32:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/JBoss/jboss-portal-2.6.4/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
      13:32:44,095 ERROR [STDERR] Apr 15, 2008 1:32:44 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/JBoss/jboss-portal-2.6.4/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
      13:32:44,142 ERROR [STDERR] Apr 15, 2008 1:32:44 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/JBoss/jboss-portal-2.6.4/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
      13:32:45,673 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true
      13:32:45,673 INFO [MyfacesConfig] Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.
      13:32:45,673 INFO [MyfacesConfig] Starting up Tomahawk on the RI-JSF-Implementation.
      13:32:45,673 INFO [MyfacesConfig] Starting up Tomahawk on the MyFaces-JSF-Implementation
      13:32:45,673 ERROR [MyfacesConfig] Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.
      


      Thank you.
      R

        • 1. Re: Error - Both MyFaces and the RI are on your classpath.
          peterj

          The earlier error (with a location of STDERR) are expected, The Sun JSF implementation is writing text to stderr, which is reported by log4j and error output.

          The last error means that you probably have the myfaces jar file bundled with your application. You should remove it because jbossas already comes with the sun faces implementation.

          • 2. Re: Error - Both MyFaces and the RI are on your classpath.
            ronnie8080

            Peter,

            Thank you so much for getting back.

            I now understand the STDERR better.

            However, I am not sure about how to remove the myfaces related jar as I do not remember having added them. In fact I have not done anything to the out of the box server other than run it. But, it seems that myfaces-api.jar and myfaces-impl.jar are present in three different location.
            C:\JBoss-2.6.4_RI\jboss-portal-2.6.4\server\default\deploy\jboss-portal.sar\portal-admin.sar\portal-admin.war\WEB-INF\lib2
            C:\JBoss-2.6.4_RI\jboss-portal-2.6.4\server\default\deploy\jboss-portal.sar\portal-identity.sar\portal-identity.war\WEB-INF\lib2
            C:\JBoss-2.6.4_RI\jboss-portal-2.6.4\server\default\deploy\jboss-portal.sar\portal-wsrp.sar\portal-wsrp-admin.war\WEB-INF\lib2

            I will remove these jars and try. Do I have to do anything extra after removing these jars.

            Thank you so much.
            Ronnie

            • 3. Re: Error - Both MyFaces and the RI are on your classpath.
              peterj

              I checked my log. I am getting the same error as you - both MyFaces and RI are present. I have never run into a problem, so I would ignore this error.

              However, if you removed the MyFaces jar from the locations you specified, and everything still works, I would leave it like that.