1 Reply Latest reply on Feb 3, 2020 4:24 AM by manovotn

    Does Wildfly 18 Support Seam 2.3 Applications?

    fadihamad1994

      I want to migrate an application from Wildfly 8 to the latest Wildfly 18. The web application uses the following frameworks: hibernate 3, seam 2.2, JSF 1.2, and Richfaces 3.3.3. Since hibernate 3 isn't supported anymore in Wildfly, we need to migrate to hibernate 4 which isn't compatible with Seam 2.2. Thus, we have to migrate to Seam 2.3 and this leads to migrating to JSF 2.3 (Wildfly modules) and to Richfaces 4.

      My project is an ear that contains inside it a war folder. For JSF, I am using the supported module by Wildfly both com.sun.faces.impl and javax.faces.api. I also added jsf-facelets-1.1.15.jar as a jar under web-inf/lib.

      For hibernate, I included the following jars in my ear: hibernate-commons-annotations-4.0.5.Final.jar, hibernate-core-4.3.11.Final.jar, and hibernate-entitymanager-4.3.11.Final.jar.

      For seam, I included the seam jars: jboss-seam.jar, jboss-seam-debug.jar, ...

      For Richfaces, I included the following libraries under the war folder: richfaces-a4j-4.5.17.Final.jar, richfaces-core-4.5.17.Final.jar, and richfaces-rich-4.5.17.Final.jar. I also included their dependencies.

      I am still getting this error which I am not able to debug:

      2020-01-29 11:00:28,027 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 78) Critical error during deployment: : java.lang.NullPointerException

      at com.sun.faces.application.ApplicationAssociate$PostConstructApplicationListener.processEvent(ApplicationAssociate.java:324) 

      at javax.faces.event.SystemEvent.processListener(SystemEvent.java:123) 

      at com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253) 

      at com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231) 

      at com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:112) 

      at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127) 

      at org.jboss.seam.jsf.SeamApplication.publishEvent(SeamApplication.java:462) 

      at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:788) 

      at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:553) 

      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:264) 

      at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187) 

      at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:217) 

      at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:186) 

      at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) 

      at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:4 

      at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105) 

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504) 

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504) 

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504) 

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504) 

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504) 

      at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:252) 

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96) 

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78) 

      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 

      at java.util.concurrent.FutureTask.run(Unknown Source) 

      at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) 

      at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982) 

      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) 

      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) 

      at java.lang.Thread.run(Unknown Source)  

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

       

      2020-01-29 11:00:28,055 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 78) MSC000001: Failed to start service jboss.deployment.subunit."InterfaceEngine.ear"."InterfaceEngine.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.subunit."InterfaceEngine.ear"."InterfaceEngine.war".undertow-deployment: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81)

      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

      at java.util.concurrent.FutureTask.run(Unknown Source)

      at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)

      at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)

      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)

      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)

      at java.lang.Thread.run(Unknown Source)

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

      Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException

      at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:254)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)

      ... 8 more

      Caused by: java.lang.RuntimeException: java.lang.NullPointerException

      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:283)

      at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)

      at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:217)

      at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:186)

      at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)

      at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)

      at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)

      at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:252)

      ... 10 more

      Caused by: java.lang.NullPointerException

      at com.sun.faces.application.ApplicationAssociate$PostConstructApplicationListener.processEvent(ApplicationAssociate.java:324)

      at javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)

      at com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)

      at com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)

      at com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:112)

      at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)

      at org.jboss.seam.jsf.SeamApplication.publishEvent(SeamApplication.java:462)

      at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:788)

      at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:553)

      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:264)

      ... 22 more

       

      Did anyone encountered this issue ? And do you know if Seam 2.3 is still supported by the latest Wildfly especially that on Seam documentation, they gave the project examples on Jboss As 7?

      Thank you for your help.