Re: catalina-ant reload task doesn't work

2014-03-29 Thread Brendan Miller
Thanks, I assumed reload was more something like undeploy followed by deploy. On Sat, Mar 29, 2014 at 4:42 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Brendan, On 3/28/14, 9:21 PM, Brendan Miller wrote: Using the tasks

NoClassDefFoundError using catalina ant deploy task

2014-03-28 Thread Brendan Miller
I was going through the tomcat docs and trying to use the default build.xml file provided by the appdev tutorial to deploy my war to tomcat. Example build.xml: http://tomcat.apache.org/tomcat-8.0-doc/appdev/build.xml.txt However, when I use the deploy task I always get a

Re: NoClassDefFoundError using catalina ant deploy task

2014-03-28 Thread Brendan Miller
. The user needs the manager-script role for deploy to succeed. The tutorial doesn't mention this. Overall the appdev tutorial is pretty problematic because it doesn't really include a complete example and seems to have kind of random organization. On Fri, Mar 28, 2014 at 4:41 PM, Brendan Miller

catalina-ant reload task doesn't work

2014-03-28 Thread Brendan Miller
Using the tasks from the example ant script at: http://tomcat.apache.org/tomcat-8.0-doc/appdev/build.xml.txt I have can deploy and undeploy from ant. However, the reload task doesn't seem to do anything. I make changes to java and html files, run ant reload which triggers the reload task. Ant

filter question

2014-03-13 Thread Brendan Miller
the content already been sent to the web browser after chain.doFilter? If so, is there a way to delay sending data to the browser? I need to inspect the status code in the response before setting my header (to prevent 404's from being cached). Thanks, Brendan Miller

Re: filter question

2014-03-13 Thread Brendan Miller
my header (to prevent 404's from being cached). Thanks, Brendan Miller

how to change headers based on response code in filter

2014-01-31 Thread Brendan Miller
Currently, I have a filter that sets some cache control headers. I need to change these cache control headers in the case of a non-successful response, such as a 404. Unfortunately, when I check HttpServletReponse.getStatus() in the in my doFilter method, it always reports 200 even if actually a