Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Mark Thomas
On 14/11/2010 19:11, André Warnier wrote: Great. For the using JMX clients page, may I recommend : http://code.google.com/p/jmxsh/ which for Java ignorami of my level, is a useful tool to do nifty things in a scripting (non-graphic) mode. I use it only for really simple things, but I have

Re: Problem in accessing jsp:useBean

2010-11-15 Thread Mark Thomas
On 15/11/2010 07:10, Rekha Ravi Pai wrote: Hi, I have installed tomcat-6.0.20 and postgresql-9.0.1 I have created a java bean PasswordEncryptService.java I have kept it in WEB-INF/classes/beans directory and in beans package. I compiled the java file and successfully ran the class and could

RE: Shutting down one instance of tomcat 6 from a listener

2010-11-15 Thread Patrick Sauts
That's it! I have a single Tomcat/JVM instance but multiple applications running on it. In fact with System.exit(1) Tomcat is not completely stopped; it is still running but it hangs. I have to kill the process to terminate it. So, how to shut down properly the current application from a

Re: Using mod_jk in cluster environment responds HTTP 500

2010-11-15 Thread rikslovein
Chris, Also one more information: None of my tomcat is configured with HTTP connector. They are configured only for AJP. Does the jkmanager requires this HTTP port? Any relation between the non-SSL HTTP connector and jkmanager? Regards. rikslovein wrote: Thanks for the quick response

Tomcat Going down Frequently

2010-11-15 Thread Amol Puglia
Hello team, Tomcat Server going down frequently with the following messages in the logs. kindly help. body { margin: 0pt; padding: 0pt; }td, div { font-family: Tahoma; font-size: 8pt; vertical-align: top; }body { margin: 0pt; padding: 0pt; }.transcript { background-color: rgb(210, 210, 210);

Re: Tomcat Going down Frequently

2010-11-15 Thread André Warnier
Amol Puglia wrote: Hello team, Tomcat Server going down frequently with the following messages in the logs. kindly help. Hello Amol. If it is not too much of an inconvenience, would you kindly care to let us know which version of Tomcat this is, which JVM, on which platform, and where you

Re: Tomcat Going down Frequently

2010-11-15 Thread Pid
On 15/11/2010 11:35, André Warnier wrote: Amol Puglia wrote: Hello team, Tomcat Server going down frequently with the following messages in the logs. kindly help. Hello Amol. If it is not too much of an inconvenience, would you kindly care to let us know which version of Tomcat this is,

Re: Shutting down one instance of tomcat 6 from a listener

2010-11-15 Thread Pid
On 15/11/2010 09:37, Patrick Sauts wrote: So, how to shut down properly the current application from a 'listener' leaving the other webapps deployed into Tomcat to continue their business? It depends on what the problem actually is, and when it occurs. If you do all of your initialisation in

Re: Problem in accessing jsp:useBean

2010-11-15 Thread Konstantin Kolinko
2010/11/15 Rekha Ravi Pai re...@softjin.com: The value for the useBean class attribute PasswordEncryptService is invalid. According to your description, your class name is beans.PasswordEncryptService. - To unsubscribe, e-mail:

Re: Using mod_jk in cluster environment responds HTTP 500

2010-11-15 Thread rikslovein
awarnier, Thanks for your response. I changed this and still it didn't solve my problem. The request are still reaching to the server which I made down using jkmanager. Here's the updated workers.proeprties: worker.list=loadbal_hub_prod,jkstatus worker.loadbal_hub_prod.type=lb

Re: Tomcat Going down Frequently

2010-11-15 Thread Amol Puglia
Hello Pid, Thanks for your response. We are using following versions of softwares. 1)Tomcat version :- 6.0.20 2)Jdk version :- jdk160_05 3)Operating System :- Solaris 5.10 4)Apache version :- 2.2.16 Also CSS contents are not form logs it came by mistake. Please help and let me know in

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Rainer Jung
André, On 14.11.2010 20:11, André Warnier wrote: For the using JMX clients page, may I recommend : http://code.google.com/p/jmxsh/ which for Java ignorami of my level, is a useful tool to do nifty things in a scripting (non-graphic) mode. I use it only for really simple things, but I have the

RE: Shutting down one instance of tomcat 6 from a listener

2010-11-15 Thread Patrick Sauts
Of course ... Sorry to bother ... I was catching the exceptions in order to log properly but I was doing System.exit(1) I'll resend the exception. Thx a lot. -Original Message- From: Pid [mailto:p...@pidster.com] Sent: lundi 15 novembre 2010 12:44 To: Tomcat Users List Subject: Re:

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread André Warnier
Rainer Jung wrote: André, On 14.11.2010 20:11, André Warnier wrote: For the using JMX clients page, may I recommend : http://code.google.com/p/jmxsh/ which for Java ignorami of my level, is a useful tool to do nifty things in a scripting (non-graphic) mode. I use it only for really simple

Re: Tomcat Going down Frequently

2010-11-15 Thread Jim Cox
Is LoginBean.java your code (or code that you control)? You might have to change that code a bit to handle a session that has already been invalidated. On Mon, Nov 15, 2010 at 6:03 AM, Amol Puglia amolcpug...@yahoo.com wrote: Hello team, Tomcat Server going down frequently with the following

Re: Tomcat log files

2010-11-15 Thread Tobias Crefeld
Am Tue, 09 Nov 2010 16:06:14 -0500 schrieb Christopher Schultz ch...@christopherschultz.net: Have you correctly replaced lib/tomcat-juli.jar and installed lib/tomcat-juli-adapters.jar? If not, you may be falling back to the old logger which requires logging.properties. For whatever-reason and

Configuring users

2010-11-15 Thread Noah, Craig [USA]
All, I'm trying to configure a user to use the manager web application. I have read the comments in the tomcat-users.xml file on my server and added the following two lines to the file: role rolename=manager/ user username=user password=pass roles=manager/ I have saved the file and

Re: Configuring users

2010-11-15 Thread Mark Thomas
On 15/11/2010 15:51, Noah, Craig [USA] wrote: All, I'm trying to configure a user to use the manager web application. I have read the comments in the tomcat-users.xml file on my server and added the following two lines to the file: role rolename=manager/ user username=user

RE: Configuring users

2010-11-15 Thread Noah, Craig [USA]
Sorry. I'm using tomcat 6.0.26. I made sure my changes are not within comments. The full file is: ?xml version='1.0' encoding='utf-8'? !-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work

Re: Configuring users

2010-11-15 Thread Mark Thomas
On 15/11/2010 16:01, Noah, Craig [USA] wrote: Sorry. I'm using tomcat 6.0.26. OK, manager is the correct role. I made sure my changes are not within comments. The full file is: Looks good. Try: http://localhost:8084/manager/html Mark

Re: Configuring users

2010-11-15 Thread Konstantin Kolinko
2010/11/15 Noah, Craig [USA] noah_cr...@bah.com: When I try to browse to the manager web application at http://localhost:8084/manager/, I get a 404 report stating the requested resource is not available. That URL is incomplete. Try http://localhost:8084/manager/html Best regards, Konstantin

RE: Configuring users

2010-11-15 Thread Noah, Craig [USA]
Thanks, that's better. I get prompted for a username and password, but it won't accept the values I've configured. No, I don't have caps lock turned on. -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Monday, November 15, 2010 10:04 AM To: Tomcat Users List

Re: Configuring users

2010-11-15 Thread Mark Thomas
On 15/11/2010 16:07, Noah, Craig [USA] wrote: Thanks, that's better. I get prompted for a username and password, but it won't accept the values I've configured. No, I don't have caps lock turned on. OK. Moving in the right direction. Clearly, from the URL you provided, the default

RE: Configuring users

