wood burning stoves 2.0*
The moose likes Tomcat and the fly likes How to check Tomcat Exceptions? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to check Tomcat Exceptions?" Watch "How to check Tomcat Exceptions?" New topic
Author

How to check Tomcat Exceptions?

Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226
Hi,

I am trying to run tomcat but it has some problem in running and i am unable to check the exceptions.

When ever i tried to run it, it displays about "CATALINA VARIABLES" in console, then a new console window opens and start throwing exceptions. By the time i read those exception this window is close and i am again back to the previous window having "CATALINA VARIABLES" info.

How can i read exceptions. please help me.


The difference between <b>failure</b> and <b>success</b> is often being <b>right</b> and being <b>exactly right</b>.
Stu Thompson
Hooplehead
Ranch Hand

Joined: Jun 14, 2006
Posts: 136
Hi,

A few questions for you:

How are you starting tomcat?
Have you ever had it running before?
What version of tomcat on what OS?
Have you checked your {tomcat-home}/logs/ directory for a catalina log?

Stu
[ November 13, 2006: Message edited by: Stu Thompson ]

"This is not to say that design is unnecessary. But after a certain point, design is just speculation." --Philip Chu
Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226
yeah it was running earlier. I un-commented the tag to enable SSL on Tomcat. Then i ran it using either double clicking on startup.bat and then from DOS Prompt, typing the startup.bat and hit ENTER.

there is no log being created. The log will be created when i get my Tomcat in working condition but it is not.

I guess, you have realized that i am using it on MS Windows.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Look under tomcat/logs.
Whatever problem it is having should be show up in one of the log files in that directory.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226
Originally posted by Ben Souther:
Look under tomcat/logs.
Whatever problem it is having should be show up in one of the log files in that directory.


I have already wrote in my last message the there is no log being created or you can say that there is no clue that i got from the log files present in tomcat\logs.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Does it run OK with the SSL connector entry commented out?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12760
    
    5
The information you need is probably in the window that closes before you can read it. Change the last executable line in startup.bat from

to use run instead of start. Execute startup.bat from a command prompt and the window will stay open showing Tomcat starting messages.
Bill
Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226
Originally posted by Ben Souther:
Does it run OK with the SSL connector entry commented out?


yeah, it work fine if i comment out the SSL tag.

well, i am able to run the tomcat now even with SSL tag enabled. i figured out what the problem was by my guesses.

"but my question remained there that if such situation occurs what can we do? how to check error on console."
Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226
Originally posted by William Brogden:
The information you need is probably in the window that closes before you can read it. Change the last executable line in startup.bat from

to use run instead of start. Execute startup.bat from a command prompt and the window will stay open showing Tomcat starting messages.
Bill


to what should i change ? yeah that was the entry in startup.bat, and thinking exactly what you said, i used "pause" statement after the above mentioned line. but the problem is that when i run "startup.bat" from command prompt, it opens another window for tomcat. whatevery problem occurs is displayed in that window which closes immediately. how to stop that window.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

On Windows boxen, I prefer to install as a service with the tomcat.exe version. When installed this way, all output goes to the logs under the logs directory.

The Unix scripts send all output to the log files as well.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12760
    
    5
to what should i change ? yeah that was the entry in startup.bat, and thinking exactly what you said, i used "pause" statement after the above mentioned line. but the problem is that when i run "startup.bat" from command prompt, it opens another window for tomcat. whatevery problem occurs is displayed in that window which closes immediately. how to stop that window.


Change the word "start" to the word "run" in that line of the startup.bat file. Start causes execution in a new window, run causes execution to continue in the window that is already open.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to check Tomcat Exceptions?
 
Similar Threads
Problem starting tomcat with jdpa
Tomcat as a server & a container, how?
@404 error posting here
Tomcat to output to console?
tomcat window closes on startup