Re: Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded

2009-04-05 Thread Daniel Lopez
Hi there, 2009/4/6 Caldarale, Charles R : > The metaphysical implications of existing without a trace are rather > intriguing... Yeah, I was about to call Mulder and Scully to investigate it, but I thought I'd give the user list a chance first. > Looks like it.  In Tomcat 5.5, there was a non-d

users@tomcat.apache.org

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 direct

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 int

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 s

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 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: 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 if

Re: RemoteAddrValve syntax

2009-04-05 Thread André Warnier
André Warnier wrote: [...] To match any address starting with "192.168.", use or (if you want to be really finicky about it) What is not very clear in the on-line Tomcat documentation, is whether a remote client address of 192.168.1.2 would be translated to the string "192.168.1.2" by Tomca

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: http://java.sun.com/j2se

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 = Pattern.compi

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

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 doi

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);

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 elements in there, the only other obviously wrong item is the compressionMinSize attribute; there isn't one for

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 elements in there, the only other obviously wrong item is the compressionMinSize attribute; there isn't one for a . > CompressionMinSi

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: http

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 log4j.appender.R=org.apache.log4j.Roll

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 conf

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