[
https://issues.jboss.org/browse/WFLY-9880?page=com.atlassian.jira.plugin....
]
Stuart Douglas resolved WFLY-9880.
----------------------------------
Resolution: Rejected
With a corrected jboss-deployment-structure.xml I get the following:
15:32:46,338 INFO [org.jboss.qa.startstop.standalone.web.resources.SlowServletInit]
(ServerService Thread Pool -- 64) Servlet init started
15:32:46,338 INFO [org.jboss.qa.startstop.standalone.web.resources.SlowServletInit]
(ServerService Thread Pool -- 64) Servlet init finished
ServletContainerInitializer@onStartup is not invoked for deployment
-------------------------------------------------------------------
Key: WFLY-9880
URL:
https://issues.jboss.org/browse/WFLY-9880
Project: WildFly
Issue Type: Bug
Components: Web (Undertow)
Affects Versions: 12.0.0.Beta1
Reporter: Jan Stourac
Assignee: Stuart Douglas
Attachments: deployment-with-dep.war, module.xml, servlet-container-init.jar
The {{ServletContainerInitializer@onStartup}} is not invoked for deployment. See {{Steps
to Reproduce}}.
Problematic part seems to be on [this
line|https://github.com/undertow-io/undertow/blob/1706a5f41adb8f1a719617c...]
in Undertow
{code}
//then run the SCI's
---> for (final ServletContainerInitializerInfo sci :
deploymentInfo.getServletContainerInitializers()) {
final InstanceHandle<? extends ServletContainerInitializer>
instance = sci.getInstanceFactory().createInstance();
try {
instance.getInstance().onStartup(sci.getHandlesTypes(),
servletContext);
} finally {
instance.release();
}
}
{code}
It looks like calling {{deploymentInfo.getServletContainerInitializers()}} does not
include our deployment and simply ignores it.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)