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 .

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 subj

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 co

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 Disclai

Re: Diagnosing Silently Frozen Tomcats

2013-03-22 Thread Michael Gesundheit
Just do "sudo kill -3 " 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 wrote: > From: Mark Eggers > Subject: Re: Diagnosing Silently Frozen Tomcats > To: users@tomcat.apache.org > Date: F

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 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.

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 not

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

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

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 > m

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

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 [mailto:

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 unresp

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 suspicious

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 > 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 DB

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 pig

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 t

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 se

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: > > destroy-method="close" id="dataSource"> > > > > > > > > > > > > > > You might t

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 > >> On 22/0

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 > On 22/03/2013 14:56, Julien Martin wrote: > > Hi, > > You mean if I set maxActive to 1? > > > > J. > > > > 2013/3/22 Pid > > > >> On 22/03/2013 14:42, Jul

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 > >> 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 conf

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 > On 22/03/2013 14:45, Julien Martin wrote: > > Hello, > > > > I have enabled the *logAba

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 > 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: > > > > > destroy-method="close" id="dataSour

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): > > > > > > I know for certain it is taken into account by Tomcat but *I just can't > figure out where the information is logged*. It will be logged to standard out, cata

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: > > destroy-method="close" id="dataSource"> > > > > > > > > > > > > > > > What happens if yo

Where does Tomcat log the logAbandoned information?

2013-03-22 Thread Julien Martin
Hello, I have enabled the *logAbandoned* property as follows (in Spring): I know for certain it is taken into account by Tomcat but *I just can't figure out where the information is logged*. It seems to be a recurring question on the web but I was not able to find the answer to it. Can anyo

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: Any idea what I am getting wrong? @Daniel, I have configured jmx with Spring and I get a numIdle of 0 and numActive of 2 after the proble

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 m

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 o

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

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: WAIT

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 appli

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" daemo

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: >> >> > adCompat="true" >>allRolesMode="authOnly" >> referrals="follow" >> connectionURL="ldap://dc01.mydom.local:389"; >> connectionName="mydom\tcuser" >> connectionPassword="Pa55w0rd" >> userBase="dc=mydom,dc=local"