I spoke a little too quickly, ServletContext is avilable from ctx
(just didn't search hard enough). Adding the request listener here
though results in:
java.lang.NullPointerException
at
org.apache.catalina.core.ApplicationContext.createListener(ApplicationContext.java:1402)
at
Hi,
I'm on Tomcat 7.0.54, though I would hope your APIs aren't volatile
enough that your internals should matter..
I tried this:
Wrapper wrapper =
Tomcat.addServlet(ctx,"Greeter",GreeterServlet.class.getName());
wrapper.addMapping("/*");
wrapper.getServlet().getServletConfig().getServletContext(
> From: John D. Ament [mailto:john.d.am...@gmail.com]
> Subject: Embedded Tomcat question
> Playing around a bit with embedded tomcat. It looks like there are
> APIs to add all of the tomcat specific listeners, however how would I
> add a ServletRequestListener?
Look in the servlet spec for the
Hi,
Playing around a bit with embedded tomcat. It looks like there are
APIs to add all of the tomcat specific listeners, however how would I
add a ServletRequestListener?
John
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.