1 Reply Latest reply on Sep 23, 2013 12:42 PM by Roger Lee

    Migrating to JBoss AS 7.1.1.Final, Seam 2.3.2.Final with RichFaces 4.3.3.Final

    Roger Lee Apprentice

      I'm trying to migrate an existing (live) App from JBoss AS 6.1.0 Final to AS 7.1.1.Final.

       

      The 'final' hurdle is when I deploy my EAR I get 'Class Not Found Exceptions' relating to ajax4jsf.

       

      I have the following JARs in my EAR & WAR:-


      richfaces-components-api-4.3.3.Final.jar

      richfaces-components-ui-4.3.3.Final.jar

      richfaces-core-api-4.3.3.Final.jar

      richfaces-core-impl-4.3.3.Final.jar


      My faces-config.xml has:-


      <view-handler>org.ajax4jsf.application.AjaxViewHandler</view-handler>


      What JAR am I missing and where can I download it from?


      Googled for what seems likes days to no avail.


      Thanks


      Errors from Server log:-


      19:07:25,117 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-2) Critical error during deployment: : com.sun

      .faces.config.ConfigurationException:

      Source Document: jndi:/default-host/ViViFYd/WEB-INF/faces-config.xml

      Cause: Unable to find class 'org.ajax4jsf.application.AjaxViewHandler'

      at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:273) [jsf-impl-2.1.7-jbossorg-

      2.jar:]

      at com.sun.faces.config.processor.ApplicationConfigProcessor.setViewHandler(ApplicationConfigProcessor.java:541) [jsf-impl-2.1.7-jbo

      ssorg-2.jar:]

      at com.sun.faces.config.processor.ApplicationConfigProcessor.processViewHandlers(ApplicationConfigProcessor.java:861) [jsf-impl-2.1.

      7-jbossorg-2.jar:]

      at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:334) [jsf-impl-2.1.7-jbossorg-2

      .jar:]

      at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.7-jbossorg-2.ja

      r:]

      at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116) [jsf-impl-2.1.7-jbossorg-2.jar

      :]

      at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.7-jbossorg-2.ja

      r:]

      at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

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

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

      at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]

      Caused by: java.lang.ClassNotFoundException: org.ajax4jsf.application.AjaxViewHandler from [Module "deployment.ViViFYd.ear.ViViFYd.war:main"

      from Service Module Loader]

      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

      at com.sun.faces.util.Util.loadClass(Util.java:345) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:311) [jsf-impl-2.1.7-jbossorg-2.jar

      :]

      at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:240) [jsf-impl-2.1.7-jbossorg-

      2.jar:]

      ... 17 more

       

      19:07:25,195 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ViViFYd]] (MSC service thread 1-2) Exception sending

      context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.RuntimeException: com.sun.faces.c

      onfig.ConfigurationException:

      Source Document: jndi:/default-host/ViViFYd/WEB-INF/faces-config.xml

      Cause: Unable to find class 'org.ajax4jsf.application.AjaxViewHandler'

      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

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

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

      at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]

      Caused by: com.sun.faces.config.ConfigurationException:

      Source Document: jndi:/default-host/ViViFYd/WEB-INF/faces-config.xml

      Cause: Unable to find class 'org.ajax4jsf.application.AjaxViewHandler'

      at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:273) [jsf-impl-2.1.7-jbossorg-

      2.jar:]

      at com.sun.faces.config.processor.ApplicationConfigProcessor.setViewHandler(ApplicationConfigProcessor.java:541) [jsf-impl-2.1.7-jbo

      ssorg-2.jar:]

      at com.sun.faces.config.processor.ApplicationConfigProcessor.processViewHandlers(ApplicationConfigProcessor.java:861) [jsf-impl-2.1.

      7-jbossorg-2.jar:]

      at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:334) [jsf-impl-2.1.7-jbossorg-2

      .jar:]

      at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.7-jbossorg-2.ja

      r:]

      at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116) [jsf-impl-2.1.7-jbossorg-2.jar

      :]

      at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.7-jbossorg-2.ja

      r:]

      at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [jsf-impl-2.1.7-jbossorg-2.jar:]

      ... 8 more

      Caused by: java.lang.ClassNotFoundException: org.ajax4jsf.application.AjaxViewHandler from [Module "deployment.ViViFYd.ear.ViViFYd.war:main"

      from Service Module Loader]

      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

      at com.sun.faces.util.Util.loadClass(Util.java:345) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:311) [jsf-impl-2.1.7-jbossorg-2.jar

      :]

      at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:240) [jsf-impl-2.1.7-jbossorg-

      2.jar:]

      ... 17 more

       

      19:07:25,261 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error listenerStart

      19:07:25,263 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Context [/ViViFYd] startup failed due to previous err

      ors

      19:07:25,265 SEVERE [javax.faces] (MSC service thread 1-2) Application was not properly initialized at startup, could not find Factory: java

      x.faces.application.ApplicationFactory. Attempting to find backup.

      19:07:25,267 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-2) Unexpected exception when attempting to tea

      r down the Mojarra runtime: java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory.

      at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1008) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

       

      at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

      at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:131) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:328) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3489) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3999) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3917) [jbossweb-7.0.13.Final.jar:]

      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

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

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

      at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]

       

      19:07:25,297 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.web.deployment.default-host

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

      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2

      .GA]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

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

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

      at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]

       

      19:07:25,511 INFO [org.jboss.as.server] (HttpManagementService-threads - 8) JBAS015870: Deploy of deployment "ViViFYd.ear" was rolled back

      with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./ViViFYd" => "org.jboss.msc.service.StartExceptio

      n in service jboss.web.deployment.default-host./ViViFYd: JBAS018040: Failed to start context"}}

      19:07:25,542 INFO [org.jboss.as.jpa] (MSC service thread 1-4) JBAS011403: Stopping Persistence Unit Service 'ViViFYd.ear/ViViFYd.jar#ViViFY

      dEntityManagerFactory'

      19:07:25,553 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment ViViFYd.jar in 42ms

      19:07:25,560 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment jboss-seam.jar in 48ms

      19:07:25,670 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment ViViFYd.war in 158ms

      19:07:25,738 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment ViViFYd.ear in 226ms

      19:07:25,740 INFO [org.jboss.as.controller] (HttpManagementService-threads - 8) JBAS014774: Service status report

      JBAS014777: Services which failed to start: service jboss.web.deployment.default-host./ViViFYd: org.jboss.msc.service.StartException

      in service jboss.web.deployment.default-host./ViViFYd: JBAS018040: Failed to start context