Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.1
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces 2, JSF 2.1, Tomcat 7
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Downgrade to JSF 2.0.3.
      Show
      Downgrade to JSF 2.0.3.

      Description

      When JSF 2.1 is used, various failures are observed on Tomcat 7: missing styles, NullPointerException, fileEntry fails to upload. These failures may be related to annotation scanning since unreachable beans in Session scope are observed.

        Activity

        Hide
        Ted Goddard added a comment -

        Test stock JSF 2.1 examples. Test more recent build of JSF 2.1.

        Show
        Ted Goddard added a comment - Test stock JSF 2.1 examples. Test more recent build of JSF 2.1.
        Hide
        Ted Goddard added a comment -

        Appears to be resolved by "Mojarra 2.1.0 (FCS ri-rc1)" downloaded from http://java.net/downloads/javaserverfaces/ri/. Awaiting confirmation that this is the current authoritative build.

        Show
        Ted Goddard added a comment - Appears to be resolved by "Mojarra 2.1.0 (FCS ri-rc1)" downloaded from http://java.net/downloads/javaserverfaces/ri/ . Awaiting confirmation that this is the current authoritative build.
        Hide
        Ted Goddard added a comment -

        Updated to Mojarra 2.1.0 (FCS 2.1.0-b11) and annotations are no longer processed on Tomcat 7.

        com.sun.faces.config.DelegatingAnnotationProvider has some GlassFish-specific code that is failing on Tomcat 7. The following fixes it, but likely breaks GlassFish. The root cause is either the side-effect in this method or the determination to call setAnnotationScanner in ConfigManager. Commenting out the GlassFish-specific code seems to resolve the problem for Tomcat 7.

        public void setAnnotationScanner(com.sun.faces.spi.AnnotationScanner containerConnector, Set<String> jarNamesWithoutMetadataComplete)

        { assert(null == scanner); // DelegateToGlassFishAnnotationScanner impl = // new DelegateToGlassFishAnnotationScanner(sc); // impl.setAnnotationScanner(containerConnector, jarNamesWithoutMetadataComplete); // scanner = impl; }
        Show
        Ted Goddard added a comment - Updated to Mojarra 2.1.0 (FCS 2.1.0-b11) and annotations are no longer processed on Tomcat 7. com.sun.faces.config.DelegatingAnnotationProvider has some GlassFish-specific code that is failing on Tomcat 7. The following fixes it, but likely breaks GlassFish. The root cause is either the side-effect in this method or the determination to call setAnnotationScanner in ConfigManager. Commenting out the GlassFish-specific code seems to resolve the problem for Tomcat 7. public void setAnnotationScanner(com.sun.faces.spi.AnnotationScanner containerConnector, Set<String> jarNamesWithoutMetadataComplete) { assert(null == scanner); // DelegateToGlassFishAnnotationScanner impl = // new DelegateToGlassFishAnnotationScanner(sc); // impl.setAnnotationScanner(containerConnector, jarNamesWithoutMetadataComplete); // scanner = impl; }
        Hide
        Holger Stenzhorn added a comment -

        I have created the issue "Web application using Mojarra 2.1.0-b11 fails to deploy on Tomcat 7.0.6" (http://java.net/jira/browse/JAVASERVERFACES-1937) and added a link to this issue here in that issue's description since this issue is related or the same, right?

        Show
        Holger Stenzhorn added a comment - I have created the issue "Web application using Mojarra 2.1.0-b11 fails to deploy on Tomcat 7.0.6" ( http://java.net/jira/browse/JAVASERVERFACES-1937 ) and added a link to this issue here in that issue's description since this issue is related or the same, right?
        Hide
        Ted Goddard added a comment -

        We had not seen the specific Exception java.lang.InstantiationException: com.sun.faces.application.ServletContextSensitiveSingletonStore but the desired result, running an application on Tomcat 7, is the same.

        Note that Tomcat 7.0.8 is now known to be necessary for the Servlet 3.0 features of ICEpush.

        http://jira.icefaces.org/browse/PUSH-116
        https://issues.apache.org/bugzilla/show_bug.cgi?id=50753

        Show
        Ted Goddard added a comment - We had not seen the specific Exception java.lang.InstantiationException: com.sun.faces.application.ServletContextSensitiveSingletonStore but the desired result, running an application on Tomcat 7, is the same. Note that Tomcat 7.0.8 is now known to be necessary for the Servlet 3.0 features of ICEpush. http://jira.icefaces.org/browse/PUSH-116 https://issues.apache.org/bugzilla/show_bug.cgi?id=50753
        Hide
        Ken Fyten added a comment -

        Patches to JSF 2.1.0 resolve the issue. Looks like Mojarra have also committed the patch to the Mojarra repository for inclusion in the next release of Mojarra.

        Show
        Ken Fyten added a comment - Patches to JSF 2.1.0 resolve the issue. Looks like Mojarra have also committed the patch to the Mojarra repository for inclusion in the next release of Mojarra.

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: