Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1635

org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL doesn't work with Mojarra 2.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.0.1.Final
    • Class Loading, JSF
    • None

    Description

      I set the context parameter org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL in web.xml to true, and added jsf-impl-2.1.3-b02.jar to WEB-INF/lib. But I got the stacktrace below (same stacktrace when jsf-api-2.1.3-b02.jar is added, too). The ear has one ejb and two web modules. One web module for JSF/CDI/RichFaces and one web module for RESTEasy. The strange observation is: the stacktrace occures regarding the web module for RESTEasy.

      I tried to add the following line to the <dependencies> section in modules\org\jboss\as\jaxrs\main\module.xml, but this didn't help.
      <module name="javax.faces.api"/>

      Stacktrace:
      07:48:05,399 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.subunit."swe.ear"."sweREST.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."swe.ear"."sweREST.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "sweREST.war" of deployment "swe.ear"
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
      at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.7.0]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.7.0]
      at java.lang.Thread.run(Thread.java:722) [:1.7.0]
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException: javax.faces.webapp.FacetTag from [Module "deployment.swe.ear.sweREST.war:main" from Service Module Loader]
      at org.jboss.as.jaxrs.deployment.JaxrsComponentDeployer.deploy(JaxrsComponentDeployer.java:63)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
      ... 5 more
      Caused by: java.lang.ClassNotFoundException: javax.faces.webapp.FacetTag from [Module "deployment.swe.ear.sweREST.war:main" from Service Module Loader]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
      at org.jboss.as.jaxrs.deployment.JaxrsComponentDeployer.deploy(JaxrsComponentDeployer.java:61)
      ... 6 more

      Attachments

        Activity

          People

            ssilvert@redhat.com Stan Silvert
            juergen.zimmermann Juergen Zimmermann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: