Re: Embedded Tomcat question

2014-07-10 Thread Mark Thomas
his: >>>>>> >>>>>> Wrapper wrapper = >>>>>> Tomcat.addServlet(ctx,"Greeter",GreeterServlet.class.getName()); >>>>>> wrapper.addMapping("/*"); >>>>>> wrapper.getServlet().getServletConfig().getSer

Re: Embedded Tomcat question

2014-07-09 Thread John D. Ament
>> wrapper.addMapping("/*"); >>>>> wrapper.getServlet().getServletConfig().getServletContext().addListener(MyListener.class); >>>>> >>>>> This results in a NPE. This makes me think I don't have access to the >>>>> conte

Re: Embedded Tomcat question

2014-07-01 Thread Mark Thomas
#x27;s somewhere in this chain: >>>> >>>> tomcat = new Tomcat(); >>>> tomcat.setPort(8080); >>>> File base = new File("target/webapp-runner"); >>>> if(!base.exists()) { >>>> base.

Re: Embedded Tomcat question

2014-07-01 Thread John D. Ament
t(8080); >>> File base = new File("target/webapp-runner"); >>> if(!base.exists()) { >>> base.mkdirs(); >>> } >>> Context ctx = tomcat.addContext("/",base.getAbsolutePath()); >>> >>>

Re: Embedded Tomcat question

2014-06-30 Thread Mark Thomas
ntext ctx = tomcat.addContext("/",base.getAbsolutePath()); >> >> however, it doesn't look like Context here is a ServletContext. >> >> >> On Sun, Jun 29, 2014 at 6:30 PM, Caldarale, Charles R >> wrote: >>>> From: John D. Ament [mailto:

Re: Embedded Tomcat question

2014-06-29 Thread John D. Ament
text here is a ServletContext. > > > On Sun, Jun 29, 2014 at 6:30 PM, Caldarale, Charles R > wrote: >>> From: John D. Ament [mailto:john.d.am...@gmail.com] >>> Subject: Embedded Tomcat question >> >>> Playing around a bit with embedded tomcat. It looks like

Re: Embedded Tomcat question

2014-06-29 Thread John D. Ament
arale, Charles R wrote: >> 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

RE: Embedded Tomcat question

2014-06-29 Thread Caldarale, Charles R
> 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 s

Embedded Tomcat question

2014-06-29 Thread John D. Ament
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.