tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Tomcat Service is stopped automatically???
Date Mon, 04 Aug 2008 12:25:14 GMT
Thangavel Sankaranarayanan wrote:
> Hi,
> Thanks ,
> 
> No information from logs(tomcat as well as applicatoin logs)
> 
> System Event logs shows:
> "The Apache Tomcat Service has terminated unexpectedly.It has done this 7
> time(s).The following Corrective Action will be taken in 0 milliseconds:No
> Action"
> 
"terminated unexpectedly" means "crashed".
That is not very useful, is it ?
At least, it eliminates one thing : that some other service or program 
(or user) would have nicely asked the Tomcat service to shut down.

Have you checked the "Application" log (in the same area as the Windows 
System log) ?

Apart from all that, there is another possibility, but you will have to 
go check in the Windows Registry.
You can open a Windows "command window" (also called sometimes "DOS 
window") and run Tomcat at the command-line, instead of as a service.
Chances are that if it crashes nastily, it will then show some error 
messages on the screen.

To do this, follow these steps :

1) edit the Windows Registry with the "Registry Editor" (at the 
command-level, enter "regedt32").
Be careful not to change any value, because editing the Registry is 
potentially dangerous.
2) This looks like an Explorer window.  On the left side, you will see a 
structure, much like a directory structure.
Find the key "HKEY_LOCAL_MACHINE", expand it, and keep doing this 
following the following path :
System..CurrentControlSet..Services..Tomcatx
3) when you click on the Tomcat key, then in the right panel you will 
see a series of key/value things.
One of the keys is "ImagePath".  Double-click on it, and it will open a 
dialog box.
4) Now make sure that you do not change the value. Just copy it with 
CTRL-C, then cancel and exit the Registry Editor.
What you have copied, is the command.line command that starts Tomcat.
Don't lose it.

Open Notepad, and paste the command there, you will need it later.

5) next, stop the Tomcat Service if it is running.
6) next, open a command window again, and paste the command that you 
have copied before.
(If the command contains a parameter like "//RS....", remove this 
parameter).

When you type the return key, this command will be executed, and this 
will run Tomcat in your command window.
If you type CTRL-C, Tomcat will stop.

For the users, it will be exatly the same as if Tomcat was running as a 
service.  But for you, you will see on the screen any error messages 
Tomcat prints.

The difference is that now Tomcat runs under the user-id under which you 
are logged-in on this machine.

So, let it run until it dies, and let's see if you get any error message.


Note that you cannot logoff from the machine, or of course Tomcat will die.


Below is an example of what I get in the command window when I run 
Tomcat (in this case, version 5.5) in the window :

C:\WINDOWS>C:\Tomcat5.5\bin\tomcat5.exe
04-Aug-2008 14:21:27 org.apache.catalina.core.AprLifecycleListener 
lifecycleEven
t
INFO: The Apache Tomcat Native library which allows optimal performance 
in produ
ction environments was not found on the java.library.path: 
C:\Tomcat5.5\bin;.;C:
\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Programs\KomodoIDE\4.0\;
C:\Programs\Komodo4.2\;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys
tem32\Wbem;C:\Programs\TortoiseSVN\bin;C:\programs\local;c:\programs\putty;C:\Pr
ograms\Subversion
04-Aug-2008 14:21:27 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
04-Aug-2008 14:21:27 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 360 ms
04-Aug-2008 14:21:27 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
04-Aug-2008 14:21:27 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
04-Aug-2008 14:21:27 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
04-Aug-2008 14:21:28 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
04-Aug-2008 14:21:28 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
04-Aug-2008 14:21:28 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16  config=null
04-Aug-2008 14:21:28 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
04-Aug-2008 14:21:28 org.apache.catalina.startup.Catalina start
INFO: Server startup in 578 ms

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message