-
1. Re: Context listener issues
jenchong May 13, 2014 5:08 PM (in response to jenchong)No one knows the answer?
-
2. Re: Context listener issues
alesj May 13, 2014 5:16 PM (in response to jenchong)What exactly doesn't work?
-
3. Re: Context listener issues
jenchong May 15, 2014 5:46 PM (in response to alesj)public class ABC implements CrudServiceCallback, ServletContextListener {
@Override public void contextInitialized(ServletContextEvent arg0) { CrudService.addObjectHandlers(this); System.out.println(this.getClass().getName() + " added as crud service handler"); } ..
contextInitialized is not called at all. -
4. Re: Context listener issues
jenchong May 22, 2014 7:50 AM (in response to jenchong)Is that enough or you need anything else to reproduce the issue?
Thanks!
-
5. Re: Context listener issues
alesj May 23, 2014 4:34 AM (in response to jenchong)So, you're saying that you configure this ABC in web.xml, yet it doesn't get instantiated / invoked?
-
6. Re: Context listener issues
alesj May 23, 2014 4:42 AM (in response to alesj)We have this test listener:
And gets invoked just fine:
Caused by: java.lang.IllegalArgumentException: javax.servlet.ServletContextEvent[source=io.undertow.servlet.spec.ServletContextImpl@208793fe]
at org.jboss.test.capedwarf.testsuite.init.support.InitTestListener.contextInitialized(InitTestListener.java:50)
at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:189)
After I modified it a bit
public void contextInitialized(ServletContextEvent sce) {
if (true) throw new IllegalArgumentException(sce.toString());