Re: xml validation on -- good idea or not?

2009-05-21 Thread Mark Thomas
Bill Barker wrote: Julian Dunn julian.d...@cbc.ca wrote in message news:4a14199c.4caf.003...@cbc.ca... Hi, Is it a good idea to run with xmlValidation=true in server.xml? In a development enviroment, it can be helpful (especially if you change web.xml often). I would generally

RE: tomcat6 executables on Windows Serer

2009-05-21 Thread kolaloka
Hi Charles, You are very clever, thanx for teaching... Perhaps you should ask on a Jetty list? I've asked about Tomcat. Neither tomcat6.exe nor java.exe are JVMs; an actual JVM on Windows is several .dll files plus numerous Java classes in various jars. The .exe programs are just

Re: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-21 Thread Pid
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity if you add -p to netstat (at least under Linux), it will also show the program that corresponds to that line. Or

Workfolder and Catalina.out

2009-05-21 Thread S Arvind
Hi Members, Since we have many context our log and work folder getting large in few days and getting full so that new files cannot be created or logging. Is there any way to point work folder and log to different location? if possibe give the good docs for that (with include file rotation)

NIOConnector and high memory consumption

2009-05-21 Thread sagi tomcat
Hello, I am using Tomcat 6.0.18 in a production server, serving thousands of users and hundreds of transactions per second. I am using the NIO connector. I've noticed a serious memory utilization problem which were traced to the fact that a single processor is dedicated to a connection and is not

Re: How to get thread dump on Tomcat 6 (windows)

2009-05-21 Thread madhu sudhan bandari
I got it ..thanks to all and also sorry for the trouble.. regards Madhu On Wed, May 20, 2009 at 10:57 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: madhu sudhan bandari [mailto:madhu.band...@gmail.com] Subject: Re: How to get thread dump on Tomcat 6 (windows) Thanks

Silent Installation of Apache Tomcat

2009-05-21 Thread aditya darbha
want to couple Apache Tomcat into my application. My installer would check for an existing installation of the TOMCAT and would try to install Tomcat if there is no existing installation.!! This installation has to be silent and the user need not explicitly know that Apache Tomcat is being

RE: Silent Installation of Apache Tomcat

2009-05-21 Thread Peter Crowther
From: aditya darbha [mailto:adityadar...@gmail.com] want to couple Apache Tomcat into my application. My installer would check for an existing installation of the TOMCAT and would try to install Tomcat if there is no existing installation.!! This installation has to be silent and the user

RE: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-21 Thread Caldarale, Charles R
From: Pid [mailto:p...@pidster.com] Subject: Re: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity I am not a number! But are you a free man? We want information, by hook or by crook... (Apologies to the late Patrick McGoohan.) - Chuck THIS

RE: tomcat6 executables on Windows Serer

2009-05-21 Thread Caldarale, Charles R
From: kolaloka [mailto:kolal...@freemail.hu] Subject: RE: tomcat6 executables on Windows Serer Well, under Linux, the top lists the java process, not an .so That's because top, ps, and the Windows equivalents show only the initial executable, not the shared library names where the

RE: Processes are not showing in the JConsole

2009-05-21 Thread Caldarale, Charles R
From: Anamika raj [mailto:rajnam...@gmail.com] Subject: Processes are not showing in the JConsole the process which i want to monitor on JConsole not showing in the JConsole window. Welcome to the wonderful world of Windows security. At least on Vista, Tomcat running as a service is not

Re: NIOConnector and high memory consumption

2009-05-21 Thread Filip Hanik - Dev Lists
hi Sagi, are you referring to the Http11NioProcessor objects? If so, you should be able to configure the cache size when connections are released. So you could also use maxKeepAliveRequests to limit it do you have the memory dump available? Filip sagi tomcat wrote: Hello, I am using Tomcat

Re: NIOConnector and high memory consumption

