Re: changing trace level of 'internal' tomcat logs

2010-02-03 Thread Konstantin Kolinko
2010/2/3 Lominchar García, José Luis jllo...@mapfre.com: What bin/*.exe corresponds to 'Start All Programs Apache Tomcat 6.0 Configure Tomcat' ? tomcat6w.exe java.util.logging.ConsoleHandler.level = WARNING (in conf\logging.properties) didn't work .. I've tried and it works for me.

Re: changing trace level of 'internal' tomcat logs

2010-02-03 Thread Konstantin Kolinko
2010/2/3 Konstantin Kolinko knst.koli...@gmail.com: 2010/2/3 Lominchar García, José Luis jllo...@mapfre.com: jakarta_service_date.log : Start All Programs Apache Tomcat 6.0 Configure Tomcat then switch to the Logging page and choose Level, one of: Error, Info, Warning, Debug. What

RE: NullPointerException in MimeHeaders

2010-02-03 Thread Bertalan Kis
Thanks for the comment, I will search our code and see where we modify the headers concurrently. Bertalan Kis -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: 03 February 2010 06:34 To: Tomcat Users List Subject: Re: NullPointerException in MimeHeaders

Re: Embedding tomcat and bug in org.apache.catalina.startup.Catalina

2010-02-03 Thread Konstantin Kolinko
2010/2/1 Henning Blohm henning.bl...@gmail.com: Hi,  this is a question about embedding Tomcat into an application so that it can still be configured using server.xml and web applications can be added or removed programmatically.  I am using Tomcat 6.0.24.  The way I tried to make it work

Re: Tomcat 6.0.24 and Windows x64

2010-02-03 Thread Domenico Marzilli
As a further info, I've executed the: service.bat install but if I try to start it from the Tomcat Monitor, the service doesn't start and in the Eventi Viewer I can find the following error message by the Windows Service Control Manager: The Apache Tomcat 6 service terminated with

AW: AW: Tomcat Cluster 6.x and HTTP/1.1 503 Service Temporarily Unavailable

2010-02-03 Thread Alexander Diedler
Hello Mark, We changed the config like it was suggested on Tomcat Site, but sometimes, the Websites takes too long and endless loading process in the frontend. But this only for one off the apps,.. die other wepapps going on in the Cluster. No Timeout will be thrown. In Backend everything seems

AW: AW: AW: Tomcat Cluster 6.x and HTTP/1.1 503 Service Temporarily Unavailable

2010-02-03 Thread Alexander Diedler
Hi, I changed the worker list to comma-separated list. My server.xml: Engine name=Catalina defaultHost=localhost jvmRoute=worker1 !--For clustering, please take a look at documentation at: /docs/cluster-howto.html (simple how to) /docs/config/cluster.html (reference

BestPractise Multiple Webapps

2010-02-03 Thread Alexander Diedler
Hello, We have 3 different webapps based on d:\tomcat_apps\app1 ... app2 App3 on a Apache 2.2.14 and Tomcat 6.0.20. We want to have the possibility to reload every context/webapp separately without impact the others. So we have to open http://www.app1.de/manager/html/ to restart context

eclipse plugin for configuring publishable datasource?

2010-02-03 Thread MB
Is there a Eclipse plugin that can help you with properly configuring a data source for Tomcat and other containers? It should be easy and straightforward to configure a data source, but it seems it's not. Even with the tools available Eclipse Java EE for Web Developers, it's easy to mess up

RE: BestPractise Multiple Webapps

2010-02-03 Thread Caldarale, Charles R
From: Alexander Diedler [mailto:adied...@tecracer.de] Subject: BestPractise Multiple Webapps It is possible to impact all these webapps into one manager app and restart contexts? Not to my knowledge. An instance of the Tomcat manager works with only one Host. Nothing to stop you from

w3wp randomly crashes when redirector is used

2010-02-03 Thread Steve Ryan
Hello I really hope someone can help me with this. I have been trying to figure it out for days and I am beginning to go mad! The issue I am having appears to be very similar to https://issues.apache.org/bugzilla/show_bug.cgi?id=45063. It might even be the same issue. Note I can

Re: save session information

2010-02-03 Thread Ashish Kulkarni
Hi Is there any document which explains how to do so Ashish On Wed, Feb 3, 2010 at 1:49 AM, Mark Thomas ma...@apache.org wrote: On 03/02/2010 05:28, Ashish Kulkarni wrote: Hi Is it possible with tomcat to save session information in database or some where which can be retrieved after

Force New Connection Pool

2010-02-03 Thread Dan Denton
Hello all. I'd like to find a way to force my tomcat instances to get new connection pools, without stopping and starting the instances and kicking out all of my connected users. I'm using Oracle RAC with a failover service, and should one node fail, our tomcat instances don't reconnect

RE: save session information

2010-02-03 Thread Caldarale, Charles R
From: Ashish Kulkarni [mailto:ashish.kulkarn...@gmail.com] Subject: Re: save session information Is there any document which explains how to do so In a word, yes. Note that Tomcat persists active sessions automatically across restarts by default. A brief perusal of the Tomcat doc will get

Re: Force New Connection Pool

2010-02-03 Thread Filip Hanik - Dev Lists
On 02/03/2010 08:31 AM, Dan Denton wrote: Hello all. I'd like to find a way to force my tomcat instances to get new connection pools, without stopping and starting the instances and kicking out all of my connected users. I'm using Oracle RAC with a failover service, and should one node fail,

Re: Tomcat access is very slow

2010-02-03 Thread youngm
I am having a similar problem though I only see this problem in Google Chrome. I request my home page in chrome and it takes 100 sec to load the page. If I load the page in Firefox it loads excellent. I downgrade to tomcat 6.0.20 and everything works great in chrome. This is hitting a server

Re: Tomcat access is very slow

2010-02-03 Thread Peter Crowther
Mike, you'll probably get a few comments about thread hijacking - might be worth starting a new thread. Is there any way you could get a Wireshark or similar trace? It'd be very interesting to know what bytes the browser sent when in the request, for example, and whether the browser half-closed

Tomcat 6.0.24 Google Chrome

2010-02-03 Thread youngm
(This is a new thread to discuss a problem I accidentally posted to the Tomcat access is very slow) I'm having a performance problem on Tomcat 6.0.24 and Google Chrome. I request my home page in chrome and it takes 100 sec to load the page. If I load the page in Firefox it loads excellent. I

Re: Tomcat access is very slow

2010-02-03 Thread youngm
I've moved my question to the thread: Tomcat 6.0.24 Google Chrome. Peter Crowther wrote: Mike, you'll probably get a few comments about thread hijacking - might be worth starting a new thread. Is there any way you could get a Wireshark or similar trace? It'd be very interesting to know

RE: Tomcat dies suddenly

2010-02-03 Thread George Sexton
-Original Message- From: Carl [mailto:c...@etrak-plus.com] Sent: Saturday, January 30, 2010 10:32 AM To: Tomcat Users List Subject: Re: Tomcat dies suddenly George, Thanks for your reply. I will check that IPV6 is disabled... can't remember for certain. I have had the

Re: save session information

2010-02-03 Thread Martin Grotzke
Hi Ashish, I created a memcached based session failover solution: http://code.google.com/p/memcached-session-manager/ Basically it stores session information in memcached so that they can be pulled from memcached if they are not available in the local session map. For a normal request, the

Re: Tomcat dies suddenly

2010-02-03 Thread Carl
George, I scanned the code for 'InetAddress.getHostName' and didn't find any instances (that is what I thought but wanted to be certain.) It is frustrating how it will run very well for days and then suddenly fail every 15 minutes. Last Friday was a 'fail every 15 minutes' day. The only

Re: Tomcat 6.0.24 Google Chrome

2010-02-03 Thread youngm
A couple of updates. I've confirmed it doesn't only happen in Tomcat 6.0.24 and it doesn't only happen in Chrome. It seems to happen less often the longer the server is up. I though I had the problem more narrowed down than I do. I'll keep testing and see if I can provide some better

Re: Active DataSource Connection count never decreasing with PostgreSQL

2010-02-03 Thread Alexander Hartner
This is a little off topic, but I tried your suggestions. However there doesn't seem to be an option to set the root application without renaming the WAR to ROOT.war, or is there. I tried your suggestions as well as the suggestions from here:

RE: Active DataSource Connection count never decreasing with PostgreSQL

2010-02-03 Thread Caldarale, Charles R
From: Alexander Hartner [mailto:a...@j2anywhere.com] Subject: Re: Active DataSource Connection count never decreasing with PostgreSQL Just send responses to the list, please - not to individuals. However there doesn't seem to be an option to set the root application without renaming the

RE: Tomcat dies suddenly

2010-02-03 Thread Caldarale, Charles R
From: Carl [mailto:c...@etrak-plus.com] Subject: Re: Tomcat dies suddenly I have now added some java options: -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/usr/local/tomcat/logs If you can

Re: w3wp randomly crashes when redirector is used

2010-02-03 Thread André Warnier
Hmmm. Are you sure that you are posting to the right list here ? Steve Ryan wrote: Hello I really hope someone can help me with this. I have been trying to figure it out for days and I am beginning to go mad! The issue I am having appears to be very similar to

Re: Tomcat dies suddenly

2010-02-03 Thread Carl
Chuck, Thanks for your reply. I only added those options recently (over the weekend) so they were not there at the time of the last failure. Without them, the GC pauses are insignificant. I added the print options in the hope that I could see something right at the time of failure. The

RE: Tomcat dies suddenly

2010-02-03 Thread Caldarale, Charles R
From: Carl [mailto:c...@etrak-plus.com] Subject: Re: Tomcat dies suddenly I added the print options in the hope that I could see something right at the time of failure. Since the failures occurred before the print options were used, I guess that rules out any possibility of the OS getting

RE: Tomcat dies suddenly

2010-02-03 Thread George Sexton
You might want to search for getHostName by itself since it's an instance method and the variable name for the object would most certainly not be InetAddress. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Carl

Slow requests when using Executor pool

2010-02-03 Thread youngm
(This is a new thread spawned from my Tomcat 6.0.24 Google Chrome thread with better information) I'm running Tomcat 6.0.24, Sun JDKx86 6u18, Windows 7 64, Firefox and Chrome browser. I've noticed that for about the first 1-3 min after my tomcat instance has started some of my requests that

RE: w3wp randomly crashes when redirector is used

2010-02-03 Thread Steve Ryan
Thanks for the reply. My issue is due to Tomcat Connectors 1.2.28. Is there a more specific mailing list for such issues? The Tomcat Connectors website shows users@tomcat.apache.org as the mailing list. Cheers Steve -Original Message- From: André Warnier [mailto:a...@ice-sa.com]

Re: Tomcat dies suddenly

2010-02-03 Thread Carl
Chuck, Yes, it seems to point in that direction as we have ruled out most of the rest of the universe. I am hoping I can see failure at the point of failure with the heap dump options -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/usr/local/tomcat/logs but I have no experience with them

Re: Tomcat dies suddenly

2010-02-03 Thread Carl
George, I did and found one instance but it is running on an applet on the client side so I don't think it should impact the server. Thanks for the thoughts. Carl - Original Message - From: George Sexton geor...@mhsoftware.com To: 'Tomcat Users List' users@tomcat.apache.org Sent:

Re: Still unable to get a heap dump from Tomcat running on Windows as a service

2010-02-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/2/2010 6:59 PM, Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Still unable to get a heap dump from Tomcat running on Windows as a service I guess that phrases like that one explain why one

RE: w3wp randomly crashes when redirector is used

2010-02-03 Thread Caldarale, Charles R
From: Steve Ryan [mailto:st...@acme.ie] Subject: RE: w3wp randomly crashes when redirector is used Is there a more specific mailing list for such issues? No, this is the proper mailing list. Unfortunately, the problem is sufficiently esoteric (as well as having a work-around) so you're

RE: Tomcat dies suddenly

2010-02-03 Thread Caldarale, Charles R
From: Carl [mailto:c...@etrak-plus.com] Subject: Re: Tomcat dies suddenly I did and found one instance but it is running on an applet on the client side so I don't think it should impact the server. There are several calls to getHostName() inside Tomcat itself. Not sure how many are

Re: Tomcat dies suddenly

2010-02-03 Thread Carl
Chuck, One more thing. Sunday, I ran with a max heap of 500MB in the hope I could force an OOM but it never happened... just tooled along GC'ing very happily. Thanks, Carl - Original Message - From: Caldarale, Charles R chuck.caldar...@unisys.com To: Tomcat Users List

RE: Still unable to get a heap dump from Tomcat running on Windows as a service

2010-02-03 Thread Caldarale, Charles R
From: Laird Nelson [mailto:ljnel...@gmail.com] Subject: Re: Still unable to get a heap dump from Tomcat running on Windows as a service turns out no matter what you do through the GUI console, the service still runs as the system account Yes, I mentioned that a few days ago: BTW, on

RE: Still unable to get a heap dump from Tomcat running on Windows as a service

2010-02-03 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Still unable to get a heap dump from Tomcat running on Windowsas a service Would you prefer software warlock? I consider software to be a black art, as opposed to a fine one. That would certainly be closer to the

RE: w3wp randomly crashes when redirector is used

2010-02-03 Thread Steve Ryan
Hi Chuck Thanks for your reply. It is indeed a strange problem. The work around unfortunately causes a severe security risk (giving the DefaultAppPool the Local System identity is similar to running Apache as root) so it isn't really an option. If someone who works on the Tomcat Connectors

Re: w3wp randomly crashes when redirector is used

2010-02-03 Thread André Warnier
Steve Ryan wrote: My issue is due to Tomcat Connectors 1.2.28. Is there a more specific mailing list for such issues? The Tomcat Connectors website shows users@tomcat.apache.org as the mailing list. No. If your issue is indeed due to the Windows version of the mod_jk connector, then you are

Re: Tomcat dies suddenly

2010-02-03 Thread Dan Armbrust
Since the failures occurred before the print options were used, I guess that rules out any possibility of the OS getting upset at the JVM calling for timing information.  Back to square one, where the most likely culprit is still the Linux OOM killer.  - Chuck Have you checked:

RE: Tomcat dies suddenly

2010-02-03 Thread Caldarale, Charles R
From: Carl [mailto:c...@etrak-plus.com] Subject: Re: Tomcat dies suddenly I am hoping I can see failure at the point of failure with the heap dump options That won't have any effect on the Linux OOM killer. If it is the OOM killer taking out Tomcat, the JVM will not receive any

RE: w3wp randomly crashes when redirector is used

2010-02-03 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: w3wp randomly crashes when redirector is used My knowledge being limited, there might well be something I am missing in all of this. All I'm going on is Mark T's comment on the bug report: Moving to TC6 to increase visibility.

RE: w3wp randomly crashes when redirector is used

2010-02-03 Thread Steve Ryan
Hi Andre Thanks for your reply. W3wp.exe is the process which manages the application pool where the redirector lives. I'm fairly confident the problem is due to the redirector because the crash only occurs when the redirector is used. Also, there is an open bug (45063) which appears to be a

Re: Tomcat 6.0.24 Google Chrome

2010-02-03 Thread Peter Crowther
Good luck hunting it down. I suggest changing one other Tomcat variable, namely whether you're using the Java or native connector. - Peter On 3 February 2010 19:56, youngm you...@gmail.com wrote: A couple of updates. I've confirmed it doesn't only happen in Tomcat 6.0.24 and it doesn't

Re: Tomcat dies suddenly

2010-02-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/3/2010 5:00 PM, Caldarale, Charles R wrote: From: Carl [mailto:c...@etrak-plus.com] Subject: Re: Tomcat dies suddenly I am hoping I can see failure at the point of failure with the heap dump options That won't have any effect on

Re: w3wp randomly crashes when redirector is used

2010-02-03 Thread Peter Crowther
Steve, I'm with you - the issue does look unpleasantly similar. I wonder whether some experimentation with running the redirector under a local account with particular rights set might tell you which right was required, and hence which one might be causing an issue? But in the longer term, the

Re: Active DataSource Connection count never decreasing with PostgreSQL

2010-02-03 Thread Alexander Hartner
Hi Christopher and Charles, Thanks for your help so far. I made the following changes: server.xml Engine name=Catalina defaultHost=localhost Valve className=org.apache.catalina.valves.FastCommonAccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt

Re: Using Context/Manager with custom nested element

2010-02-03 Thread Martin Grotzke
On Fri, 2010-01-29 at 14:58 +, Pid wrote: On 29/01/2010 11:33, Martin Grotzke wrote: Hi Pid, what you describe is correct and works, I've implemented a Manager implementation that uses simple attributes until now (for memcached based session failover, memcached-session-manager:

Re: Tomcat dies suddenly

2010-02-03 Thread Carl
Dan, I looked at the messages log but there was never anything of interest in it, just the normal stuff. Haven't tried disabling the oom-killer... might give that a go. I thought it was a failure in the JVM but have never found any indications of anything... I will keep looking. Back in

Re: Tomcat dies suddenly

2010-02-03 Thread Carl
Chuck, Yes, I run the system monitor included with Slackweare. Currently showing 1.9GB used out of 3.8GB available and no swap being used... that's about where it has been tracking. The machine has nothing but Tomcat and a small server (for reports and applet data... could/should have been

DB Connections getting lost under load

2010-02-03 Thread Michael Molloy
I have a problem in our problem in our production environment (Tomcat 5.5.26) that I am able to replicate in a development environment (Tomcat 6.0.20) . I¹m using the apache DBCP package inside my web application, so Tomcat is not managing it. Commons-dbcp-1.2.2.jar Commons-pool-1.5.4.jar

Re: Tomcat dies suddenly

2010-02-03 Thread Carl
Chris, Interesting idea. I tried over the weekend to force that situation with JMeter hitting a simple jsp that did some data stuff and created a small display. I pushed it to the point that there were entries in the log stating it was out of memory (when attempting to GC, I think) but it

Re: Tomcat dies suddenly

2010-02-03 Thread andy susanto
Hai, Tomcat has a bug at Linux OS. you need to added LD_LIBRARY_KERNEL to your profile. it mean that you should know what version that your OS is using -- Regards, Andy Susanto,S.Kom == CV : http://www.linkedin.com/pub/andy-susanto/7/533/baa

Mod_JK connector configuration Error

2010-02-03 Thread daulat khan
Hi, i am hitting the following error while configuring mod_jk connector in solaris 10 machine. i am using sun studio tools for compiling. tomcat connector latest verson 1.2.28 apache latest verson 2.2.14 and tomcat latest version 6.0.20 configure: error: You must specify a valid --with-apxs

Re: Still unable to get a heap dump from Tomcat running on Windows as a service

2010-02-03 Thread Laird Nelson
Another data point: people have told me to download the Windows .zip distribution of Tomcat 6.0.24. I want to point out that this is not linked anywhere on the Tomcat download page. The *base* distribution is of course linked, and the .exe self-extracting-installer package, but I had to manually

Re: Still unable to get a heap dump from Tomcat running on Windows as a service

2010-02-03 Thread Laird Nelson
On Wed, Feb 3, 2010 at 9:28 PM, Laird Nelson ljnel...@gmail.com wrote: Another data point: people have told me to download the Windows .zip distribution of Tomcat 6.0.24. I want to point out that this is not linked anywhere on the Tomcat download page. The *base* distribution is of course

Parameters disappear from PUTs

2010-02-03 Thread chas
I am submitting forms to a restful interface using an HTTP PUT with the params in the header of the PUT. I believe that's normal, and it works just fine on Jetty. The params are definitely sent. When I load my app into Tomcat 6 (Ubuntu), the form submission works perfectly if I use a POST: the

Re: Tomcat dies suddenly

2010-02-03 Thread Mark Eggers
Carl, A couple of random thoughts . . . I'm not familiar with the Slackware monitoring tools, but I am with the various tools that come with Fedora / Redhat. One of the things that I've noticed with those GUI tools is that they add cache and buffers to the free memory total. Tools like top

RE: Parameters disappear from PUTs

2010-02-03 Thread Caldarale, Charles R
From: c...@munat.com [mailto:c...@munat.com] Subject: Parameters disappear from PUTs When I load my app into Tomcat 6 (Ubuntu), the form submission works perfectly if I use a POST: the params are definitely received. If I use a PUT, it works, but the parameters are missing 1) Tell us your

RE: Active DataSource Connection count never decreasing with PostgreSQL

2010-02-03 Thread Caldarale, Charles R
From: Alexander Hartner [mailto:a...@j2anywhere.com] Subject: Re: Active DataSource Connection count never decreasing with PostgreSQL Again, please send just to the mailing list, not to individuals. conf/Catalina/localhost/ROOT.xml ?xml version=1.0 encoding=UTF-8? Context

Re: Mod_JK connector configuration Error

2010-02-03 Thread Mark Eggers
apxs gets configuration information for apr and apr-utils, and httpd among other things. It does this by using pkg-config to find the libdir for apr, then prefixing that to httpd/build. For example, pkg-config --variable=libdir apr-1 on my system returns /usr/lib Then apxs looks in

Re: Tomcat dies suddenly

2010-02-03 Thread Kees Jan Koster
Dear Carl, So this problem happens on one machine or on more than one? If it is limited to one machine, I would be inclined to run memtest86 on it to see if the RAM is good. Kees Jan On 4 feb 2010, at 02:07, Carl c...@etrak-plus.com wrote: Chris, Interesting idea. I tried over the

RE: Parameters disappear from PUTs

2010-02-03 Thread chas
From: c...@munat.com [mailto:c...@munat.com] Subject: Parameters disappear from PUTs When I load my app into Tomcat 6 (Ubuntu), the form submission works perfectly if I use a POST: the params are definitely received. If I use a PUT, it works, but the parameters are missing 1) Tell us your

RE: Parameters disappear from PUTs

2010-02-03 Thread chas
OK, turns out my brother has wireshark installed. We ran it, and the packets are definitely getting to the server with the PUT params intact. So they arrive at the server, but they are missing from the output of the valve. Does this mean Tomcat is hosed? I thought maybe I'd test 24 on my laptop,

Tomcat Security

2010-02-03 Thread ronald . wagenaar
We are running a few web applications on Tomcat 6 on a Windows Server 2003 system in a Windows 2003 Active Directory Forest. How to make the Tomcat environment secure (hardening)? I read about security manager, but how to add the web applications in the cataline.policy? Is it possible to use

RE: Parameters disappear from PUTs

2010-02-03 Thread Mark Eggers
As a quick check, can you go into /etc/init.d/tomcat6 and at around line 68 you'll see: TOMCAT_SECURITY=yes If you're allowed to, change that line to: TOMCAT_SECURITY=no Then restart tomcat with: ../tomcat6 restart Of course, you have to be root to do this. On first glance, I don't see a

RE: Parameters disappear from PUTs

2010-02-03 Thread chas
Sorry, I checked and it is already no. I have full control of the server, albeit it's 2000 miles away... Chas. As a quick check, can you go into /etc/init.d/tomcat6 and at around line 68 you'll see: TOMCAT_SECURITY=yes If you're allowed to, change that line to: TOMCAT_SECURITY=no Then

max heap size on Windows server 64 bit

2010-02-03 Thread Wolfgang Hummel
Hi, we are running tomcat 6.20 on windows server 2003 64bit with java 1.6 (64bit) as a Windows service. Everything works fine but I have to increase max. heap size to 4 GB (now 2 GB). Machine has abaout 8 GB ram. I know, how to do this - but I read, that it is not recommanded to configure more