2010-11-15 Thread Noah, Craig [USA]
I don't remember making changes to the server.xml file, but here is mine: ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener /

RE: Configuring users

2010-11-15 Thread Caldarale, Charles R
From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: Configuring users Clearly, from the URL you provided, the default server.xml isn't being used. Has the Realm definition been changed? A copy of the complete server.xml (less comments with any sensitive info replaced with ***) is the

Re: Configuring users

2010-11-15 Thread Mark Thomas
On 15/11/2010 16:21, Noah, Craig [USA] wrote: I don't remember making changes to the server.xml file, but here is mine: You aren't using the Tomcat instance you think you are. Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443

RE: Configuring users

2010-11-15 Thread Noah, Craig [USA]
Thank you. That was it. I'm using NetBeans and was trying to start the server within the IDE. Why can't they just use the scripts themselves? Oh well. I'm up and running now. Thanks Mark and Charles for your help. Craig -Original Message- From: Caldarale, Charles R

Re: Tomcat Going down Frequently

2010-11-15 Thread Pid
On 15/11/2010 11:03, Amol Puglia wrote: at org.apache.catalina.session.StandardSessionFacade.getAttributeNames(StandardSessionFacade.java:120) at com.ericsson.mars.jspbean.LoginBean.logout(LoginBean.java:2366) at

RE: Absence of isapi_redirect log file

2010-11-15 Thread George Sexton
It's really difficult to troubleshoot ISAPI redirector problems. No one really seems to be able to help much when you get a problem and the logs are either unhelpful or vastly too verbose. I think that changes in IIS have dramatically complicated it and the Tomcat Docs have not kept up. In

RE: Any tools to detect tomcat services failure, and start it again automatically?

2010-11-15 Thread George Sexton
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, November 11, 2010 10:18 AM To: Tomcat Users List Subject: Re: Any tools to detect tomcat services failure, and start it again automatically? Pid, On 11/11/2010 3:40 AM, Pid

Re: Any tools to detect tomcat services failure, and start it again automatically?

2010-11-15 Thread Tim Funk
Has anyone successfully used (or experimented with) either of these? -XX:OnError=cmd args;cmd args -XX:OnOutOfMemoryError=cmd args; cmd args -Tim - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional

Re: Any tools to detect tomcat services failure, and start it again automatically?

2010-11-15 Thread Pid
On 15/11/2010 17:39, Tim Funk wrote: Has anyone successfully used (or experimented with) either of these? -XX:OnError=cmd args;cmd args -XX:OnOutOfMemoryError=cmd args; cmd args Yes. Context: an occasional app bug which started occurring with more frequency, under load. Couldn't track

Is this correct behavior of cookies

2010-11-15 Thread Igor Barkon
I run development on Tomcat 6.0.29 and IE 8.   I need help to understand behavior of cookies. I created a new cookie and setup maxAge to 60 seconds running script setMaxAge(60). I expected this cookie to be persistent and to exist for 60 seconds. I ran this script to create the cookie Cookie

AJP connector connectionTimeOut

2010-11-15 Thread Luke Meyer
Tomcat 6.0.29, HotSpot 1.6.0_21 on CentOS 5. I had a problem recently where someone configured a standard AJP connector like this: Connector port=8009 connectionTimeOut=6 acceptCount=100 maxThreads=250 protocol=AJP/1.3 / See the typo? connectionTimeOut should be connectionTimeout. Normally

Re: AJP connector connectionTimeOut

2010-11-15 Thread Mark Thomas
On 15/11/2010 20:30, Luke Meyer wrote: Tomcat 6.0.29, HotSpot 1.6.0_21 on CentOS 5. I had a problem recently where someone configured a standard AJP connector like this: Connector port=8009 connectionTimeOut=6 acceptCount=100 maxThreads=250 protocol=AJP/1.3 / See the typo?

Re: Is this correct behavior of cookies

2010-11-15 Thread Mark Thomas
On 15/11/2010 19:25, Igor Barkon wrote: I run development on Tomcat 6.0.29 and IE 8. Try testing with a browser that implements RFC2109. Unless there have been some major improvements since I last tested IE8, it doesn't even come close. I'd also recommend using a tool that lets you examine HTTP

RE: AJP connector connectionTimeOut

2010-11-15 Thread Luke Meyer
The BIO connector doesn't complain due to how properties are handled internally. The NIO and APR/native connector will log warnings. OK, good to know. I noticed the default HTTP connector also doesn't warn about bogus properties. Hadn't checked the rest. AJP connections are intended to

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 11/14/2010 1:30 AM, Brian wrote: It seems that I solved my problems! So far, these are my conclutions: - Very often, when I restart/redeploy my app, some garbage is left in the memory. I don't know why, given that my code closes

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Brian
Hi Chris, -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, November 15, 2010 09:04 PM To: Tomcat Users List Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Caldarale, Charles R
From: Brian [mailto:bbprefix-m...@yahoo.com] Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? sometimes Tomcat thinks that needs a huge buffer, so it makes the array to increase to millions of chars. I have no such big pages in my site This is the crux of the problem

After manager says that there was a leak, how to use a profiler?

2010-11-15 Thread Brian
Hi, After the Tomcat manager warns that there was a leak with one app what was stopped or undeployed, how do I use the profiler to investigate that? I mean, that is the starting point to analize that? What should I look for? Brian

Re: After manager says that there was a leak, how to use a profiler?

2010-11-15 Thread Konstantin Kolinko
2010/11/16 Brian bbprefix-m...@yahoo.com: Hi, After the Tomcat manager warns that there was a leak with one app what was stopped or undeployed, how do I use the profiler to investigate that? I mean, that is the starting point to analize that? What should I look for? E.g., using Eclipse MAT,

RE: After manager says that there was a leak, how to use a profiler?

2010-11-15 Thread Brian
Maybe my question sounded too vague and repetitive. What I meant is something like this Is the a class loader (or something like that) than I should start analyzing? I mean, is there a route I should follow in order to see which objects are stucked? If the Tomcat Manager knows that something got

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Brian
Hi Chuck, Now I think you must be right.It is not impossible that one of my pages is huge. They are dynamically created, so something could be wrong in my programming to deliver a huge page for some requests. Isn't there a log of all the requests? I have one running Maybe the log could

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Caldarale, Charles R
From: Brian [mailto:bbprefix-m...@yahoo.com] Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? Isn't there a log of all the requests? Not by default, but you can enable the AccessLogValve in server.xml, that will display the request URI and the response size. However,

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Brian
Well, I am using the valve indeed! I will check if it is showing the size of the responses. I guess I can find the huge pages easily there. I'm not using the trimSpaces flag. If I find it, I wont need to limit the buffer. That would be more elegant than having to do it. :-) But the other

Re: Any tools to detect tomcat services failure, and start it again automatically?

2010-11-15 Thread Bill Wang
Thanks everyone, I simplify the problem with my own request. In our real env, only one application deployed in one apache-tomcat server. And application will always have its name under opt folder as: /opt/tomcat/APP_NAME/tomcat-VERSION/webapp/APP_NAME tomcat version: 5.5, 6.0.18, 6.0.29 Unix

the tomcat encoding

2010-11-15 Thread xu cheng
hi all: I wrote an app and there are some chinese content, and there are some code like this str = new String(chineseContentString.getBytes(iso-8859-1), utf-8); the app runs pretty well in the tomcat of my pc. however ,when it was deployed in other machine. all the Chinese content becomes messy

Re: Tomcat Going down Frequently

2010-11-15 Thread Amol Puglia
Hello Pid, Thanks for the updates.It would be great if you could let us know whether the issue is in application server or application. Also we are using apache to load balance tomcat instances using following modules. LoadModule proxy_module modules/mod_proxy.so LoadModule