Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to check Tomcat Exceptions?

 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Stu Thompson
Hooplehead
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look under tomcat/logs.
Whatever problem it is having should be show up in one of the log files in that directory.
 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it run OK with the SSL connector entry commented out?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic