[
https://issues.redhat.com/browse/WFLY-14221?page=com.atlassian.jira.plugi...
]
Scott Marlow commented on WFLY-14221:
-------------------------------------
I reproduced the failure locally using the following steps:
# Build wildfly master
# cd ee-9/dist/target/wildfly-preview-22.0.0.Beta1-SNAPSHOT/bin
# ./standalone.sh
# Open different shell window and change to wildfly root
# cd testsuite/integration/basic
# mvn install
-Dtest=org.jboss.as.test.integration.jsf.unsupportedwar.FaceletsViewMappingsTestCase
^ Shows server output:
{quote}
21:28:51,121 SEVERE [jakarta.enterprise.resource.webcontainer.jsf.config] (ServerService
Thread Pool -- 80) Critical error during deployment: :
java.lang.UnsupportedOperationException: UT010042: This method cannot be called from a
servlet context listener that has been added programatically
at
io.undertow.servlet.spec.ServletContextImpl.ensureNotProgramaticListener(ServletContextImpl.java:976)
at
io.undertow.servlet.spec.ServletContextImpl.getServletRegistrations(ServletContextImpl.java:584)
at com.sun.faces.util.Util.getExistingFacesServletRegistration(Util.java:159)
at com.sun.faces.util.Util.getFacesServletMappings(Util.java:149)
at com.sun.faces.util.Util.isResourceExactMappedToFacesServlet(Util.java:1098)
at com.sun.faces.util.Util.isViewIdExactMappedToFacesServlet(Util.java:1080)
at
com.sun.faces.application.view.FaceletViewHandlingStrategy.handlesViewId(FaceletViewHandlingStrategy.java:903)
at
com.sun.faces.application.view.ViewHandlingStrategyManager.getStrategy(ViewHandlingStrategyManager.java:70)
at
com.sun.faces.application.view.ViewDeclarationLanguageFactoryImpl.getViewDeclarationLanguage(ViewDeclarationLanguageFactoryImpl.java:45)
at
com.sun.faces.application.view.MultiViewHandler.getViewDeclarationLanguage(MultiViewHandler.java:433)
at
jakarta.faces.application.ViewHandlerWrapper.getViewDeclarationLanguage(ViewHandlerWrapper.java:335)
at
jakarta.faces.application.ViewHandlerWrapper.getViewDeclarationLanguage(ViewHandlerWrapper.java:335)
at
com.sun.faces.application.ApplicationAssociate$PostConstructApplicationListener.processEvent(ApplicationAssociate.java:320)
at jakarta.faces.event.SystemEvent.processListener(SystemEvent.java:124)
at
com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:250)
at
com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:229)
at com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:112)
at
com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:124)
at
jakarta.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:772)
at
com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:498)
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:219)
at
io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:187)
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.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at
io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:255)
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(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at
org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
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(Thread.java:748)
at org.jboss.threads.JBossThread.run(JBossThread.java:513)
21:28:51,122 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 80)
MSC000001: Failed to start service
jboss.deployment.unit."FaceletsViewMappingsTestCase.war".undertow-deployment:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."FaceletsViewMappingsTestCase.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
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at
org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
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(Thread.java:748)
at org.jboss.threads.JBossThread.run(JBossThread.java:513)
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
at
io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:257)
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.UnsupportedOperationException: UT010042:
This method cannot be called from a servlet context listener that has been added
programatically
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:219)
at
io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:187)
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.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at
io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:255)
... 10 more
Caused by: java.lang.UnsupportedOperationException: UT010042: This method cannot be called
from a servlet context listener that has been added programatically
at
io.undertow.servlet.spec.ServletContextImpl.ensureNotProgramaticListener(ServletContextImpl.java:976)
at
io.undertow.servlet.spec.ServletContextImpl.getServletRegistrations(ServletContextImpl.java:584)
at com.sun.faces.util.Util.getExistingFacesServletRegistration(Util.java:159)
at com.sun.faces.util.Util.getFacesServletMappings(Util.java:149)
at com.sun.faces.util.Util.isResourceExactMappedToFacesServlet(Util.java:1098)
at com.sun.faces.util.Util.isViewIdExactMappedToFacesServlet(Util.java:1080)
at
com.sun.faces.application.view.FaceletViewHandlingStrategy.handlesViewId(FaceletViewHandlingStrategy.java:903)
at
com.sun.faces.application.view.ViewHandlingStrategyManager.getStrategy(ViewHandlingStrategyManager.java:70)
at
com.sun.faces.application.view.ViewDeclarationLanguageFactoryImpl.getViewDeclarationLanguage(ViewDeclarationLanguageFactoryImpl.java:45)
at
com.sun.faces.application.view.MultiViewHandler.getViewDeclarationLanguage(MultiViewHandler.java:433)
at
jakarta.faces.application.ViewHandlerWrapper.getViewDeclarationLanguage(ViewHandlerWrapper.java:335)
at
jakarta.faces.application.ViewHandlerWrapper.getViewDeclarationLanguage(ViewHandlerWrapper.java:335)
at
com.sun.faces.application.ApplicationAssociate$PostConstructApplicationListener.processEvent(ApplicationAssociate.java:320)
at jakarta.faces.event.SystemEvent.processListener(SystemEvent.java:124)
at
com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:250)
at
com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:229)
at com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:112)
at
com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:124)
at
jakarta.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:772)
at
com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:498)
at
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:264)
... 20 more
21:28:51,124 ERROR [org.jboss.as.controller.management-operation]
(management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address:
([("deployment" => "FaceletsViewMappingsTestCase.war")]) - failure
description: {"WFLYCTL0080: Failed services" =>
{"jboss.deployment.unit.\"FaceletsViewMappingsTestCase.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
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
Caused by: java.lang.RuntimeException: java.lang.UnsupportedOperationException:
UT010042: This method cannot be called from a servlet context listener that has been added
programatically
Caused by: java.lang.UnsupportedOperationException: UT010042: This method cannot be
called from a servlet context listener that has been added programatically"}}
21:28:51,125 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021:
Deploy of deployment "FaceletsViewMappingsTestCase.war" was rolled back with the
following failure message:
{"WFLYCTL0080: Failed services" =>
{"jboss.deployment.unit.\"FaceletsViewMappingsTestCase.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
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
Caused by: java.lang.RuntimeException: java.lang.UnsupportedOperationException:
UT010042: This method cannot be called from a servlet context listener that has been added
programatically
Caused by: java.lang.UnsupportedOperationException: UT010042: This method cannot be
called from a servlet context listener that has been added programatically"}}
21:28:51,165 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0028:
Stopped deployment FaceletsViewMappingsTestCase.war (runtime-name:
FaceletsViewMappingsTestCase.war) in 40ms
21:28:51,195 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0028:
Stopped deployment arquillian-service (runtime-name: arquillian-service) in 5ms
21:28:51,210 INFO [org.jboss.as.repository] (management-handler-thread - 1) WFLYDR0002:
Content removed from location
/home/smarlow/work/wildfly/ee-9/dist/target/wildfly-preview-22.0.0.Beta1-SNAPSHOT/standalone/data/content/8e/c27db3e828bf506d5235e5baa448af434b2310/content
21:28:51,210 INFO [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0009:
Undeployed "arquillian-service" (runtime-name: "arquillian-service")
{quote}
I was curious if the FACES IMPL 3.0.0-RC5 that we seem to be using and latest final 3.0.0
could be different but they aren't as per
https://github.com/eclipse-ee4j/mojarra/compare/3.0.0...3.0.0-RC5.
FaceletsViewMappingTestCase fails in -Dts.ee9 tests
---------------------------------------------------
Key: WFLY-14221
URL:
https://issues.redhat.com/browse/WFLY-14221
Project: WildFly
Issue Type: Bug
Components: JSF
Reporter: Brian Stansberry
Assignee: Farah Juma
Priority: Major
Fix For: 22.0.0.Beta1
Beginning Dec 7 FaceletsViewMappingTestCase began failing in the nightly CI job that runs
the -Dts.ee9 profile:
https://ci.wildfly.org/viewType.html?buildTypeId=WF_WildflyPreviewNightly
My guess is this is related to the update of the JSF API fork that went in around that
time.
[~smarlow] [~parsharma] [~fjuma] FYI
--
This message was sent by Atlassian Jira
(v7.13.8#713008)