javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-1937

Web application using Mojarra 2.1.0-b11 fails to deploy on Tomcat 7.0.6

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Status Whiteboard:
      Hide

      size_large importance_large

      Show
      size_large importance_large
    • Tags:

      Description

      I updated the jsf-api.jar and jsf-impl.jar files of my web application which I deploy on Tomcat 7.0.6 from version 2.0.3 to 2.1.0-b11. With the former version the web application worked fine but with the newer version the deployment fails:

      02.02.2011 23:33:38 org.apache.catalina.core.StandardContext listenerStart
      SCHWERWIEGEND: Error configuring application listener of class com.sun.faces.application.ServletContextSensitiveSingletonStore
      java.lang.InstantiationException: com.sun.faces.application.ServletContextSensitiveSingletonStore
      at java.lang.Class.newInstance0(Class.java:340)
      at java.lang.Class.newInstance(Class.java:308)
      at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:119)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4458)
      at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5004)
      at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:4999)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      02.02.2011 23:33:38 org.apache.catalina.core.StandardContext listenerStart
      SCHWERWIEGEND: Skipped installing application listeners due to previous error(s)

      Is this issue related or the same as described in Ted Goddard's (last) comment in http://jira.icefaces.org/browse/ICE-6486? (i.e. that com.sun.faces.config.DelegatingAnnotationProvider has code that is specific to GlassFish and thus fails on Tomcat 7.0.6)

        Activity

        Hide
        Ed Burns added a comment -

        Committed on trunk

        Sending common/ant/common.xml
        Sending common/ant/test-app.xml
        Adding common/ant/tomcat7
        Adding common/ant/tomcat7/container.xml
        Sending jsf-ri/src/main/java/com/sun/faces/vendor/WebContainerInjectionProvider.java
        Sending jsf-ri/systest/build-tests.xml
        Sending jsf-ri/systest/build.xml
        Sending jsf-ri/systest/src/com/sun/faces/composite/CompositeComponentsTestCase.java
        Sending jsf-ri/systest/src/com/sun/faces/facelets/UIRepeatTestCase.java
        Sending jsf-ri/systest/src/com/sun/faces/jsptest/ForEachTestCase.java
        Sending jsf-ri/systest/src/com/sun/faces/systest/composite/behavior/CompositeBehaviorTestCase.java
        Sending jsf-ri/systest/src/com/sun/faces/systest/jsp/htmltaglib/HtmlTaglibTestCase.java
        Sending jsf-test/build.xml
        Transmitting file data ............
        Committed revision 8913.

        Show
        Ed Burns added a comment - Committed on trunk Sending common/ant/common.xml Sending common/ant/test-app.xml Adding common/ant/tomcat7 Adding common/ant/tomcat7/container.xml Sending jsf-ri/src/main/java/com/sun/faces/vendor/WebContainerInjectionProvider.java Sending jsf-ri/systest/build-tests.xml Sending jsf-ri/systest/build.xml Sending jsf-ri/systest/src/com/sun/faces/composite/CompositeComponentsTestCase.java Sending jsf-ri/systest/src/com/sun/faces/facelets/UIRepeatTestCase.java Sending jsf-ri/systest/src/com/sun/faces/jsptest/ForEachTestCase.java Sending jsf-ri/systest/src/com/sun/faces/systest/composite/behavior/CompositeBehaviorTestCase.java Sending jsf-ri/systest/src/com/sun/faces/systest/jsp/htmltaglib/HtmlTaglibTestCase.java Sending jsf-test/build.xml Transmitting file data ............ Committed revision 8913.
        Hide
        Ed Burns added a comment -

        Committed on 2.1 branch.

        Sending common/ant/common.xml
        Sending common/ant/test-app.xml
        Adding common/ant/tomcat7
        Adding common/ant/tomcat7/container.xml
        Sending jsf-ri/src/main/java/com/sun/faces/vendor/WebContainerInjectionProvider.java
        Sending jsf-ri/systest/build-tests.xml
        Sending jsf-ri/systest/build.xml
        Sending jsf-ri/systest/src/com/sun/faces/composite/CompositeComponentsTestCase.java
        Sending jsf-ri/systest/src/com/sun/faces/facelets/UIRepeatTestCase.java
        Sending jsf-ri/systest/src/com/sun/faces/jsptest/ForEachTestCase.java
        Sending jsf-ri/systest/src/com/sun/faces/systest/composite/behavior/CompositeBehaviorTestCase.java
        Sending jsf-ri/systest/src/com/sun/faces/systest/jsp/htmltaglib/HtmlTaglibTestCase.java
        Sending jsf-test/build.xml
        Transmitting file data ...........
        Committed revision 8914.

        Show
        Ed Burns added a comment - Committed on 2.1 branch. Sending common/ant/common.xml Sending common/ant/test-app.xml Adding common/ant/tomcat7 Adding common/ant/tomcat7/container.xml Sending jsf-ri/src/main/java/com/sun/faces/vendor/WebContainerInjectionProvider.java Sending jsf-ri/systest/build-tests.xml Sending jsf-ri/systest/build.xml Sending jsf-ri/systest/src/com/sun/faces/composite/CompositeComponentsTestCase.java Sending jsf-ri/systest/src/com/sun/faces/facelets/UIRepeatTestCase.java Sending jsf-ri/systest/src/com/sun/faces/jsptest/ForEachTestCase.java Sending jsf-ri/systest/src/com/sun/faces/systest/composite/behavior/CompositeBehaviorTestCase.java Sending jsf-ri/systest/src/com/sun/faces/systest/jsp/htmltaglib/HtmlTaglibTestCase.java Sending jsf-test/build.xml Transmitting file data ........... Committed revision 8914.
        Hide
        TheEliteGentleman added a comment -

        Hi Ed Burns,

        I have just downloaded the current stable Mojarra 2.1.0(03/02/2011) and I still get the same issue as logged by Holger Stenzhorn.

        I deployed my application on Tomcat 7.0.0 and the same exception occurs. Please refer to my question on StackOverflow.com (http://stackoverflow.com/questions/5364377/jsf-2-setup-issue-in-tomcat-7-java-lang-instantiationexception-com-sun-faces-ap/5364453#5364453).

        I guess there was no build to the 2.1 branch?

        Show
        TheEliteGentleman added a comment - Hi Ed Burns, I have just downloaded the current stable Mojarra 2.1.0(03/02/2011) and I still get the same issue as logged by Holger Stenzhorn. I deployed my application on Tomcat 7.0.0 and the same exception occurs. Please refer to my question on StackOverflow.com ( http://stackoverflow.com/questions/5364377/jsf-2-setup-issue-in-tomcat-7-java-lang-instantiationexception-com-sun-faces-ap/5364453#5364453 ). I guess there was no build to the 2.1 branch?
        Hide
        mgutwein added a comment -

        This is still broken in Mojarra 2.1.0-FCS. Tried it on Tomcat 7.0.8 and 7.0.11 and get the same results.

        Show
        mgutwein added a comment - This is still broken in Mojarra 2.1.0-FCS. Tried it on Tomcat 7.0.8 and 7.0.11 and get the same results.
        Hide
        Ed Burns added a comment -

        Yes, it is not in 2.1.0-FCS. It is in 2.1.1-b02.

        See http://hudson.glassfish.org/view/JSF%20Mojarra/job/JSF_TRUNK-TOMCAT7/ for proof.

        Show
        Ed Burns added a comment - Yes, it is not in 2.1.0-FCS. It is in 2.1.1-b02. See http://hudson.glassfish.org/view/JSF%20Mojarra/job/JSF_TRUNK-TOMCAT7/ for proof.

          People

          • Assignee:
            Ed Burns
            Reporter:
            Holger Stenzhorn
          • Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: