ICEfaces-EE
  1. ICEfaces-EE
  2. IPCK-559

ace:showcase navigationNotifier issues with WebSphere 8.5.5.9 and 9.0.0.2

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-4.1.0.GA, EE-4.2.0.GA
    • Fix Version/s: EE-4.2.0.GA
    • Component/s: Samples
    • Labels:
      None
    • Environment:
      WAS 8.5.5.9 and 9.0.0.2 servers, All browsers, ICEfaces EE 4.2 trunk r51707
    • Assignee Priority:
      P2
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration

      Description

      showcase icecore:navigationNotifier demo fails when tested on WAS 9.0.0.2 and 8.5.5.9 (EE-4.2)
      The navigation occurred message is not seen when using the browser back and forward controls. Also the second attempt at using the browser back and forward control results in incorrect page load as seen in attached screenshot notifier.PNG. Only the text '2017' is seen in the top left. There are no browser or console errors. Not an issue with Tomcat 8. Occurs on all browsers.

      When tested with EE-4.1.0 the '2017' issue as seen below does not occur however the navigation message is only rendered once.

        Activity

        Hide
        Ken Fyten added a comment -

        Let's add instructions for the new dependency to the wiki page for the ace:navigationNotifier on the dependency and where to find instructions on how to solve.

        Show
        Ken Fyten added a comment - Let's add instructions for the new dependency to the wiki page for the ace:navigationNotifier on the dependency and where to find instructions on how to solve.
        Show
        Mircea Toma added a comment - - edited Added instructions in the Wiki, see http://wiki.icesoft.com/display/IFEE2/EE4+-+WebSphere+Application+Server+8#EE4-WebSphereApplicationServer8-standaloneconfiguringtheicefacesapplication .
        Hide
        Liana Munroe added a comment -

        Tested with ICEfaces EE-4.2.0.GA build 2 on WAS 9. The application could not be launched when the beans.xml file was added to the WEB-INF directory of the showcase app. Could this be because the namespaces used in the beans.xml file are not compatible with ICEfaces 4? The "http://java.sun.com/xml/ns/javaee" namespaces are used in ICEfaces EE 3.x applications. In the ICEfaces 4 test apps the "http://xmlns.jcp.org/jsf/....." namespaces are used.

        Show
        Liana Munroe added a comment - Tested with ICEfaces EE-4.2.0.GA build 2 on WAS 9. The application could not be launched when the beans.xml file was added to the WEB-INF directory of the showcase app. Could this be because the namespaces used in the beans.xml file are not compatible with ICEfaces 4? The "http://java.sun.com/xml/ns/javaee" namespaces are used in ICEfaces EE 3.x applications. In the ICEfaces 4 test apps the "http://xmlns.jcp.org/jsf/....." namespaces are used.
        Hide
        Mircea Toma added a comment - - edited

        I don't think the namespace is the problem.
        I could deploy and run sucesfully the showcase app on Websphere 9.0.0.2 when I built the app using the web-profile target or servlet-profile target with Myfaces. The Enterprise Applications > showcase_war > JSP and JSF options scrren actually states that only Myfaces is supported with version 9.*:

        The JSF implementation is a server-wide configuration setting for Version 8.0 and later nodes. If you have multiple applications that require different JSF implementations, you must separate the applications into different application servers or clusters. For Version 7.0 nodes, the JSF implementation is an application configuration setting. For Version 9.0 and later nodes, the Sun Reference 1.2 JSF implementation is not supported. Version 9.0 and later nodes use the MyFaces JSF implementation, even if SunRI is selected in a mixed-cell environment. For more configuration information, read about JavaServer Faces in the product documentation.

        Show
        Mircea Toma added a comment - - edited I don't think the namespace is the problem. I could deploy and run sucesfully the showcase app on Websphere 9.0.0.2 when I built the app using the web-profile target or servlet-profile target with Myfaces. The Enterprise Applications > showcase_war > JSP and JSF options scrren actually states that only Myfaces is supported with version 9.*: The JSF implementation is a server-wide configuration setting for Version 8.0 and later nodes. If you have multiple applications that require different JSF implementations, you must separate the applications into different application servers or clusters. For Version 7.0 nodes, the JSF implementation is an application configuration setting. For Version 9.0 and later nodes, the Sun Reference 1.2 JSF implementation is not supported. Version 9.0 and later nodes use the MyFaces JSF implementation, even if SunRI is selected in a mixed-cell environment. For more configuration information, read about JavaServer Faces in the product documentation.
        Hide
        Ken Fyten added a comment -

        Okay, I will note this requirement in the release notes.

        Show
        Ken Fyten added a comment - Okay, I will note this requirement in the release notes.
        Hide
        Liana Munroe added a comment -

        Tested with ICEfaces EE-4.2.0.GA Build 3, WAS 9.0.0.2 on amazon AWS using showcase app.
        When showcase is built with web-profile and adding the beans.xml file into the WEB-INF directory I was able to launch the showcase app and test the navigation issue. The '2017 text ' issue is resolved however the 'Navigation detected' message is not always rendered the 2nd or 3rd time using the browser forward and back buttons in Chrome 59 and IE 11. Not an issue with Firefox.

        I can not launch the showcase app with this myfaces config:
        showcase built with myfaces libs
        beans.xml added to web-inf directory of showcase.war
        jsf and jsp options set to default or myfaces 2.2
        class loader set to 'Classes loaded with local class loader first (parent last)

        Server error seen
        [7/26/17 17:13:12:517 UTC] 00000077 CompositionUn E WSVR0194E: Composition unit WebSphere:cuname=showcase_war in BLA WebSphere:blaname=showcase_war failed to start.
        [7/26/17 17:13:12:517 UTC] 00000077 MBeanHelper E Could not invoke an operation on object: WebSphere:name=ApplicationManager,process=ICEsoft_Stand-Alone_Server,platform=proxy,node=ICEsoft_Stand-Alone_Node,version=9.0.0.0,type=ApplicationManager,mbeanIdentifier=ApplicationManager,cell=ip-10-10-0-112Node01Cell,spec=1.0 because of an mbean exception: com.ibm.ws.exception.RuntimeError: java.lang.RuntimeException: com.ibm.ws.cdi.CDIRuntimeException: com.ibm.ws.cdi.CDIDeploymentRuntimeException: java.lang.RuntimeException: Service class org.apache.myfaces.cdi.view.ViewScopeContextExtension didn't implement the required interface

        Show
        Liana Munroe added a comment - Tested with ICEfaces EE-4.2.0.GA Build 3, WAS 9.0.0.2 on amazon AWS using showcase app. When showcase is built with web-profile and adding the beans.xml file into the WEB-INF directory I was able to launch the showcase app and test the navigation issue. The '2017 text ' issue is resolved however the 'Navigation detected' message is not always rendered the 2nd or 3rd time using the browser forward and back buttons in Chrome 59 and IE 11. Not an issue with Firefox. I can not launch the showcase app with this myfaces config: showcase built with myfaces libs beans.xml added to web-inf directory of showcase.war jsf and jsp options set to default or myfaces 2.2 class loader set to 'Classes loaded with local class loader first (parent last) Server error seen [7/26/17 17:13:12:517 UTC] 00000077 CompositionUn E WSVR0194E: Composition unit WebSphere:cuname=showcase_war in BLA WebSphere:blaname=showcase_war failed to start. [7/26/17 17:13:12:517 UTC] 00000077 MBeanHelper E Could not invoke an operation on object: WebSphere:name=ApplicationManager,process=ICEsoft_Stand-Alone_Server,platform=proxy,node=ICEsoft_Stand-Alone_Node,version=9.0.0.0,type=ApplicationManager,mbeanIdentifier=ApplicationManager,cell=ip-10-10-0-112Node01Cell,spec=1.0 because of an mbean exception: com.ibm.ws.exception.RuntimeError: java.lang.RuntimeException: com.ibm.ws.cdi.CDIRuntimeException: com.ibm.ws.cdi.CDIDeploymentRuntimeException: java.lang.RuntimeException: Service class org.apache.myfaces.cdi.view.ViewScopeContextExtension didn't implement the required interface
        Hide
        Ken Fyten added a comment -

        Seems like it isn't finding the built-in MyFaces libs but another set in the error above. To clarify, you are not deploying the myfaces jars yourself, right?

        Show
        Ken Fyten added a comment - Seems like it isn't finding the built-in MyFaces libs but another set in the error above. To clarify, you are not deploying the myfaces jars yourself, right?
        Hide
        Ken Fyten added a comment -

        Since WAS 9 includes a suitably new Myfaces JSF version, we only need to support web-profile deployments with the built-in JSF libs on this server.

        So that configuration is working, though only on Firefox.

        The remaining work to be done here is to get the other browsers functioning as expected as well.

        Show
        Ken Fyten added a comment - Since WAS 9 includes a suitably new Myfaces JSF version, we only need to support web-profile deployments with the built-in JSF libs on this server. So that configuration is working, though only on Firefox. The remaining work to be done here is to get the other browsers functioning as expected as well.
        Hide
        Mircea Toma added a comment -

        I tested sucessfully the component with the following browsers: IE10, IE11, Chrome and Firefox. Indeed the version of Safari I have (10.1.1) seems not to work.

        Show
        Mircea Toma added a comment - I tested sucessfully the component with the following browsers: IE10, IE11, Chrome and Firefox. Indeed the version of Safari I have (10.1.1) seems not to work.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Liana Munroe
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: