Re: Handling HEAD request in servlet

2005-01-06 Thread Tennessee Leeuwenburg
Glad to find another human! :) From the spec, it looked like there should be a content-length, but maybe you're right. I'm writing a server for a client that expects the content-length to be there. As I said, I did find a workaround by just printing to the output stream, but it had me baffled fo

Handling HEAD request in servlet

2005-01-06 Thread Tennessee Leeuwenburg
Hi guys, I have a problem where the default implementation of HttpServlet doesn't seem to be handling doHead(request, response) properly. I over-rode the method, and found the damndest thing happening. The line "response.setContentLength(length)" is just getting completely ignored. I can't work

Re: Want to know better way of deploying

2004-12-22 Thread Tennessee Leeuwenburg
What version of tomcat are you using? I am using ant to create war file. Then i undeploy previous version and try to deploy new version. But when i try to do this it says FAIL - War file "strutstest.war" already exists on server Inside /webapp - previous uploaded war file is still present. I can n

Re: apache jk2.conf and tomcat question heeelp

2004-12-22 Thread Tennessee Leeuwenburg
I think the way to do that is set up an alias directory inside apache.conf pointing to that absolute location, then put the entry in jk2.conf for that alias. Cheers, -T Hello, Is there a way to put an absolute path in the jk2.conf tag that would look like /var/www/html/*.jsp I'm trying t

Re: Turning on verbose mode in the JVM

2004-12-22 Thread Tennessee Leeuwenburg
Awesome. Would that be an environment variable, or does it go into server.xml? I'll register and put it in the wiki. Cheers, -T From: Tennessee Leeuwenburg [mailto:[EMAIL PROTECTED] 1) How do I pass the -verbose (-v) flag to the JVM? JAVA_OPTS 2) How do I pass arbitrary flags t

Turning on verbose mode in the JVM

2004-12-22 Thread Tennessee Leeuwenburg
Hi all, The documentation for passing in JVM flags from tomcat v5.5 seems to be a bit sketchy. I discovered I can't edit most of the useful looking wiki pages, and besides, I don't have an answer yet and was pointed here by the docs eventually. I FAQ'd and I Googled. In old versions, startup.sh