Re: Mysterious failures

2005-06-13 Thread Grant Ingersoll
I upgraded to Apache2 and TC 5.5.8 and that seems to have taken care of 
the problem, whatever it was.



On May 25, 2005, at 3:32 PM, Mark Eggers wrote:



--- Grant Ingersoll
[EMAIL PROTECTED] wrote:


Thanks for the ideas.  I cranked my debugging up to
99.

There are a couple of things that I see, but don't
know if they are
serious:
1. SEVERE: The scratchDir you specified:


/development/jakarta-tomcat-5.0.28/work/Catalina/localhost/admin

is
unusable.
  -- I never set this, I am assuming it is the
default


This is normally the work directory for the admin
application.  Are you trying to replace this
application, or could there be a context problem?


2. WARNING: Duplicate name in Manifest: Class-Path
 -- I think this is due to some JAR in struts


I will have to load and launch a Struts application to
check on this.  I don't recall seeing this recently.


3. In the apache log I get warnings about compiling
mod_jk with EAPI on


EAPI compilation is for a module compiled for Apache
1.3 and supporting SSL.  Are you using Apache 1.3 or
2.0?  From the error message below, it sounds like you
are trying to run a 1.3 module on a 2.0 server.  This
won't be successful.

Either download and compile the source, or get the
binary release for apache 2.0.47.


I am mapping through mod_jk, so the error I get is
the Apache Internal
Server Error.  The Tomcat process is dead, so there
is no tomcat error
page.


Hope this helps

/mde/

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mysterious failures

2005-05-25 Thread Steve Kirk
Sorry but I don't use apache-httpd so can't help you there, although would
comment that if you have mod_jk compilation warnings they sound worth
looking at.  My only experience of httpd with tc gave me the impression that
it was unreliable.  Although to be fair that was a few versions back, on
windoze.

Do you have a logger configured in tc at all?  For example on my 5.0.28 I
had this within the Engine.../Engine tag of in my webapp's context.xml

Logger className=org.apache.catalina.logger.FileLogger
timestamp=true/

See http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/logger.html for
more details for 5.0

