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 t

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 CPU

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, e-ma

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

Re: catalina.out not rolling

2006-10-11 Thread Shankar Unni
Rizwan Merchant wrote: So how do I stop tomcat from logging to catalina.out and into a different file? For the webapps themselves, their should have swallowOutput="true". Better still, don't do System.out.println() from your webapps.. -

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 ha

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

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

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

2006-07-31 Thread Shankar Unni
r, 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! Thx, -- Shankar Unni. - To start a new topic, e-mail: u

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 kn

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 nee

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 bel

Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-04-03 Thread Shankar Unni
David Grace wrote: Maybe the solution to the problems with bad posts can be solved by an email once a month that describes exactly what the accepted posting policy is. Ah, but that's not enough - see, that would require that you actually read the archives, and that's something that's apparen

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 di

Re: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package

2006-03-23 Thread Shankar Unni
Paul Hamer wrote: Just checked: the same problem occurs with Tomcat 5.5.15. Definitely smells like a bug. Can you package a small *self-contained* example (preferably a fully self-contained webapp example with such a minimal set of files) and post a bug in ASF Bugzilla? That's http://issue

Re: Oracle 10G and JNDI & DataSource - Configuration files

2006-02-27 Thread Shankar Unni
[EMAIL PROTECTED] wrote: username="userMe" password="myPassword" driverClassName="jdbc:oracle:thin:@msbdev2:1521:OracleServicensbdb"/> Whoa! Your driverClassName must be the class name of the oracle driver class: oracle.jdbc.driver.OracleDriver. It's your url= that's "jdbc:oracle:

Re: How do I stop tomcat when the port is in use

2006-01-26 Thread Shankar Unni
Koneru, Narendra wrote: When the port that I specify to start tomcat is in use, then I want tomcat to go down after printing a message. What I observed is that tomcat prints the message on the screen that there is a bind exception but tomcat server does not go down. Do you have some servlet m

Re: Tomcat 5.5.12: Stopping webapp doesn't seem to kill everything?

2005-12-28 Thread Shankar Unni
Kevin Roll wrote: I'm using Tomcat 5.5.12 on a Linux box. My web application uses a third-party library which opens up a port to listen for incoming connections. You definitely need a LifecycleListener or some other mechanism (an InitServlet with a destroy() method) to catch the stopping of

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 hash

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

2005-11-22 Thread Shankar Unni
Radhakrishnan J wrote: Servlet Engine, Webapp are all higher level notions. The JVMTI is "JVM" level feature. The out of the box debuggers are not "servlet-engine aware" or "webapplication-aware". The place to look for would be local variables within tomcat code. But again the assumption is that

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 - t

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 diff

Re: tomcat response on Linux is very slow for clients behind proxy server

2005-11-11 Thread Shankar Unni
faria hassan wrote: I'm running Tomcat5.0.26 (as it comes bundled with JBoss) on Fedora Linux 2.6.12-1.1381_FC3smp. I'm having the strangest problem. For users behind a proxy and making requests over Http1.0, the response time is very slow. However, for clients who are not behind a proxy server,

Re: Apparent problem when adding commons jars to war

2005-10-18 Thread Shankar Unni
Paul Mahoney wrote: This is very strange. When I add commons jars, e.g. commons-bean-utlis.jar, to my webapp lib directory, the webapp will no longer deploy to tomcat 5.5.12. Are your jars corrupted? Have you tried a simple "jar tvf commons-bean-utils.jar" to see if the archive is intact?