Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-5160

Struts applications using MyFaces context listener don't work on EAP/EWP

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • WFK 1.2.0
    • WFK 1.1.0
    • Struts, WFK
    • None
    • Release Notes
    • Workaround Exists
    • Hide

      Workaround involves removing JSF implementation from the application server.

      Struts applications using the MyFaces context listener do not work on the Enterprise Application Platform, or the Enterprise Web Platform. A workaround is to remove the JSF jars from the $JBOSS_HOME/server/<Profile>/deploy/jbossweb.sar/jsf-libs/*.jar directory, and to comment the following lines out of the $JBOSS_HOME/server/<Profile>/deployers/jbossweb.deployer/web.xml.

      <context-param>
      <param-name>com.sun.faces.injectionProvider</param-name>
      <param-value>org.jboss.web.jsf.integration.injection.JBossInjectionProvider</param-value>
      </context-param>

      <listener>
      <listener-class>org.jboss.web.jsf.integration.config.JBossJSFConfigureListener</listener-class>
      </listener>

      <listener>
      <listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class>
      </listener>

      <init-param>
      <description>JSF standard tlds</description>
      <param-name>tagLibJar0</param-name>
      <param-value>jsf-libs/jsf-impl.jar</param-value>
      </init-param>
      <init-param>
      <description>JSTL standard tlds</description>
      <param-name>tagLibJar1</param-name>
      <param-value>jstl.jar</param-value>
      </init-param>

      You will also need to remove or comment out the following line from $JBOSS_HOME/server/<Profile>/deploy/jbossweb.sar/META-INF/jboss-structure.xml. Note that this will remove your ability to run the admin console.

      <path name="jsf-libs" suffixes=".jar" />

      Show
      Workaround involves removing JSF implementation from the application server. Struts applications using the MyFaces context listener do not work on the Enterprise Application Platform, or the Enterprise Web Platform. A workaround is to remove the JSF jars from the $JBOSS_HOME/server/<Profile>/deploy/jbossweb.sar/jsf-libs/*.jar directory, and to comment the following lines out of the $JBOSS_HOME/server/<Profile>/deployers/jbossweb.deployer/web.xml. <context-param> <param-name>com.sun.faces.injectionProvider</param-name> <param-value>org.jboss.web.jsf.integration.injection.JBossInjectionProvider</param-value> </context-param> <listener> <listener-class>org.jboss.web.jsf.integration.config.JBossJSFConfigureListener</listener-class> </listener> <listener> <listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class> </listener> <init-param> <description>JSF standard tlds</description> <param-name>tagLibJar0</param-name> <param-value>jsf-libs/jsf-impl.jar</param-value> </init-param> <init-param> <description>JSTL standard tlds</description> <param-name>tagLibJar1</param-name> <param-value>jstl.jar</param-value> </init-param> You will also need to remove or comment out the following line from $JBOSS_HOME/server/<Profile>/deploy/jbossweb.sar/META-INF/jboss-structure.xml. Note that this will remove your ability to run the admin console. <path name="jsf-libs" suffixes=".jar" />

      Struts applications using MyFaces context listener don't work on EAP/EWP. This is a known behavior, see also JBPAPP-1958.

              rebecca_newton Rebecca Newton (Inactive)
              oskutka@redhat.com Ondrej Skutka
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: