我正在尝试将在JBoss AS 5.1.0上运行的现有JSF 2.1应用程序迁移到JBoss EAP 6.4。我在jboss-deployment-structure.xml中添加了来自JBoss AS 5.1.0的Mojarra jar和所有其他必需的jar作为模块依赖项。 当我尝试启动Jboss EAP(standalone.bat)时。我在日志中打印了以下内容:
java.lang.UnsupportedOperationException 在javax.faces.context.FacesContext.getExceptionHandler
完整堆栈跟踪如下:
18:09:38,658 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 54) Unsanitized stacktrace from failed start...: java.lang.UnsupportedOperationException
at javax.faces.context.FacesContext.getExceptionHandler(FacesContext.java:280) [jsf-api.jar:2.1.1-FCS]
at javax.faces.event.ExceptionQueuedEventContext.getListenersForEventClass(ExceptionQueuedEventContext.java:262) [jsf-api.jar:2.1.1-FCS]
at com.sun.faces.application.ApplicationImpl.invokeComponentListenersFor(ApplicationImpl.java:2077) [jsf-impl.jar:2.1.1-FCS]
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:286) [jsf-impl.jar:2.1.1-FCS]
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:244) [jsf-impl.jar:2.1.1-FCS]
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:302) [jsf-impl.jar:2.1.1-FCS]
at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:603) [jsf-impl.jar:2.1.1-FCS]
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:369) [jsf-impl.jar:2.1.1-FCS]
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [jsf-impl.jar:2.1.1-FCS]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [rt.jar:1.6.0_45]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_45]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
我错过了什么?请帮忙