-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
7.3.0.GA
-
None
-
False
-
False
-
-
-
-
-
-
Undefined
-
-
Hello
I'm trying to deploy a JSF application with the following web.xml:
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0" id="WebApp"><!-- <distributable/> --> <context-param> <param-name>javax.faces.DEFAULT_SUFFIX</param-name> <param-value>.jsf</param-value> </context-param> <context-param> <param-name>javax.faces.FACELETS_VIEW_MAPPINGS</param-name> <param-value>*.jsf</param-value> </context-param>
at startup, the EAP fails with the following exception:
jboss_1 | 20201001_110444_271 ERROR #[[ServerService Thread Pool -- 121@srv=97d2f7b207f2]]# #[[org.jboss.msc.service.fail]]# MSC000001: Failed to start service jboss.deployment.unit."WebPo rtalIntegration-7.0.1-SNAPSHOT.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.unit."WebPortalIntegration-7.0.1-SNAPSHOT.war".undertow-deployment: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.UnsupportedOperationException: UT010042: This method cannot be called from a servlet context listener that has been added programatically jboss_1 | at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81) [wildfly-undertow-7.3.0.GA-redhat-00004.jar:7.3.0.GA-redhat-0 0004] jboss_1 | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_265] jboss_1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_265] jboss_1 | at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) [jboss-threads-2.3.3.Final-redhat-00001.jar:2.3.3.Final-redhat-00001] jboss_1 | at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982) [jboss-threads-2.3.3.Final-redhat-00001.jar:2.3.3.Final-redhat-00001] jboss_1 | at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) [jboss-threads-2.3.3.Final-redhat-00001.jar:2.3.3.Final-redhat-00001] jboss_1 | at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) [jboss-threads-2.3.3.Final-redhat-00001.jar:2.3.3.Final-redhat-00001] jboss_1 | at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_265] jboss_1 | at org.jboss.threads.JBossThread.run(JBossThread.java:485) [jboss-threads-2.3.3.Final-redhat-00001.jar:2.3.3.Final-redhat-00001] jboss_1 | Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.UnsupportedOperationException: UT010042: This method cannot be called from a servlet context listener that has been added programatically jboss_1 | at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:254) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001] jboss_1 | at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96) [wildfly-undertow-7.3.0.GA-redhat-00004.jar:7.3.0.GA-r edhat-00004] jboss_1 | at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78) [wildfly-undertow-7.3.0.GA-redhat-00004.jar:7.3.0.GA-redhat-0 0004] jboss_1 | ... 8 more jboss_1 | Caused by: java.lang.RuntimeException: java.lang.UnsupportedOperationException: UT010042: This method cannot be called from a servlet context listener that has been added program atically jboss_1 | at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:283) jboss_1 | at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001] jboss_1 | at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:217) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001] jboss_1 | at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:186) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001] jboss_1 | at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.2 8.SP1-redhat-00001] jboss_1 | at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001 ] jboss_1 | at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105) [wildfly-undertow-7.3.0.GA-redhat-0000 4.jar:7.3.0.GA-redhat-00004] jboss_1 | at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504) [wildfly-undert ow-7.3.0.GA-redhat-00004.jar:7.3.0.GA-redhat-00004] jboss_1 | at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504) [wildfly-undert ow-7.3.0.GA-redhat-00004.jar:7.3.0.GA-redhat-00004] jboss_1 | at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504) [wildfly-undert ow-7.3.0.GA-redhat-00004.jar:7.3.0.GA-redhat-00004] jboss_1 | at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504) [wildfly-undert ow-7.3.0.GA-redhat-00004.jar:7.3.0.GA-redhat-00004] jboss_1 | at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504) [wildfly-undert ow-7.3.0.GA-redhat-00004.jar:7.3.0.GA-redhat-00004] jboss_1 | at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:252) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001] jboss_1 | ... 10 more jboss_1 | Caused by: java.lang.UnsupportedOperationException: UT010042: This method cannot be called from a servlet context listener that has been added programatically jboss_1 | at io.undertow.servlet.spec.ServletContextImpl.ensureNotProgramaticListener(ServletContextImpl.java:966) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-0000 1] jboss_1 | at io.undertow.servlet.spec.ServletContextImpl.getServletRegistrations(ServletContextImpl.java:584) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001] jboss_1 | at com.sun.faces.util.Util.getExistingFacesServletRegistration(Util.java:160) jboss_1 | at com.sun.faces.util.Util.getFacesServletMappings(Util.java:150) jboss_1 | at com.sun.faces.util.Util.isResourceExactMappedToFacesServlet(Util.java:1158) jboss_1 | at com.sun.faces.util.Util.isViewIdExactMappedToFacesServlet(Util.java:1139) jboss_1 | at com.sun.faces.application.view.FaceletViewHandlingStrategy.handlesViewId(FaceletViewHandlingStrategy.java:946) jboss_1 | at com.sun.faces.application.view.ViewHandlingStrategyManager.getStrategy(ViewHandlingStrategyManager.java:76) jboss_1 | at com.sun.faces.application.view.ViewDeclarationLanguageFactoryImpl.getViewDeclarationLanguage(ViewDeclarationLanguageFactoryImpl.java:47) jboss_1 | at com.sun.faces.application.view.MultiViewHandler.getViewDeclarationLanguage(MultiViewHandler.java:446) jboss_1 | at javax.faces.application.ViewHandlerWrapper.getViewDeclarationLanguage(ViewHandlerWrapper.java:346) jboss_1 | at javax.faces.application.ViewHandlerWrapper.getViewDeclarationLanguage(ViewHandlerWrapper.java:346) jboss_1 | at javax.faces.application.ViewHandlerWrapper.getViewDeclarationLanguage(ViewHandlerWrapper.java:346) jboss_1 | at com.sun.faces.application.ApplicationAssociate$PostConstructApplicationListener.processEvent(ApplicationAssociate.java:324) jboss_1 | at javax.faces.event.SystemEvent.processListener(SystemEvent.java:123) jboss_1 | at com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253) jboss_1 | at com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231) jboss_1 | at com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:112) jboss_1 | at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127) jboss_1 | at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:788) jboss_1 | at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:553) jboss_1 | at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:264) jboss_1 | ... 22 more
- duplicates
-
JBEAP-19981 [GSS](7.3.z) JSF deployment failure due to UnsupportedOperationException when javax.faces.FACELETS_VIEW_MAPPINGS is defined
- Closed