aspose file tools*
The moose likes Tomcat and the fly likes How to Log Exceptions from the Tomcat Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to Log Exceptions from the Tomcat Server" Watch "How to Log Exceptions from the Tomcat Server" New topic
Author

How to Log Exceptions from the Tomcat Server

Chirag Jakharia
Greenhorn

Joined: Dec 03, 2003
Posts: 23
Software Installed
--------------------------
jakarta-tomcat-5.5.2
Windows 98SE
IE6.0SP1

Requirement
--------------------

I am trying to configure Tomcat Server to work as a Internet Server and so trying to configure it

When I try to access the server by typing the sites name in the IE the Exception is thrown. The Exception is quite large and I am not able to see the contents of the Error

So therefore I want to log all the Exceptions thrown

How to do that in Tomcat Version 5.5.2



According to me initially there is some exception and so the tomcat server attempts to restart ServerSocket but somehow it may not be able release the ServerSocket and at the same time a thread attempts to start the ServerSocket and so such Exception

If I get the log file I can post the whole of it and can get the answer quickly



Also the Exceptions thrown are


at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Dec 7, 2004 7:09:35 PM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
WARNING: Restarting endpoint
Dec 7, 2004 7:09:35 PM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
SEVERE: Endpoint null shutdown due to exception: java.net.BindException: Address already in use: JVM_Bind:8080
java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:264)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:441)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Dec 7, 2004 7:09:35 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.ThreadDeath) executing org.apache.tomcat.util.net.TcpWorkerThread@12c5431, terminating thread

Thanks in advance

CSJakharia
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Log Exceptions from the Tomcat Server