2009-05-21 Thread sagi tomcat
Yes I am referring to the Http11NioProcessor objects. Playing with the cache size did not help, since I had to deal with ~7000 registered Http11NioProcessor objects (by registered I mean the object becoming a JMX managed object). That amount by itself consumed a lot of the old gen space (around

Re: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-21 Thread Rainer Jung
Trying to add some info below. On 21.05.2009 05:09, Caldarale, Charles R wrote: From: Pantvaidya, Vishwajit [mailto:vpant...@selectica.com] Subject: RE: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity So socket_keepalive is already 1. So does this mean

Re: Processes are not showing in the JConsole

2009-05-21 Thread Rainer Jung
On 21.05.2009 14:57, Caldarale, Charles R wrote: From: Anamika raj [mailto:rajnam...@gmail.com] Subject: Processes are not showing in the JConsole the process which i want to monitor on JConsole not showing in the JConsole window. Welcome to the wonderful world of Windows security. At

NIO Connector: Too many open files

2009-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I've been testing the performance of various Tomcat configurations against Apache httpd and my serious tests are not completing for the NIO connector because the server is running out of files: May 20, 2009 2:35:55 AM

RE: Processes are not showing in the JConsole

2009-05-21 Thread Caldarale, Charles R
From: Rainer Jung [mailto:rainer.j...@kippdata.de] Subject: Re: Processes are not showing in the JConsole Is it still possible under Vista, and will it help, if you let the service run with the same account you are using to login? Nope, I've tried that. The service remains invisible to jps

Re: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vishwajit, On 5/19/2009 6:08 PM, Pantvaidya, Vishwajit wrote: No, Tomcat uses precisely 1 thread to handle each incoming HTTP request. If keepalives are used, multiple requests may be handled by the same thread before it is returned to the pool,

Re: NIOConnector and high memory consumption

2009-05-21 Thread Filip Hanik - Dev Lists
yes, with maxKeepAliveRequests you would also throttle the connectionTimeout (or keepAliveTimeout, but that may be in 6.0.20) to reduce the amount of objects. I think you have a very valid use case, so I will add in some features around managing the size of these objects to ensure they don't

Re: AJP connections just stop working

2009-05-21 Thread Rainer Jung
I looked at the dumps. Comments inline. On 18.05.2009 20:33, kvancamp wrote: My problem seems to be most similar to this post. We are having intermittent problems with the JBoss/Tomcat AJP 1.3 connector hanging. From searching the JBoss and Tomcat user forums, other issues that are similar

Re: NIO Connector: Too many open files

2009-05-21 Thread Rainer Jung
On 21.05.2009 17:55, Christopher Schultz wrote: All, I've been testing the performance of various Tomcat configurations against Apache httpd and my serious tests are not completing for the NIO connector because the server is running out of files: May 20, 2009 2:35:55 AM

Re: NIO Connector: Too many open files

2009-05-21 Thread Rainer Jung
2 remarks about all your stress testing efforts: A) TIME_WAIT When not doing HTTP Keep-Alive, under high load the size of the TCP hash table and the effectiveness of the system to lookp up TCP connections can limit the throughput you can reach. More precisely, depending on the excat way of

Re: NIOConnector and high memory consumption

2009-05-21 Thread sagi tomcat
Thanks Filip. - I think there's a bug with maxKeepAliveRequests. Each call to Http11NioProcessor.process() resets the keepAliveLeft parameter to the old maxKeepAliveRequests value. When a parsing of a HTTP request doesn't have enough input to complete the parsing stage, the process() returns

Re: mod_proxy, Tomcat and request URL

2009-05-21 Thread Rainer Jung
On 20.05.2009 17:33, Markus Schönhaber wrote: Andre-John Mas: this is not the ideal setup, I don't have any control over this. At the same time I see that using mod_proxy, by way of ProxyPass, means that the Tomcat server does not know what hostname was used to access the Apache

Re: NIO Connector: Too many open files

2009-05-21 Thread Filip Hanik - Dev Lists
hi Christopher, generally, ulimit -n 1024 is too low for any kind of web server. And there was also a file descriptor leak in the NIO connector, fixed in http://svn.apache.org/viewvc?rev=734454view=rev this is when Tomcat NIO serves up static content. Filip Christopher Schultz wrote:

Re: Making Apache httpd fallback to local file after receiving 404 from backend Tomcat?

2009-05-21 Thread Rainer Jung
On 20.05.2009 10:52, Imner, Andreas wrote: Hi all I'm setting up a website using Apache webserver 2.2.11 / mod_jk 1.2.28 (Windows Server 2000) that connects to two backend Apache Tomcat 6.0.18 server (Windows Server 2003) with load balancing. The webserver also uses mod_proxy to

Re: Request entity too large when using SSO (IIS Integrated Windows authentication -Tomcat )

2009-05-21 Thread Rainer Jung
On 20.05.2009 07:20, pappu wrote: Chuck, --- If by Tomcat 5 you really mean Tomcat 5.0, please be aware that 5.0 has not been supported for quite some time. You do need to move up. --- Yes I do mean Tomcat 5.0. The reason why we are having this

Re: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity

2009-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vishwajit, On 5/20/2009 3:01 PM, Pantvaidya, Vishwajit wrote: [Pantvaidya, Vishwajit] Ok so RUNNABLE i.e. persistent threads should not be an issue. The only reason why I thought that was an issue was that I was observing that the none of the

Re: How to get thread dump on Tomcat 6 (windows)

2009-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Madhu, On 5/20/2009 1:14 PM, madhu sudhan bandari wrote: Thanks for quick response..but in the below URL..it was mentioned that jstack is not available on windows platforms http://java.sun.com/j2se/1.5.0/docs/tooldocs/#debug You're right. This

Re: Tomcat, Realm, and context.xml

2009-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greg, On 5/20/2009 6:50 AM, Greg Allen wrote: However, that exposes a timing issue which I'm not sure how to solve. I embedded ApacheDS in my web application by implementing ServletContextListener so that it starts on contextInitialized and

Re: Problem: JSP works in Firefox but not in Internet Explorer

2009-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jan, On 5/19/2009 6:54 PM, Jan Peters wrote: If you don't include the Flash document embedded in the HTML document, does MSIE still crash? Try simply using HTML comments to remove it: !-- embed src= / - -- unfortunately to no avail.

Re: Request entity too large when using SSO (IIS Integrated Windows authentication -Tomcat )

2009-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pappu, On 5/20/2009 1:20 AM, pappu wrote: Yes I do mean Tomcat 5.0. The reason why we are having this version is because we have Business Objects (Analytics Tool) configured to run on tomcat and it only supports for Tomcat 5.0 and Tomcat 5.5. When

Re: Performance: switch vs if ... else if

2009-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 5/19/2009 3:04 PM, David kerber wrote: I have a section of code in a frequently-called (~3.5 million times per day) servlet where I had to process based on a parameter that could take one of 6 different single-character string values. I

Re: Performance: switch vs if ... else if

2009-05-21 Thread David kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 5/19/2009 3:04 PM, David kerber wrote: I have a section of code in a frequently-called (~3.5 million times per day) servlet where I had to process based on a parameter that could take one of 6 different

Re: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity

2009-05-21 Thread Chetan Chheda
I am following this thread with great interest. I have a similar issue as Vishwajit and have resorted to adding the connectionTimeout to get rid of a large number of RUNNABLE threads. But mod_jk does not like tomcat threads timing out and logs the message increase the backend idle connection

RE: Performance: switch vs if ... else if

2009-05-21 Thread Caldarale, Charles R
From: David kerber [mailto:dcker...@verizon.net] Subject: Re: Performance: switch vs if ... else if Can you point me to a byte code interpreter so I could look at this? The javap tool in the JDK will display the byte codes. (I use it a lot.) If you want, go ahead and send me the class

Re: questions about JNDIRealm and Active Directory

2009-05-21 Thread dahoffer
Did you get this working? I too have the same need. BTW, how to you get the error in the output? I don't see any console or log errors just failure to login in the browser. -Dave maffittd wrote: I've been reading the tomcat 5.5 doc and searching MARC but still have questions about

RE: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-21 Thread Pantvaidya, Vishwajit
1) If you want to analyze your original problem, you need to get back to the original situation, i.e. without connectionTimeout. It doesn't make much sense to guess about the original problem by looking at something very different. [Pantvaidya, Vishwajit] Yes - I have already initiated

