This content has been marked as final.
Show 2 replies
-
1. Re: javax.servlet.ServletContainerInitializer not working in WildFly
jewellgm Oct 23, 2018 8:27 AM (in response to t0920008899)Did you bundle the class in your war file, or create a wildfly module for it? As far as I know, it needs to be loaded via module, and then the deployment has to add a dependency to the module, and specify "services" in the dependency.
-
2. Re: javax.servlet.ServletContainerInitializer not working in WildFly
t0920008899 Oct 24, 2018 2:29 AM (in response to jewellgm)Yes, I bundled it in my jar, and put it under WEB-INF/lib. I also included, under the WEB-INF/lib, a 3rd party jar which also has similar ServletContainerInitializer implementations. The odd is that, when starting my web deployment, those implementations in the 3rd party jar got invoked by undertow, while my implementation was not. I have no idea what else needs be done for my implementation.