Re: I need help in configuring windows authentication in tomcat 7.0

2013-03-22 Thread Mark Thomas
On 21/03/2013 23:49, chris derham wrote: Context RealmclassName=org.apache.catalina.realm.JNDIRealm adCompat=true allRolesMode=authOnly referrals=follow connectionURL=ldap://dc01.mydom.local:389; connectionName=mydom\tcuser connectionPassword=Pa55w0rd

Re: My use of Spring MVC's DeferredResult class causes Tomcat 7.0.35 to crash silently

2013-03-22 Thread Julien Martin
Hi Chuck, Thanks for the tip. Can you please confirm it is not a deadlock? All threads appear to be waiting. I have run jstack and it did not find any deadlock... Regards, Julien. 2013-03-22 08:52:59 Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.7-b01 mixed mode): Attach Listener daemon

Re: My use of Spring MVC's DeferredResult class causes Tomcat 7.0.35 to crash silently

2013-03-22 Thread Daniel Mikusa
On Mar 22, 2013, at 4:47 AM, Julien Martin wrote: Hi Chuck, Thanks for the tip. Can you please confirm it is not a deadlock? All threads appear to be waiting. I have run jstack and it did not find any deadlock… At what point did you run this thread dump? What was the state of your

RE: My use of Spring MVC's DeferredResult class causes Tomcat 7.0.35 to crash silently

2013-03-22 Thread Caldarale, Charles R
From: Julien Martin [mailto:bal...@gmail.com] Subject: Re: My use of Spring MVC's DeferredResult class causes Tomcat 7.0.35 to crash silently http-bio-8080-exec-10 daemon prio=10 tid=0x7f68840a2800 nid=0x41b5 in Object.wait() [0x7f690cc57000] java.lang.Thread.State: WAITING (on

RE: [a bit, but not totally OT] Tomcat Behavior on Multiple HTTP requests from same browser

2013-03-22 Thread Jeffrey Janner
-Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Thursday, March 21, 2013 8:51 AM To: Tomcat Users List Subject: Re: [a bit, but not totally OT] Tomcat Behavior on Multiple HTTP requests from same browser Christopher Schultz wrote: HTTP connections for long

Re: [a bit, but not totally OT] Tomcat Behavior on Multiple HTTP requests from same browser

2013-03-22 Thread Howard W. Smith, Jr.
On Fri, Mar 22, 2013 at 10:04 AM, Jeffrey Janner jeffrey.jan...@polydyne.com wrote: -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Thursday, March 21, 2013 8:51 AM To: Tomcat Users List Subject: Re: [a bit, but not totally OT] Tomcat Behavior on Multiple

RE: [a bit, but not totally OT] Tomcat Behavior on Multiple HTTP requests from same browser

2013-03-22 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: [a bit, but not totally OT] Tomcat Behavior on Multiple HTTP requests from same browser You would need a fairly large, and well-disciplined team of pigeons to do that though. I don't think that this was a good

Re: My use of Spring MVC's DeferredResult class causes Tomcat 7.0.35 to crash silently

2013-03-22 Thread Julien Martin
@Chuck: thanks for the link. I have read it. Umm... the thing is I don't close my connection manually. I use Spring. Here is my configuration: bean class=org.apache.commons.dbcp.BasicDataSource destroy-method=close id=dataSource property name=driverClassName value=${database.driverClassName} /

Where does Tomcat log the logAbandoned information?

2013-03-22 Thread Julien Martin
Hello, I have enabled the *logAbandoned* property as follows (in Spring): property name=maxActive value=2/ property name=logAbandoned value=true/ property name=removeAbandoned value=true/ I know for certain it is taken into account by Tomcat but *I just can't figure out where the information is

Re: My use of Spring MVC's DeferredResult class causes Tomcat 7.0.35 to crash silently

2013-03-22 Thread Pid
On 22/03/2013 14:42, Julien Martin wrote: @Chuck: thanks for the link. I have read it. Umm... the thing is I don't close my connection manually. I use Spring. Here is my configuration: bean class=org.apache.commons.dbcp.BasicDataSource destroy-method=close id=dataSource property

Re: Where does Tomcat log the logAbandoned information?

2013-03-22 Thread Pid
On 22/03/2013 14:45, Julien Martin wrote: Hello, I have enabled the *logAbandoned* property as follows (in Spring): property name=maxActive value=2/ property name=logAbandoned value=true/ property name=removeAbandoned value=true/ I know for certain it is taken into account by Tomcat

Re: My use of Spring MVC's DeferredResult class causes Tomcat 7.0.35 to crash silently