Your alternative to Logger is to move to commons-logging and/or log4j,
which is what I am about to do myself.

 -Original Message-
 From: Grant Ingersoll [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday 25 May 2005 02:29
 To: Tomcat Users List
 Subject: Re: Mysterious failures
 
 
 Thanks for the ideas.  I cranked my debugging up to 99.
 
 There are a couple of things that I see, but don't know if they are 
 serious:
 1. SEVERE: The scratchDir you specified: 
 /development/jakarta-tomcat-5.0.28/work/Catalina/localhost/admin is 
 unusable.
   -- I never set this, I am assuming it is the default
 
 2. WARNING: Duplicate name in Manifest: Class-Path
  -- I think this is due to some JAR in struts
 
 3. In the apache log I get warnings about compiling mod_jk 
 with EAPI on
 
 I am mapping through mod_jk, so the error I get is the Apache 
 Internal 
 Server Error.  The Tomcat process is dead, so there is no 
 tomcat error 
 page.
 
 I am using struts, I will am pretty sure I am returning everything to 
 the pool.  I have a top level servlet filter that logs all 
 exceptions, 
 including Throwable all to no avail.
 
 It seems to crash at random, but mostly b/c I am not always aware of 
 when it crashes.  Today, after rebooting, it didn't even 
 start up, but 
 then started fine when I called startup.sh
 
 -Grant
 
 On May 22, 2005, at 9:51 PM, Steve Kirk wrote:
 
 
  What is your actual logging config?
 
  Hazy memory, but don't you want debug=99 rather than debug=1 to get 
  more
  detail?
 
  If you really can't get logging to work, you could insert
  System.out.println(blah) statements at key points around 
 where you 
  think
  the crash might be caused, in lieu of your log statements.  
 Not pretty 
  but
  it can get you results.
 
  Some Qs to narrow it down a bit:
 
  Is the crash triggered by a single type of request, or 
 maybe a burst of
  traffic, or will it crash even with no requests?
 
  Is the crashing request direct to TC or via apache httpd?
 
  Is a TC html error page generated, what does it say?
 
  Do you start any of your own threads?
 
  Does your code always return pooled objects to the pool?
 
  Is there some app that people use to make sure the server 
 stays up by
  checking it every so often and restarting if needed?
 
  I've never come across that.  TC is pretty reliable, 
 shouldn't need it 
  IMHE.
 
  -Original Message-
  From: Grant Ingersoll [mailto:[EMAIL PROTECTED]
  Sent: Monday 23 May 2005 02:39
  To: tomcat-user@jakarta.apache.org
  Subject: Mysterious failures
 
 
  Hi,
 
  Have been a long time user of TC, but first time poster.
 
  I am running 5.0.28 on OS X with PostgreSQL and Struts and 
 connecting
  to Apache using mod_jk.  I have a webapp deployed that is pretty
  mature.  However, I am having some mysterious crashes of 
 Tomcat that I
  haven't been able to get my head around.  The whole 
 process is dying
  w/o so much as a peep.  Not one single log/exception is 
 being written
  anywhere (as far as I know) that gives even the most 
 remote clue as to
  why and I am at a loss for how to get at the problem.
 
  Here is what I have done to date:
  1. Put a catch (Throwable) with a log message at my top 
 level part of
  the servlet that logs the exception and then throws it out.
 
  2. I have turned on DEBUG level logging for every piece of
  the application
 
  3. I have set debug=1 everywhere I could in server.xml
 
  Anyone have any suggestions on what else to do for debugging this?
  Part of me feels that it might be JDBC related as I am not 
 using the
  Tomcat JNDI lookup methods for getting connections (but am 
 managing a
  pool myself).  Should I be using the JNDI lookup methods 
 for getting
  connections?  My only other guess was that it seems to 
 happen after it
  has been running for a little while and I thought it might have
  something to do with the session timeout stuff, but I can't see why
  that would cause the process to exit.
 
  Is there some app that people use to make sure the server 
 stays up by
  checking it every so often and restarting if needed?
 
  Thanks for any advice,
  Grant
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED

Re: Mysterious failures

2005-05-25 Thread Mark Eggers

--- Grant Ingersoll
[EMAIL PROTECTED] wrote:

 Thanks for the ideas.  I cranked my debugging up to
 99.
 
 There are a couple of things that I see, but don't
 know if they are 
 serious:
 1. SEVERE: The scratchDir you specified: 

/development/jakarta-tomcat-5.0.28/work/Catalina/localhost/admin
 is 
 unusable.
   -- I never set this, I am assuming it is the
 default

This is normally the work directory for the admin
application.  Are you trying to replace this
application, or could there be a context problem?

 2. WARNING: Duplicate name in Manifest: Class-Path
  -- I think this is due to some JAR in struts

I will have to load and launch a Struts application to
check on this.  I don't recall seeing this recently.

 3. In the apache log I get warnings about compiling
 mod_jk with EAPI on

EAPI compilation is for a module compiled for Apache
1.3 and supporting SSL.  Are you using Apache 1.3 or
2.0?  From the error message below, it sounds like you
are trying to run a 1.3 module on a 2.0 server.  This
won't be successful.

Either download and compile the source, or get the
binary release for apache 2.0.47.

 I am mapping through mod_jk, so the error I get is
 the Apache Internal 
 Server Error.  The Tomcat process is dead, so there
 is no tomcat error 
 page.

Hope this helps

/mde/

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mysterious failures

2005-05-25 Thread Grant Ingersoll


On May 25, 2005, at 3:32 PM, Mark Eggers wrote:



--- Grant Ingersoll
[EMAIL PROTECTED] wrote:


Thanks for the ideas.  I cranked my debugging up to
99.

There are a couple of things that I see, but don't
know if they are
serious:
1. SEVERE: The scratchDir you specified:


/development/jakarta-tomcat-5.0.28/work/Catalina/localhost/admin

is
unusable.
  -- I never set this, I am assuming it is the
default


This is normally the work directory for the admin
application.  Are you trying to replace this
application, or could there be a context problem?



No, just restarting Tomcat


2. WARNING: Duplicate name in Manifest: Class-Path
 -- I think this is due to some JAR in struts


I will have to load and launch a Struts application to
check on this.  I don't recall seeing this recently.


3. In the apache log I get warnings about compiling
mod_jk with EAPI on


EAPI compilation is for a module compiled for Apache
1.3 and supporting SSL.  Are you using Apache 1.3 or
2.0?  From the error message below, it sounds like you
are trying to run a 1.3 module on a 2.0 server.  This
won't be successful.



1.3 or Apache on OS X and Tomcat 5.0.28.

Should I upgrade?

I have had it fail even when Apache isn't running.



Either download and compile the source, or get the
binary release for apache 2.0.47.


I am mapping through mod_jk, so the error I get is
the Apache Internal
Server Error.  The Tomcat process is dead, so there
is no tomcat error
page.


Hope this helps

/mde/

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mysterious failures

2005-05-24 Thread Grant Ingersoll

Thanks for the ideas.  I cranked my debugging up to 99.

There are a couple of things that I see, but don't know if they are 
serious:
1. SEVERE: The scratchDir you specified: 
/development/jakarta-tomcat-5.0.28/work/Catalina/localhost/admin is 
unusable.

 -- I never set this, I am assuming it is the default

2. WARNING: Duplicate name in Manifest: Class-Path
-- I think this is due to some JAR in struts

3. In the apache log I get warnings about compiling mod_jk with EAPI on

I am mapping through mod_jk, so the error I get is the Apache Internal 
Server Error.  The Tomcat process is dead, so there is no tomcat error 
page.


I am using struts, I will am pretty sure I am returning everything to 
the pool.  I have a top level servlet filter that logs all exceptions, 
including Throwable all to no avail.


It seems to crash at random, but mostly b/c I am not always aware of 
when it crashes.  Today, after rebooting, it didn't even start up, but 
then started fine when I called startup.sh


-Grant

On May 22, 2005, at 9:51 PM, Steve Kirk wrote:



What is your actual logging config?

Hazy memory, but don't you want debug=99 rather than debug=1 to get 
more

detail?

If you really can't get logging to work, you could insert
System.out.println(blah) statements at key points around where you 
think
the crash might be caused, in lieu of your log statements.  Not pretty 
but

it can get you results.

Some Qs to narrow it down a bit:

Is the crash triggered by a single type of request, or maybe a burst of
traffic, or will it crash even with no requests?

Is the crashing request direct to TC or via apache httpd?

Is a TC html error page generated, what does it say?

Do you start any of your own threads?

Does your code always return pooled objects to the pool?


Is there some app that people use to make sure the server stays up by
checking it every so often and restarting if needed?


I've never come across that.  TC is pretty reliable, shouldn't need it 
IMHE.



-Original Message-
From: Grant Ingersoll [mailto:[EMAIL PROTECTED]
Sent: Monday 23 May 2005 02:39
To: tomcat-user@jakarta.apache.org
Subject: Mysterious failures


Hi,

Have been a long time user of TC, but first time poster.

I am running 5.0.28 on OS X with PostgreSQL and Struts and connecting
to Apache using mod_jk.  I have a webapp deployed that is pretty
mature.  However, I am having some mysterious crashes of Tomcat that I
haven't been able to get my head around.  The whole process is dying
w/o so much as a peep.  Not one single log/exception is being written
anywhere (as far as I know) that gives even the most remote clue as to
why and I am at a loss for how to get at the problem.

Here is what I have done to date:
1. Put a catch (Throwable) with a log message at my top level part of
the servlet that logs the exception and then throws it out.

2. I have turned on DEBUG level logging for every piece of
the application

3. I have set debug=1 everywhere I could in server.xml

Anyone have any suggestions on what else to do for debugging this?
Part of me feels that it might be JDBC related as I am not using the
Tomcat JNDI lookup methods for getting connections (but am managing a
pool myself).  Should I be using the JNDI lookup methods for getting
connections?  My only other guess was that it seems to happen after it
has been running for a little while and I thought it might have
something to do with the session timeout stuff, but I can't see why
that would cause the process to exit.

Is there some app that people use to make sure the server stays up by
checking it every so often and restarting if needed?

Thanks for any advice,
Grant

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Mysterious failures

2005-05-22 Thread Grant Ingersoll
Hi,

Have been a long time user of TC, but first time poster.  

I am running 5.0.28 on OS X with PostgreSQL and Struts and connecting
to Apache using mod_jk.  I have a webapp deployed that is pretty
mature.  However, I am having some mysterious crashes of Tomcat that I
haven't been able to get my head around.  The whole process is dying
w/o so much as a peep.  Not one single log/exception is being written
anywhere (as far as I know) that gives even the most remote clue as to
why and I am at a loss for how to get at the problem.

Here is what I have done to date:
1. Put a catch (Throwable) with a log message at my top level part of
the servlet that logs the exception and then throws it out.

2. I have turned on DEBUG level logging for every piece of the application

3. I have set debug=1 everywhere I could in server.xml

Anyone have any suggestions on what else to do for debugging this? 
Part of me feels that it might be JDBC related as I am not using the
Tomcat JNDI lookup methods for getting connections (but am managing a
pool myself).  Should I be using the JNDI lookup methods for getting
connections?  My only other guess was that it seems to happen after it
has been running for a little while and I thought it might have
something to do with the session timeout stuff, but I can't see why
that would cause the process to exit.

Is there some app that people use to make sure the server stays up by
checking it every so often and restarting if needed?

Thanks for any advice,
Grant

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mysterious failures

2005-05-22 Thread Steve Kirk

What is your actual logging config?

Hazy memory, but don't you want debug=99 rather than debug=1 to get more
detail?

If you really can't get logging to work, you could insert
System.out.println(blah) statements at key points around where you think
the crash might be caused, in lieu of your log statements.  Not pretty but
it can get you results.

Some Qs to narrow it down a bit:

Is the crash triggered by a single type of request, or maybe a burst of
traffic, or will it crash even with no requests?

Is the crashing request direct to TC or via apache httpd?

Is a TC html error page generated, what does it say?

Do you start any of your own threads?

Does your code always return pooled objects to the pool?

 Is there some app that people use to make sure the server stays up by
 checking it every so often and restarting if needed?

I've never come across that.  TC is pretty reliable, shouldn't need it IMHE.

 -Original Message-
 From: Grant Ingersoll [mailto:[EMAIL PROTECTED] 
 Sent: Monday 23 May 2005 02:39
 To: tomcat-user@jakarta.apache.org
 Subject: Mysterious failures
 
 
 Hi,
 
 Have been a long time user of TC, but first time poster.  
 
 I am running 5.0.28 on OS X with PostgreSQL and Struts and connecting
 to Apache using mod_jk.  I have a webapp deployed that is pretty
 mature.  However, I am having some mysterious crashes of Tomcat that I
 haven't been able to get my head around.  The whole process is dying
 w/o so much as a peep.  Not one single log/exception is being written
 anywhere (as far as I know) that gives even the most remote clue as to
 why and I am at a loss for how to get at the problem.
 
 Here is what I have done to date:
 1. Put a catch (Throwable) with a log message at my top level part of
 the servlet that logs the exception and then throws it out.
 
 2. I have turned on DEBUG level logging for every piece of 
 the application
 
 3. I have set debug=1 everywhere I could in server.xml
 
 Anyone have any suggestions on what else to do for debugging this? 
 Part of me feels that it might be JDBC related as I am not using the
 Tomcat JNDI lookup methods for getting connections (but am managing a
 pool myself).  Should I be using the JNDI lookup methods for getting
 connections?  My only other guess was that it seems to happen after it
 has been running for a little while and I thought it might have
 something to do with the session timeout stuff, but I can't see why
 that would cause the process to exit.
 
 Is there some app that people use to make sure the server stays up by
 checking it every so often and restarting if needed?
 
 Thanks for any advice,
 Grant
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]