Re: Tomcat URL decoding different from Java's URLDecoder?

2007-06-06 Thread Shankar Unni
Christopher Schultz wrote: Shouldn't you use the content-type of the request instead of just forcing your own content-type? If the browser does not send a MIME type with the request, then the default is defined to be ISO-8859-1: Well, for a form post, that just means that the text of the body

Tomcat URL decoding different from Java's URLDecoder?

2007-06-05 Thread Shankar Unni
We were playing around with a little JSP application, and trying to submit (and handle) Big5 characters. (The real purpose was to exercise our primary app which sniffs HTTP traffic and does stuff with the raw data it captures - it sees the headers and body as sent over the wire.) One odd

Re: Make Tomcat run slow

2007-04-06 Thread Shankar Unni
L.W. van Braam van Vloten wrote: So my question is: would there be an easy way to make Tomcat on my iSeries machine run rediculously slow? Lots of funny replies come to mind, but the simplest is: * Run a process that just spins forever: while (1) ; Run as many of these as you have

Re: JSVC - update java

2007-03-23 Thread Shankar Unni
Jean-Sebastien Pilon wrote: I would like to know if I need to recompile JSVC if I update the jvm. Current version of the JVM is 5.0_u6 and the new one will be 5.0_u10 No recompile will be needed. - To start a new topic,

Re: Specifying relative path for TOMCAT 5.5 ?

2007-03-01 Thread Shankar Unni
Rajendra Sakpal wrote: 1. I am gathering that / refers to the drive where my Tomcat is installed on Windows. (With file path as /subscribers.txt the file is created at the root of the drive.) That's right: 1. **there is no special meaning for /**. It's as if you went into a command-line

Re: Webapps loading sequence

2006-08-29 Thread Shankar Unni
Raju Balugu wrote: So,On which basis it will load that?(For example Alphabetical ..etc) What MarkT said. Tomcat will load the webapps in whatever order it gets them from File.listFiles() (which is *not* guaranteed alphabetical!), and then during shutdown, it unloads them in some internal

Re: HTTPS connector and clientAuth=want: how to retrieve client cert in servlet?

2006-08-01 Thread Shankar Unni
Shankar Unni wrote: However, I'm stuck trying to retrieve the client certificate from the ServletRequest in the servlet itself. Never mind - I had botched the truststore setup for the server, so the client cert was not being passed in. Answer for the archives: import

Re: HTTPS connector and clientAuth=want: how to retrieve client cert in servlet?

2006-07-31 Thread Shankar Unni
Shankar Unni wrote: However, I'm stuck trying to retrieve the client certificate from the ServletRequest in the servlet itself. Q: How do I get to the client's X.509 certificate? Help! I forgot to mention: the attributes that I do see in HttpServletRequest are: req attrName

Re: Shutdown Problems with Tomcat

2006-07-26 Thread Shankar Unni
Mark van Wyk wrote: tcp4 0 0 localhost.8005 *.*LISTEN tcp46 0 0 *.8009 *.*LISTEN tcp46 0 0 *.http-alt *.*LISTEN Somehow, that feels right, although I don't really

Re: Tomcat 5.5/Axis 1.4 java.lang.reflect.InvocationTargetException

2006-07-18 Thread Shankar Unni
Luis Rivera wrote: I have a web service which will JNI to access the application, which according to the documentation should be placed in the shared/classes directory. I did so and I got a dreaded java.lang.reflect.InvocationTargetException, which I believe is a class loader problem. You

Re: How to hide the keystorePass at the server.xml

2006-05-30 Thread Shankar Unni
Robert Harper wrote: One thing to think of is that if you have to do that to protect it, then everything else on that system is suspect. Yeah, yeah. I used to use this argument a lot, too. But that's like saying: if your harness isn't secure, then why bother with an additional safety net

Re: The purpose of missing file in Tomcat 5.5.16 distribution packages

2006-03-30 Thread Shankar Unni
Alpha Huang wrote: Tomcat5.exe and Tomcat5w.exe are missing in the packages 5.5.16.zip and 5.5.16.tar.gz It's always been that way, IIRC. The zip distributions are not only for Windows - they are portable distributions that run fine on other OSes as well. Both the .zip and the .tar.gz

Re: ordering apps startups

2005-11-23 Thread Shankar Unni
Rogerio Baldini das Neves wrote: I need that app3 starts up first of all. and app2 in second and so on. As several folks have said: no. I'm currently exploring a notion of extending StandardHost and subclassing the addChild(), etc., behavior to keep the children in a list rather than a

Re: Tomcat has 2 webapps - confused which classes to load

2005-11-21 Thread Shankar Unni
Radhakrishnan J wrote: Eclipse's Debug UI shows the breakpoints threadwise. If these executions are happening over different threads, thats one way to tell the difference. It's not the thread that's the issue - it's which _webapp_ it's currently executing. That's what the OP cared about -

Re: Tomcat has 2 webapps - confused which classes to load

2005-11-18 Thread Shankar Unni
John MccLain wrote: OK...So, correct me if I am wrong, but is this because the JVM can't load 2 classes with the same package/class name? The JVM *can* (and in this case, *does*) load classes with the same name, as long as they are in different classloaders (which they are, for the two