Start your tomcat instance with "catalina run" instead of "startup". This will make your tomcat run in the same console you invoke it from, and will let you its output when it stops :-)

[EMAIL PROTECTED] wrote:

That's a good Idea but the console window close when tomcat crash so nothing can be read. Can I redirect the console output to a file ?

Scrive Ben Souther <[EMAIL PROTECTED]>:



There is no stack trace in the console window when the server crashes?

Try putting a 'System.out.println("<page/servlet name>");' at the top of all

of your pages. Then you can see which page was the last one hit before the server crashed.



On Friday 07 November 2003 11:06 am, [EMAIL PROTECTED] wrote:


Thanks for your ideas.

I can see the console window but because the crash happens casually I


can't


see everytime the server screen and also reproduce the circumstances
because I can't understand which are.

The server crash only with my own app. and I don't have System.exit

For the same reason I can't understand which code create the problem.

Thanks again

Scrive Ben Souther <[EMAIL PROTECTED]>:


There is no console window, even when you start Tomcat with the
catalina.bat

file?

Can you reproduce the circumstances that caused it to crash? Does it
crash when you are hitting the exaple apps or only when you are hitting
your own app? If it's your own app, or a third party app, can you post
the code to the JSP/Servlet that was being hit when the server crashes? Do you have any


calls to System.exit(0) in your code?

On Friday 07 November 2003 10:48 am, [EMAIL PROTECTED] wrote:


Unfortunately when tomcat crash I can't see the console window.... so


I


don't have any message useful to start the debugging...

Scrive Anton Modaresi <[EMAIL PROTECTED]>:


do you get an exception in the console window? If the tomcat window
vanishes, you can try starting with the catalina batch file instead
of the startup batch file.

regards, anton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: den 7 november 2003 16:34
To: [EMAIL PROTECTED]
Subject: Tomcat crash




Hello, I'm new to Tomcat and Apache so I'm wasting a lot of time trying to understand why Tomcat sometimes shutdown by itself or better it crash.... This happen without messages in the log file .

can someone have some experience in that solved the problem ?


Thanks to all.





---------------------------------------------------------------------


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]


--
Ben Souther
F.W. Davison & Company, Inc.



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


--
Ben Souther
F.W. Davison & Company, Inc.



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



Reply via email to