InvocationTargetException results OutOfMemory issue as codecache is full in tomcat 5.5

2009-10-04 Thread subrahmanyam
Hi, After tomcat running 3,4 days well with 75 users, suddenly we are facing InvocationTargetException caused by OutOfMemoryError for 3,4 users some times. The JAVA_OPTS options are well configured as observed no heap error issue. Heap utilization is only 60% but Foud that CodeCache is reaching ma

Tomcat blocks many threads

2009-10-04 Thread trucbinh
Hi, I used Yourkit Profiler to check my web application, and I found that many http threads are blocked here. org.apache.jasper.servlet.JspServletWrapper.service(HttpServletRequest, HttpServletResponse, boolean) (The method calls itself recursively) org.apache.catalina.core.ApplicationFilterCh

Re: Prevent Tomcat from using compression for IE6

2009-10-04 Thread Konstantin Kolinko
2009/10/5 gc2 : > (noCompressionUserAgents[i].matcher(userAgentValue).matches()) The above is the call to java.util.regex.Pattern.matcher(String).matches(). See JavaDoc of the java.util.regex.Pattern class for regular expressions syntax. Best regards, Konstantin Kolinko

Prevent Tomcat from using compression for IE6

2009-10-04 Thread gc2
I would like to use gzip compression for serving content but exclude all versions of IE6 and below. I tried setting user agents in noCompressionUserAgents but so far without success. The documentation suggests the setting is a regular expression however a quick review of tomcat's source code sho

Tomcat Repsonse question...

2009-10-04 Thread Tony Anecito
Hi All, What class method for Tomcat would show the response time? I am using the jvirtualvm to profile the code (simplest and easy to use) but I need to know the name/method that would be closest to the socket to get an idea how fast the container/app is. Thanks, -Tony

Re: resource not available : Apache Tomcat/6.0.20 with java jdk1.6.0_16 on linux 2.6.30.1

2009-10-04 Thread Linux sysadmin
Hi back konstantin, The truth is that i make a link from the ${catalina.home}/conf in the ${catalina.base}/conf regarding the web.conf, thus it's the default from tomcat original distribution ... In my ${catalina.base} there is only those dirs : "conf" and "webapps". there is link for log

Re: POST request with timeout acts weird

2009-10-04 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 10/2/2009 9:20 AM, Ronald Klop wrote: But I don't send any data. My servlet than waits in getParameterMap(), because that try's to read the inputstream and parse the parameters. After 20 seconds (Connector has

Re: resource not available : Apache Tomcat/6.0.20 with java jdk1.6.0_16 on linux 2.6.30.1

2009-10-04 Thread Konstantin Kolinko
5 октября 2009 г. 1:41 пользователь Linux sysadmin написал: > Hi back Konstantin, > >  When i put a web.xml in ${catalina.base}/conf  it's working, that's great, > thanks Konstantin for this remarks ;-) > It should be not the web.xml of your application, but the default one. See conf/web.xml in

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-04 Thread André Warnier
Joe Hansen wrote: I found the following error message in the Apache logs: [Sat Oct 03 04:10:49 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting Here's a snippet from the httpd.conf, which deals with MaxClients. StartServers 8 MinSpareServers5 Ma

Re: resource not available : Apache Tomcat/6.0.20 with java jdk1.6.0_16 on linux 2.6.30.1

2009-10-04 Thread Linux sysadmin
Hi back Konstantin, When i put a web.xml in ${catalina.base}/conf it's working, that's great, thanks Konstantin for this remarks ;-) But what i really wanted, is not using an web.xml in ${catalina.base}/conf but use the web.xml of each application, and use the master web.xml in ${catalin

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-04 Thread Rainer Jung
Hi Joe, On 04.10.2009 21:45, Joe Hansen wrote: > Rainer, Thank you so much for your kind reply! > > I have increased the java heap size to 512MB (-Xms512m -Xmx512m). I am > hoping that would fix the issue. I had configured our webserver to use > Jasig's Central Authentication System (CAS). Recent

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-04 Thread Rainer Jung
On 04.10.2009 22:17, Joe Hansen wrote: > I found the following error message in the Apache logs: > [Sat Oct 03 04:10:49 2009] [error] server reached MaxClients setting, > consider raising the MaxClients setting > > Here's a snippet from the httpd.conf, which deals with MaxClients. > > StartServer

Re: POST request with timeout acts weird

2009-10-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 10/2/2009 9:20 AM, Ronald Klop wrote: > But I don't send any data. My servlet than waits in getParameterMap(), > because that try's to read the inputstream and parse the parameters. > After 20 seconds (Connector has connectionTimeout="2

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-04 Thread Joe Hansen
I found the following error message in the Apache logs: [Sat Oct 03 04:10:49 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting Here's a snippet from the httpd.conf, which deals with MaxClients. StartServers 8 MinSpareServers5 MaxSpareServers 20 S

Re: resource not available : Apache Tomcat/6.0.20 with java jdk1.6.0_16 on linux 2.6.30.1

2009-10-04 Thread Konstantin Kolinko
1316 INFO: No default web.xml That message is about ${catalina.base}/conf/web.xml You have -user jsrvd on your jsvс command line. Are those files readable by that user? Best regards, Konstantin Kolinko 2009/10/4 Linux sysadmin : > Thank Konstantin and Peter for your fast reply, > >  Unfortuna

Re: [OT] XML editors (was Re: Help management access)

2009-10-04 Thread Hassan Schroeder
On Sun, Oct 4, 2009 at 12:03 PM, Peter Crowther wrote: >> Aside from that, what god-awful anachronism of an editor could you >> possibly be using that doesn't understand XML syntax?  :-) > > In my case, vi.  Much of my UNIX admin involves ssh into headless > production machines in datacentres wit

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-04 Thread Joe Hansen
Rainer, Thank you so much for your kind reply! I have increased the java heap size to 512MB (-Xms512m -Xmx512m). I am hoping that would fix the issue. I had configured our webserver to use Jasig's Central Authentication System (CAS). Recently I increased the session timeout from 30 minutes to 4 ho

Re: resource not available : Apache Tomcat/6.0.20 with java jdk1.6.0_16 on linux 2.6.30.1

2009-10-04 Thread Linux sysadmin
Thank Konstantin and Peter for your fast reply, Unfortunately i put 2 "=" like in the java command but still the same error as tomcat not finding the web.xml of my webapp !!! Regarding the answer of Peter i am doing an strace on it, answer is up to come ... Peter Crowther wrote: Try K

[OT] XML editors (was Re: Help management access)

2009-10-04 Thread Peter Crowther
2009/10/4 Hassan Schroeder : > Aside from that, what god-awful anachronism of an editor could you > possibly be using that doesn't understand XML syntax?  :-) In my case, vi. Much of my UNIX admin involves ssh into headless production machines in datacentres with stock OS builds. Frequently, ask

Re: Help management access

2009-10-04 Thread André Warnier
richard mycroft wrote: OK, I ran into the same thing a few weeks ago and wasted a lot of time before finding the silly XML comment elements. There should be an English language note, or a default user with no rights that is not commented out in order to help those of us not possessing a nice.

Re: Help management access

2009-10-04 Thread Hassan Schroeder
On Sun, Oct 4, 2009 at 11:09 AM, richard mycroft wrote: > ,,, to help those of us not possessing a nice. context sensitive XML > editor or experience with XML sufficient to quickly let us note this. Considering that all of Tomcat's configuration files are XML, and in general Java and XML seem to

Re: resource not available : Apache Tomcat/6.0.20 with java jdk1.6.0_16 on linux 2.6.30.1

2009-10-04 Thread Peter Crowther
2009/10/4 Linux sysadmin : [When starting as the jsvcd user...] >  1315 Oct 4, 2009 7:36:20 PM org.apache.catalina.startup.ContextConfig > defaultWebConfig                                 <=   It's seems tha's >  this  way  apache wasn't able to load the  web.xml in my  webapps' > WEB-INF/web.x

Re: resource not available : Apache Tomcat/6.0.20 with java jdk1.6.0_16 on linux 2.6.30.1

2009-10-04 Thread Konstantin Kolinko
I have not dug through all the log output that you are citing, but at least the following things are difference between your startup.sh and jsvc command lines: 1) The value of -Djava.io.tmpdir 2) The value of -Djava.security.policy The -Djava.security.policy value of jsvc is certainly wrong. Ther

resource not available : Apache Tomcat/6.0.20 with java jdk1.6.0_16 on linux 2.6.30.1

2009-10-04 Thread Linux sysadmin
Hello, I am sending you this long email because i'm stuck on a "resource not available" for 2 weeks no, i googled a lot on for this error, read plenty of mailing list , but still unresolved my case :-( ... Below is the a long and detailled snapshot of what happens, thanks in advance for givi

Re: Help management access

2009-10-04 Thread richard mycroft
OK, I ran into the same thing a few weeks ago and wasted a lot of time before finding the silly XML comment elements. There should be an English language note, or a default user with no rights that is not commented out in order to help those of us not possessing a nice. context sensitive XML ed

RE: Help management access

2009-10-04 Thread Jared Southern
Thanks Ken. > From: kbo...@als.com > To: users@tomcat.apache.org > Subject: Re: Help management access > Date: Sun, 4 Oct 2009 12:07:56 -0400 > > Remove the comment symbols from tomcat-users.xml > > On Oct 4, 2009, at 11:57 AM, Jared Southern wrote: > > > > > Hi all, > > I installed Apac

RE: Help management access

2009-10-04 Thread Jared Southern
Thanks Mark, That did the trick, P.S. nice pic's of turkey. Jared > Date: Sun, 4 Oct 2009 17:04:39 +0100 > From: ma...@apache.org > To: users@tomcat.apache.org > Subject: Re: Help management access > > Jared Southern wrote: > > Hi all, > > I installed Apache Tomcat Version 6.0.20 > > I can't ac

Re: Help management access

2009-10-04 Thread Ken Bowen
Remove the comment symbols from tomcat-users.xml On Oct 4, 2009, at 11:57 AM, Jared Southern wrote: Hi all, I installed Apache Tomcat Version 6.0.20 I can't access the tomcat Management system, I changed the tomcat-users.xml file, but I doen't make any difference. please help Regards

Re: Help management access

2009-10-04 Thread Ziggy
"I can't access the tomcat Management system" That can mean a million things. What exactly happens when you try to access the manager? On Sun, Oct 4, 2009 at 4:57 PM, Jared Southern wrote: > > Hi all, > I installed Apache Tomcat Version 6.0.20 > I can't access the tomcat Management system, > I

Re: Help management access

2009-10-04 Thread Mark Thomas
Jared Southern wrote: > Hi all, > I installed Apache Tomcat Version 6.0.20 > I can't access the tomcat Management system, > I changed the tomcat-users.xml file, but I doen't make any difference. > > > please help Remove the comment delimiters. Mark -

Help management access

2009-10-04 Thread Jared Southern
Hi all, I installed Apache Tomcat Version 6.0.20 I can't access the tomcat Management system, I changed the tomcat-users.xml file, but I doen't make any difference. please help Regards Jared _

Re: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread Leon Rosenberg
On Sun, Oct 4, 2009 at 4:23 PM, Caldarale, Charles R wrote: >> From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com] >> Subject: Re: Loading Jar files in a particular order on Tomcat 6 >> >> No, you can just overwrite setclasspath.sh and put the 'first' jar >> into the first place of the cla

