RE: Which user executes JSP in Tomcat?

2009-04-05 Thread raga2
Hello, Thanks for you reply and advice. Others asked if the JSP is correct, yes it is, there are no errors displayed. No catch(Exception ex) { /*do nothing*/} kind of code either. The error logs for Tomcat don't show anything out of the ordinary. Is there anyway to tell tomcat to allow IO

Re: HTTP Connector GZIP compression

2009-04-05 Thread Michael
Caldarale, Charles R wrote: From: Michael [mailto:sg...@gmx.net] Subject: HTTP Connector GZIP compression I am on tomcat 5.5.27. Unfortunately compression worked arbitrary, worked on html only and worked even when I turned it off. Please post your server.xml so we can see exactly what you

RE: How to debug Error: listenerStart?

2009-04-05 Thread Martin Gainty
log4j errors when porting a 5.5 webapp to 6.x: output/build/webapp/docs/logging.html 1. Create a file called log4j.properties with the following content and save it into $CATALINA_HOME/lib. log4j.rootLogger=debug, R

RE: How to debug Error: listenerStart?

2009-04-05 Thread Caldarale, Charles R
From: Martin Gainty [mailto:mgai...@hotmail.com] Subject: RE: How to debug Error: listenerStart? log4j errors when porting a 5.5 webapp to 6.x: output/build/webapp/docs/logging.html None of your post is relevant to the topic under discussion. The instructions for using log4j here:

RE: HTTP Connector GZIP compression

2009-04-05 Thread Caldarale, Charles R
From: Michael [mailto:sg...@gmx.net] Subject: Re: HTTP Connector GZIP compression this is my server.xml: http://www.pastie.org/437454 Other than having Context elements in there, the only other obviously wrong item is the compressionMinSize attribute; there isn't one for a Connector.

Re: HTTP Connector GZIP compression

2009-04-05 Thread Michael
Caldarale, Charles R wrote: From: Michael [mailto:sg...@gmx.net] Subject: Re: HTTP Connector GZIP compression this is my server.xml: http://www.pastie.org/437454 Other than having Context elements in there, the only other obviously wrong item is the compressionMinSize attribute; there isn't

RemoteAddrValve syntax

2009-04-05 Thread Jonathan Mast
How do I specify wildcards in the RemoteAddrValue declaration? The Tomcat docs says it uses the java.util.regex package, so i wrote a test case like this: String patternStr = 192.168.*.*; String searchStr = 192.168.1.2; Pattern p = Pattern.compile(patternStr);

Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded

2009-04-05 Thread Daniel Lopez
Hi there, I have an application that uses Tomcat as embedded engine and so far I was using version 5.5 of Tomcat. I wanted to upgrade to version 6.0.18 and I've found some issues due to the different behaviour and I don't see any difference in the API or articles I've found so I wonder what I'm

RE: HTTP Connector GZIP compression

2009-04-05 Thread Caldarale, Charles R
From: Michael [mailto:sg...@gmx.net] Subject: Re: HTTP Connector GZIP compression 1. lorem.jsp: 72 726 bytes 2. prototype.js: 134.057 bytes According to the above setting only the JS file should be compressed. No; response from the .jsp will also be compressed if the return type is

Re: RemoteAddrValve syntax

2009-04-05 Thread André Warnier
Jonathan Mast wrote: How do I specify wildcards in the RemoteAddrValue declaration? The Tomcat docs says it uses the java.util.regex package, so i wrote a test case like this: String patternStr = 192.168.*.*; String searchStr = 192.168.1.2; Pattern p =

RE: RemoteAddrValve syntax

2009-04-05 Thread Caldarale, Charles R
From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] Subject: RemoteAddrValve syntax The Tomcat docs says it uses the java.util.regex package But you apparently didn't read the doc for java.util.regex, which is not anything like the wildcards you tried to use:

Re: RemoteAddrValve syntax

2009-04-05 Thread André Warnier
André Warnier wrote: [...] To match any address starting with 192.168., use Valve className=org.apache.catalina.valves.RemoteAddrValve allow=192\.168\..*/ or (if you want to be really finicky about it) Valve className=org.apache.catalina.valves.RemoteAddrValve

Re: HTTP Connector GZIP compression

2009-04-05 Thread Michael
Caldarale, Charles R wrote: From: Michael [mailto:sg...@gmx.net] Subject: Re: HTTP Connector GZIP compression 1. lorem.jsp: 72 726 bytes 2. prototype.js: 134.057 bytes According to the above setting only the JS file should be compressed. No; response from the .jsp will also be compressed

RE: HTTP Connector GZIP compression

2009-04-05 Thread Caldarale, Charles R
From: Michael [mailto:sg...@gmx.net] Subject: Re: HTTP Connector GZIP compression What is the rationale for? Is there a good reason to compress anyway? The size is unknown until the last chunk is generated, so no threshold can be applied. Since chunked encoding usually involves larger

Re: RemoteAddrValve syntax

2009-04-05 Thread Jonathan Mast
I looked at the javadocs for the RemoteAddrValve and they provided no further clarity on the syntax issue. You're right, my test case mistakenly returned a false positive, .* could match anything its true and their is no common sense wildcard in the Java Regex package. I looked at the javadoc

Re: HTTP Connector GZIP compression

2009-04-05 Thread Michael
Caldarale, Charles R wrote: From: Michael [mailto:sg...@gmx.net] Subject: Re: HTTP Connector GZIP compression Checked, the server.xml remains the same. I did not alter It except the invalid attribute. The same happens for CSS too. Did you restart Tomcat after making the change? Are you

RE: Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded

2009-04-05 Thread Caldarale, Charles R
From: d.lope...@gmail.com [mailto:d.lope...@gmail.com] On Behalf Of Daniel Lopez Subject: Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded when my other threads finish, the container simply exists without a trace. The metaphysical implications of existing without a trace are rather

a href to another JSP

2009-04-05 Thread Mighty Tornado
Hi, I have an index.jsp page with 3 links to other JSP's. These links don't seem to work. I get the 404 error. Do I have to register the JSP's somewhere similarly to how I create servlet mappings? in the href attribute I tried passing along both relative path - sine all my JSP's are in one