Re: questions about JNDIRealm and Active Directory

2009-05-21 Thread Eric Lenio
On Thu, May 21, 2009 at 11:43:44AM -0700, dahoffer wrote: Did you get this working? I too have the same need. I'm a bit late to this thread but I can attest it does work, although I am using Tomcat 6. You may want to refer to this (apologies if it was already shared):

Re: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-21 Thread Rainer Jung
On 21.05.2009 20:59, Pantvaidya, Vishwajit wrote: 3) I think I already indicated that you do not want to look at entries in TIME_WAIT state. This state is special and not related to any threads [Pantvaidya, Vishwajit] My netstat o/p had FIN_WAIT and CLOSE_WAIT, but not TIMED_WAIT. Did some

Re: Problem: JSP works in Firefox but not in Internet Explorer

2009-05-21 Thread Jan Peters-Anders
Dear Christopher, I found the cause for my troubles: http://support.microsoft.com/kb/927917/en The taglib uses document.body.appendChild which causes IE 7 to crash :( Microsoft states as workaround to upgrade to IE 8, that is ironya very good solution/irony You helped me with your hint:

Re: questions about JNDIRealm and Active Directory

2009-05-21 Thread dahoffer
Thanks that did the trick! -Dave Eric Lenio-2 wrote: On Thu, May 21, 2009 at 11:43:44AM -0700, dahoffer wrote: Did you get this working? I too have the same need. I'm a bit late to this thread but I can attest it does work, although I am using Tomcat 6. You may want to refer to

Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

2009-05-21 Thread Patrick Herber
Hello, We have a struts based application running on a Tomcat 6 server sitting behind an Apache HTTPD Server. I'm experiencing problems uploading big files on it: after around 30 minutes (nearly exactly 30 minutes!) the upload stops. I've tried to solve them with several combinations but until

Re: xml validation on -- good idea or not?

2009-05-21 Thread Julian Dunn
I'm tempted to say that it should be removed if it's unstable. I don't know that much about the guts of Tomcat but we've seen errors thrown by some of those classes in the commits. Thanks for your advice on the matter. I think we'll run with xmlValidation=false from now on. - Julian Mark

Configuring SSI in tomcat 6

2009-05-21 Thread raghu ram srinivas
Hi All, Can anyone help me configuring the Server Side Include (SSI) in Tomcat 6. For enabling SSI I removed the commented blocks in the web.xml for SSI too but still i am not able to find. I tried in the google search but I am not able to get the exact answer, can anyone give me some

RE: Upload stop after 30 minutes: Processing of multipart/form-data requestfailed. Stream ended unexpectedly

2009-05-21 Thread Caldarale, Charles R
From: Patrick Herber [mailto:patrick.her...@ticino.com] Subject: Upload stop after 30 minutes: Processing of multipart/form- data requestfailed. Stream ended unexpectedly I'm experiencing problems uploading big files on it: after around 30 minutes (nearly exactly 30 minutes!) the upload

RE: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity

2009-05-21 Thread Pantvaidya, Vishwajit
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, May 21, 2009 10:05 AM To: Tomcat Users List Subject: Re: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity Vishwajit, On 5/20/2009 3:01

Re: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity

2009-05-21 Thread Rainer Jung
On 22.05.2009 00:19, Pantvaidya, Vishwajit wrote: [Pantvaidya, Vishwajit] I will set - cachesize=1 (doc says jk will autoset this value only for worker-mpm and we use httpd 2.0 prefork) You don't have to: JK will discover this number for the Apache web server automatically and set the pool

tomcat Access logs

2009-05-21 Thread Vijay
Hi, I am using a tomcat tailer which needs the file name to be the same and not changinging (Dont want to see the Date in the file name). hence i want a solution to have the logs rotated as well as the file name of the active log files to remain the same Do we have a solution like it? When i

RE: xml validation on -- good idea or not?

2009-05-21 Thread Martin Gainty
if alternate algorithm can be made to define and require elements ELEMENT web-app , ELEMENT auth-constraint, ELEMENT auth-method within deployed web.xml then 1)remove all DTD's and remove the flag or 2)keep the DTDs and enable the flag ? Martin Gainty

RE: Problem: JSP works in Firefox but not in Internet Explorer

2009-05-21 Thread Martin Gainty
Microsoft says you are putting script not in body but in td (Table Data) element e.g. html body table tr td script type=text/Javascript var d =

RE: Configuring SSI in tomcat 6

2009-05-21 Thread Martin Gainty
any direction provided would be based on implementing SSI either thru Servlet OR Filter specifically Servlet based SSI support is implemented using the class org.apache.catalina.ssi.SSIServlet. Traditionally, this servlet is mapped to the URL pattern *.shtml. Filter based SSI support is

SSI configuration

2009-05-21 Thread Ken Bowen
Hi all, I need to turn on SSI to host a simple html site which uses it. I shut down TC. In ~conf/web.xml, I uncommented both the servlet and servlet-mapping XML for ssi. However, when I restarted TC, I get the following Exception for every application present in webapps (this one is for

RE: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity

2009-05-21 Thread Pantvaidya, Vishwajit
-Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: Thursday, May 21, 2009 3:37 PM To: Tomcat Users List Subject: Re: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity On 22.05.2009 00:19, Pantvaidya, Vishwajit wrote:

Apache 2.2 to Tomcat 6 via proxy_ajp

2009-05-21 Thread J. Zimmerman
I am just getting started with Tomcat and have been asked to take on the administration of our Tomcat servers at our college. I am not one of the developers, just the administrator. So far everything has gone pretty smoothly except for getting everything to run proxied via Apache (at least the

Re: mod_proxy, Tomcat and request URL

2009-05-21 Thread Andre-John Mas
On 21-May-2009, at 12:32, Rainer Jung wrote: On 20.05.2009 17:33, Markus Schönhaber wrote: Andre-John Mas: this is not the ideal setup, I don't have any control over this. At the same time I see that using mod_proxy, by way of ProxyPass, means that the Tomcat server does not know what

Re: Configuring SSI in tomcat 6

2009-05-21 Thread raghu ram srinivas
Thanks for your reply. I tried it by uncommenting SSI servlet but I am getting the following error: java.lang.SecurityException: Servlet of class org.apache.catalina.ssi.SSIServlet is privileged and cannot be loaded by this web application Can you give any idea regarding this. I am trying to

Re: SSI configuration

2009-05-21 Thread raghu ram srinivas
I am getting the same error.any suggestion please. On Thu, May 21, 2009 at 9:38 PM, Ken Bowen kbo...@als.com wrote: Hi all, I need to turn on SSI to host a simple html site which uses it. I shut down TC. In ~conf/web.xml, I uncommented both the servlet and servlet-mapping XML

RE: Configuring SSI in tomcat 6

2009-05-21 Thread Caldarale, Charles R
From: raghu ram srinivas [mailto:raghuramsriniv...@gmail.com] Subject: Re: Configuring SSI in tomcat 6 java.lang.SecurityException: Servlet of class org.apache.catalina.ssi.SSIServlet is privileged and cannot be loaded by this web application Read the Tomcat SSI doc:

RE: SSI configuration

2009-05-21 Thread Caldarale, Charles R
From: Ken Bowen [mailto:kbo...@als.com] Subject: SSI configuration May 21, 2009 9:31:58 PM org.apache.catalina.startup.HostConfig deployDirectory SEVERE: Error deploying web application directory docs java.lang.SecurityException: Servlet of class org.apache.catalina.ssi.SSIServlet is

RE: Apache 2.2 to Tomcat 6 via proxy_ajp

2009-05-21 Thread Caldarale, Charles R
From: J. Zimmerman [mailto:john.z...@gmail.com] Subject: Apache 2.2 to Tomcat 6 via proxy_ajp The wrench in the works is that we want to do virtual hosting through Apache and not have the appname appended to it. The Apache virtual hosted URL's will be the ones exposed to the public. Do