0 Replies Latest reply on Jul 6, 2018 2:02 AM by rchilla0601

    JSF1.2 application deployment issue in Jboss EAP6.4 if the build is done using maven

    rchilla0601

      HI I am previously using ant to build a jsf1.2 and jbossseam2.2 application to deploy in JBoss EAP6.4, which was successfully build and deployed in the server but when I am changing the build to use maven, I am getting the below error

      22:28:39,575 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/Lynx]] (ServerService Thread Pool -- 51) JBWEB000287: Exception sending context initialized event to liste

      ner instance of class com.sun.faces.config.ConfigureListener: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org.jboss.as.weld.webtier.jsf.WeldApplicationFactory

              at com.sun.faces.config.ConfigManager.initialize(Unknown Source) [jsf-impl-1.2.15.b01-redhat-12.jar:1.2.15.b01-redhat-12]

              at com.sun.faces.config.ConfigureListener.contextInitialized(Unknown Source) [jsf-impl-1.2.15.b01-redhat-12.jar:1.2.15.b01-redhat-12]

              at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]

              at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.7.Final-redhat-3.jar:7.5.7.Final-redhat-3]

              at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.7.Final-redhat-3.jar:7.5.7.Final-redhat-3]

              at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.7.Final-redhat-3.jar:7.5.7.Final-redhat-3]

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_67]

              at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_67]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_67]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67]

              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]

              at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Caused by: java.lang.InstantiationException: org.jboss.as.weld.webtier.jsf.WeldApplicationFactory

              at java.lang.Class.newInstance(Class.java:359) [rt.jar:1.7.0_67]

              at javax.faces.FactoryFinder.getImplGivenPreviousImpl(Unknown Source) [jsf-api-1.2.15.b01-redhat-12.jar:1.2.15.b01-redhat-12]

              at javax.faces.FactoryFinder.getImplementationInstance(Unknown Source) [jsf-api-1.2.15.b01-redhat-12.jar:1.2.15.b01-redhat-12]

              at javax.faces.FactoryFinder.access$400(Unknown Source) [jsf-api-1.2.15.b01-redhat-12.jar:1.2.15.b01-redhat-12]

              at javax.faces.FactoryFinder$FactoryManager.getFactory(Unknown Source) [jsf-api-1.2.15.b01-redhat-12.jar:1.2.15.b01-redhat-12]

              at javax.faces.FactoryFinder.getFactory(Unknown Source) [jsf-api-1.2.15.b01-redhat-12.jar:1.2.15.b01-redhat-12]

              at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(Unknown Source) [jsf-impl-1.2.15.b01-redhat-12.jar:1.2.15.b01-redhat-12]

              at com.sun.faces.config.processor.FactoryConfigProcessor.process(Unknown Source) [jsf-impl-1.2.15.b01-redhat-12.jar:1.2.15.b01-redhat-12]

              ... 13 more

       

      22:28:39,591 ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 51) JBWEB001103: Error detected during context /Lynx start, will stop it

      22:28:39,622 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 51) MSC000001: Failed to start service jboss.web.deployment.default-host./Lynx: org.jboss.msc.service.StartException

      in service jboss.web.deployment.default-host./Lynx: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context

              at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:99)

       

       

      I have followed all the configuration changes suggested for the above error, i.e. changes the jboss/as/weld/mocule.xml and jboss/weld/core/main/module.xml and added slot1.2 in javax.faces.api and also the jboss-deploymentStructure is already having the chenges to exclude jsf main slot and added dependency of slot1.2. But still getting the same error if I am building the application using maven could any one help me out of this. I already spent two eeeks on this.