2013-03-22 Thread Julien Martin
Hi, You mean if I set maxActive to 1? J. 2013/3/22 Pid p...@pidster.com On 22/03/2013 14:42, Julien Martin wrote: @Chuck: thanks for the link. I have read it. Umm... the thing is I don't close my connection manually. I use Spring. Here is my configuration: bean

Re: Where does Tomcat log the logAbandoned information?

2013-03-22 Thread Julien Martin
Hi Pid, Is there any other config I need to add (for instance to log4j.properties) in order for the logAbandoned logging to occur? I see nothing in stdout nor in the tomcat logs... Regards, J. 2013/3/22 Pid p...@pidster.com On 22/03/2013 14:45, Julien Martin wrote: Hello, I have enabled

Re: My use of Spring MVC's DeferredResult class causes Tomcat 7.0.35 to crash silently

2013-03-22 Thread Pid
On 22/03/2013 14:56, Julien Martin wrote: Hi, You mean if I set maxActive to 1? J. 2013/3/22 Pid p...@pidster.com On 22/03/2013 14:42, Julien Martin wrote: @Chuck: thanks for the link. I have read it. Umm... the thing is I don't close my connection manually. I use Spring. Here is my

Re: My use of Spring MVC's DeferredResult class causes Tomcat 7.0.35 to crash silently

2013-03-22 Thread Julien Martin
You're right. I should set the result in another method/thread i.e. a post method... Is this related to the memory leaks? J. 2013/3/22 Pid p...@pidster.com On 22/03/2013 14:56, Julien Martin wrote: Hi, You mean if I set maxActive to 1? J. 2013/3/22 Pid p...@pidster.com On

Re: My use of Spring MVC's DeferredResult class causes Tomcat 7.0.35 to crash silently

2013-03-22 Thread Pid
On 22/03/2013 15:08, Julien Martin wrote: You're right. I should set the result in another method/thread i.e. a post method... Is this related to the memory leaks? It might be worth simplifying the method while you debug the connection leak issue. p J. 2013/3/22 Pid p...@pidster.com

Re: My use of Spring MVC's DeferredResult class causes Tomcat 7.0.35 to crash silently

2013-03-22 Thread Daniel Mikusa
On Mar 22, 2013, at 10:42 AM, Julien Martin wrote: @Chuck: thanks for the link. I have read it. Umm... the thing is I don't close my connection manually. I use Spring. Here is my configuration: bean class=org.apache.commons.dbcp.BasicDataSource destroy-method=close id=dataSource property

Re: Where does Tomcat log the logAbandoned information?

2013-03-22 Thread Pid
On 22/03/2013 15:02, Julien Martin wrote: Hi Pid, Is there any other config I need to add (for instance to log4j.properties) in order for the logAbandoned logging to occur? Actually, you're right this is DBCP inside your app - so you might need to look in an app log if there is one. I see

Re: [totally OT] Tomcat Behavior on Multiple HTTP requests from same browser

2013-03-22 Thread André Warnier
Caldarale, Charles R wrote: From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: [a bit, but not totally OT] Tomcat Behavior on Multiple HTTP requests from same browser You would need a fairly large, and well-disciplined team of pigeons to do that though. I don't think that

Re: [totally OT] Tomcat Behavior on Multiple HTTP requests from same browser

2013-03-22 Thread Mark Eggers
On 3/22/2013 9:35 AM, André Warnier wrote: Caldarale, Charles R wrote: From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: [a bit, but not totally OT] Tomcat Behavior on Multiple HTTP requests from same browser You would need a fairly large, and well-disciplined team of

Re: Where does Tomcat log the logAbandoned information?

2013-03-22 Thread Julien Martin
Any idea what the logs should look like? Any sample? J. 2013/3/22 Pid p...@pidster.com On 22/03/2013 15:02, Julien Martin wrote: Hi Pid, Is there any other config I need to add (for instance to log4j.properties) in order for the logAbandoned logging to occur? Actually, you're right

Diagnosing Silently Frozen Tomcats

2013-03-22 Thread Robinson, Eric
When tomcat freezes silently, what is the best way to look inside the frozen tomcat or java instance and see the cause? We have 1500+ tomcat instances, and most of them run great most of the time. But a few times per week, an instance will become unresponsive. There is usually nothing

Re: Diagnosing Silently Frozen Tomcats

2013-03-22 Thread Mark Eggers
On 3/22/2013 1:36 PM, Robinson, Eric wrote: When tomcat freezes silently, what is the best way to look inside the frozen tomcat or java instance and see the cause? We have 1500+ tomcat instances, and most of them run great most of the time. But a few times per week, an instance will become