RE: Baffling tomcat issue

2009-10-04 Thread baronred
Thanks :) That solved my problem mgainty wrote: > > > Baron > > replace YourWebApp with the name of your webapp > delete everything under the > $CATALINA_HOME/work/Catalina/localhost/YourWebapp > > Martin > __ > Verzicht und Vertraulichkeitanmerku

RE: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread Caldarale, Charles R
> From: Rasmus Larsen [mailto:kolibria...@gmail.com] > Subject: Re: Loading Jar files in a particular order on Tomcat 6 > > Just to clarify, the Jars have nothing to do with SpringSource. Sorry, my mistake; I was confusing this thread with Bocalinda's. Contacting the vendor or doing your own rep

management access

2009-10-04 Thread Jared Southern
_ View your other email accounts from your Hotmail inbox. Add them now. http://clk.atdmt.com/UKM/go/167688463/direct/01/

Re: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread Rasmus Larsen
2009/10/4 Caldarale, Charles R : >> From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com] >> Subject: Re: Loading Jar files in a particular order on Tomcat 6 >> >> No, you can just overwrite setclasspath.sh and put the 'first' jar >> into the first place of the classpath manually. > > ??? The

RE: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com] > Subject: Re: Loading Jar files in a particular order on Tomcat 6 > > No, you can just overwrite setclasspath.sh and put the 'first' jar > into the first place of the classpath manually. ??? These are jars deployed with the webapp, lo

Re: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread Leon Rosenberg
On Sun, Oct 4, 2009 at 1:02 PM, Rasmus Larsen wrote: > 2009/10/4 Leon Rosenberg : >> On Sun, Oct 4, 2009 at 1:00 AM, Eric B. wrote: >>> "Caldarale, Charles R" wrote in message >> Back to the original post, >> why don't you simply patch (maybe automatically with ant) the jar file >> containing th

RE: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread Martin Gainty
Larsen Keeping more than one version of the same package and class will cause excessive Administrative work Maven Build Environments will allow you to deploy a specific package/class and version to a profile maven allows you to compile/install and deploy the same package/class with a different

Re: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread Rasmus Larsen
2009/10/4 Leon Rosenberg : > On Sun, Oct 4, 2009 at 1:00 AM, Eric B. wrote: >> "Caldarale, Charles R" wrote in message > Back to the original post, > why don't you simply patch (maybe automatically with ant) the jar file > containing the 'old' version of the class and remove it? The jar files ar

Re: Loading Jar files in a particular order on Tomcat 6

2009-10-04 Thread Leon Rosenberg
On Sun, Oct 4, 2009 at 1:00 AM, Eric B. wrote: > "Caldarale, Charles R" wrote in message > news:99c8b2929b39c24493377ac7a121e21f84054c1...@usea-exch8.na.uis.unisys.com... >> From: Rasmus Larsen [mailto:kolibria...@gmail.com] >> Subject: Loading Jar files in a particular order on Tomcat 6 >> >> I'

Re: SEVERE: Parse error in default web.xml

2009-10-04 Thread Pid
On 04/10/2009 09:33, André Warnier wrote: Eric B. wrote: "andre" wrote in message news:003c01ca43b9$0ef57ae0$2ce070...@com... ... Are your all your files readable by the process that is running tomcat? For instance, if tomcat is running under user "tomcat", and your files are only readable

Re: SEVERE: Parse error in default web.xml

2009-10-04 Thread André Warnier
Eric B. wrote: "andre" wrote in message news:003c01ca43b9$0ef57ae0$2ce070...@com... ... Are your all your files readable by the process that is running tomcat? For instance, if tomcat is running under user "tomcat", and your files are only readable by "andre", you will get errors like tha