RE: Diagnosing Silently Frozen Tomcats

2013-03-22 Thread Carrillo, Dan
Take a full thread dump of the PID. Linux kill -3, if Windows CTRL+BREAK if you have a console window open. This will allow you to see the state of all threads and see whether it's your own application class (likely), or Tomcat itself. -Original Message- From: Robinson, Eric

RE: Diagnosing Silently Frozen Tomcats

2013-03-22 Thread Robinson, Eric
Dan said: Take a full thread dump of the PID. Linux kill -3, if Windows CTRL+BREAK if you have a console window open. Mark said: 2. Thread dumps So I tried kill -3 but it does nothing. The process ignores me like it owes me child support. I notice that it is in sleep state S1 if that

Re: Diagnosing Silently Frozen Tomcats

2013-03-22 Thread Mark Thomas
On 22/03/2013 22:22, Robinson, Eric wrote: Dan said: Take a full thread dump of the PID. Linux kill -3, if Windows CTRL+BREAK if you have a console window open. Mark said: 2. Thread dumps So I tried kill -3 but it does nothing. The process ignores me like it owes me child

Re: [totally OT] Tomcat Behavior on Multiple HTTP requests from same browser

2013-03-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 3/22/13 10:25 AM, Caldarale, Charles R wrote: From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: [a bit, but not totally OT] Tomcat Behavior on Multiple HTTP requests from same browser You would need a fairly

Re: [totally OT] Tomcat Behavior on Multiple HTTP requests from same browser

2013-03-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 3/22/13 12:35 PM, André Warnier wrote: Caldarale, Charles R wrote: From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: [a bit, but not totally OT] Tomcat Behavior on Multiple HTTP requests from same browser You

Re: Diagnosing Silently Frozen Tomcats

2013-03-22 Thread Mark Eggers
On 3/22/2013 3:22 PM, Robinson, Eric wrote: Dan said: Take a full thread dump of the PID. Linux kill -3, if Windows CTRL+BREAK if you have a console window open. Mark said: 2. Thread dumps So I tried kill -3 but it does nothing. The process ignores me like it owes me child support. I

Re: Diagnosing Silently Frozen Tomcats

2013-03-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 3/22/13 6:26 PM, Mark Thomas wrote: On 22/03/2013 22:22, Robinson, Eric wrote: Dan said: Take a full thread dump of the PID. Linux kill -3, if Windows CTRL+BREAK if you have a console window open. Mark said: 2. Thread dumps

Re: virtual directory

2013-03-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tommy, On 3/21/13 5:00 PM, Tommy Pham wrote: Silly me... I figured out what was the issue. I didn't have the index page defined in Tomcat's web.xml within the D:\wwwroot. The eventual content of this folder will be images anyway. Would I

Re: Diagnosing Silently Frozen Tomcats

2013-03-22 Thread Michael Gesundheit
Just do sudo kill -3 PID It will most likely work. If sudo is not enable - just google it. You will find instructions how to enable it. -Michael --- On Fri, 3/22/13, Mark Eggers its_toas...@yahoo.com wrote: From: Mark Eggers its_toas...@yahoo.com Subject: Re: Diagnosing Silently Frozen

RE: Diagnosing Silently Frozen Tomcats

2013-03-22 Thread Robinson, Eric
RTFM kill -3 doesn't kill the process it generates a thread dump to stdout. Mark Ha! It's probably been 30 years since the last time anyone told me to RTFM. Fair enough, I suppose I deserved it, although in my defense I did check the man page first. :-) Thanks! --Eric Disclaimer

RE: Diagnosing Silently Frozen Tomcats

2013-03-22 Thread Robinson, Eric
... and a link to TFM, if Eric didn't see [the other] Mark's response: http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_d ump_of_my_running_webapp_.3F - -chris I did see that and I even read it before posting. It said kill -3 sends a SIGQUIT. I guess I jumped to the

RE: [totally OT] Tomcat Behavior on Multiple HTTP requests from same browser

2013-03-22 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: [totally OT] Tomcat Behavior on Multiple HTTP requests from same browser Or swallows and coconuts. Someone had to bring that up. African or European? I think we can remove the not from the subject line

Re: Executable Tomcat JAR/WAR executes fine standalone, classloading errors in JNLP

2013-03-22 Thread Nick Williams
On Mar 21, 2013, at 4:31 PM, Nick Williams wrote: I have built an executable Tomcat JAR file. It has all of the Tomcat classes and dependencies zipped into one big JAR. Inside that JAR is also a WAR file, the native DLL, and logging.properties. My com.ul.io.Bootstrap class creates an