This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat hangs up

 
amit kr
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are using Tomcat server.
Our tomcat server stops unexpectedly.We found that when ever we forget to close the database connection it happens.
Now we are taking full care of that.
Still our tomcat unexpectedly stops.
Can some one tell me why this happens.
Where should i look for it.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i would look for more info in the logs...
specifically, what was the last page accessed
and what components are involved in accessing
that page. without more detail, its difficult
to say...
- satya
 
amit kr
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks satya

I am pasting all the three log files below:
I have seperated them through /////////////.
Kindly go through this.
tomcat.log have the following inf.//////////////////////////////////////////////////////////
Context log: path="/examples" Adding context path="/examples" docBase="webapps/examples"
Context log: path="" Adding context path="" docBase="webapps/ROOT"
Context log: path="/test" Adding context path="/test" docBase="webapps/test"
Starting tomcat install="./.." home="/usr/home/ideaspc/usr/local/jakarta-tomcat" classPath=".:./../lib/ant.jar:./../lib/jasper.jar:./../lib/mysql_comp.jar:./../lib/mysql_uncomp.jar:./../lib/servlet.jar:./../lib/test:./../lib/webserver.jar:./../lib/xml.jar:/usr/ local/jdk1.1.8/classes:/usr/local/jdk1.1.8/lib/classes.jar:/usr/local/jdk1.1.8/lib/rt.jar:/usr/local/jdk1.1.8/lib/i18n.jar:/usr/local/jdk1.1.8/lib/classes.zip"
Context log: path="/admin" Automatic context load docBase="/usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/admin"
Context log: path="/admin" Adding context path="/admin" docBase="/usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/admin"
Starting endpoint port="8080" handler="org.apache.tomcat.service.http.HttpConnectionHandler"
Starting endpoint port="8007" handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
Context log: path="/examples" Error in default service() : Broken pipe
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.write(SocketOutputStream.java:71)
at org.apache.tomcat.service.http.HttpResponseAdapter.sendStatus(HttpResponseAdapter.java:141)
at org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders(HttpResponseAdapter.java:111)
at org.apache.tomcat.core.BufferedServletOutputStream.sendHeaders(BufferedServletOutputStream.java:127)
at org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServletOutputStream.java:239)
at org.apache.tomcat.core.BufferedServletOutputStream.write(BufferedServletOutputStream.java:186)
at org.apache.tomcat.servlets.DefaultServlet.serveStreamAsStream(DefaultServlet.java:363)
at org.apache.tomcat.servlets.DefaultServlet.serveStream(DefaultServlet.java:350)
at org.apache.tomcat.servlets.DefaultServlet.serveFile(DefaultServlet.java:314)
at org.apache.tomcat.servlets.DefaultServlet.doGet(DefaultServlet.java:218)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java)
Context log: path="/examples" <b>Internal Servlet Error:</b><br>
<pre>
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.write(SocketOutputStream.java:71)
at org.apache.tomcat.service.http.HttpResponseAdapter.sendStatus(HttpResponseAdapter.java:141)
at org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders(HttpResponseAdapter.java:111)
at org.apache.tomcat.core.BufferedServletOutputStream.sendHeaders(BufferedServletOutputStream.java:127)
at org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServletOutputStream.java:239)
at org.apache.tomcat.core.BufferedServletOutputStream.write(BufferedServletOutputStream.java:186)
at org.apache.tomcat.servlets.DefaultServlet.serveStreamAsStream(DefaultServlet.java:363)
at org.apache.tomcat.servlets.DefaultServlet.serveStream(DefaultServlet.java:350)
at org.apache.tomcat.servlets.DefaultServlet.serveFile(DefaultServlet.java:314)
at org.apache.tomcat.servlets.DefaultServlet.doGet(DefaultServlet.java:218)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java)
</pre>
Context log: path="/examples" Broken pipe /examples/jsp/fsltechnologies/images/home.jpg
Context log: path="/examples" Error in default service() : Broken pipe
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
at org.apache.tomcat.service.http.HttpResponseAdapter.doWrite(HttpResponseAdapter.java:146)
at org.apache.tomcat.core.BufferedServletOutputStream.doWrite(BufferedServletOutputStream.java:122)
at org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServletOutputStream.java:249)
at org.apache.tomcat.core.BufferedServletOutputStream.write(BufferedServletOutputStream.java:186)
at org.apache.tomcat.servlets.DefaultServlet.serveStreamAsStream(DefaultServlet.java:363)
at org.apache.tomcat.servlets.DefaultServlet.serveStream(DefaultServlet.java:350)
at org.apache.tomcat.servlets.DefaultServlet.serveFile(DefaultServlet.java:314)
at org.apache.tomcat.servlets.DefaultServlet.doGet(DefaultServlet.java:218)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)

sevlet.log have the following inf////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Context log path="/examples" :tomcat.errorPage: init
Context log path="/examples" :default: init
Context log path="/examples" :jsp: init
Context log path="/test" :tomcat.errorPage: init
Context log path="/test" :default: init
Context log path="/test" :jsp: init
Context log path="/admin" :tomcat.errorPage: init
Context log path="/admin" :default: init
Context log path="/admin" :jsp: init
Context log path="" :tomcat.errorPage: init
Context log path="" :default: init
Context log path="" :jsp: init

jasper.log have the following inf///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

<JASPER_LOG> Tue Aug 21 19:51:35 MDT 2001 Scratch dir for the JSP engine is: /usr/home/ideaspc/usr/local/jakarta-tomcat/work/localhost_8080%2Fexamples</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:51:35 MDT 2001 IMPORTANT: Do not modify the generated servlets</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:52:44 MDT 2001 JspEngine --> /jsp/fsltechnologies/project3.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:52:44 MDT 2001 ServletPath: /jsp/fsltechnologies/project3.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:52:44 MDT 2001 PathInfo: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:52:44 MDT 2001 RealPath: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/jsp/fsltechnologies/project3.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:52:44 MDT 2001 RequestURI: /examples/jsp/fsltechnologies/project3.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:52:44 MDT 2001 QueryString: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:52:44 MDT 2001 Request Params: </JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:52:44 MDT 2001 B1 = Login</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:52:44 MDT 2001 T3 = santosh</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:52:44 MDT 2001 T2 = santosh</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:52:44 MDT 2001 T1 = 107</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:52:44 MDT 2001 Classpath according to the Servlet Engine is: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/WEB-INF/classes</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:53:27 MDT 2001 JspEngine --> /jsp/lawplus/home.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:53:27 MDT 2001 ServletPath: /jsp/lawplus/home.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:53:27 MDT 2001 PathInfo: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:53:27 MDT 2001 RealPath: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/jsp/lawplus/home.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:53:27 MDT 2001 RequestURI: /examples/jsp/lawplus/home.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:53:27 MDT 2001 QueryString: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:53:27 MDT 2001 Request Params: </JASPER_LOG>
<JASPER_LOG> Tue Aug 21 19:53:27 MDT 2001 Classpath according to the Servlet Engine is: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/WEB-INF/classes</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:15 MDT 2001 JspEngine --> /jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:15 MDT 2001 ServletPath: /jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:15 MDT 2001 PathInfo: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:15 MDT 2001 RealPath: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:15 MDT 2001 RequestURI: /examples/jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:15 MDT 2001 QueryString: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:15 MDT 2001 Request Params: </JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:15 MDT 2001 Classpath according to the Servlet Engine is: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/WEB-INF/classes</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:39 MDT 2001 JspEngine --> /jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:39 MDT 2001 ServletPath: /jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:39 MDT 2001 PathInfo: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:39 MDT 2001 RealPath: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:39 MDT 2001 RequestURI: /examples/jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:39 MDT 2001 QueryString: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:39 MDT 2001 Request Params: </JASPER_LOG>
<JASPER_LOG> Tue Aug 21 21:57:39 MDT 2001 Classpath according to the Servlet Engine is: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/WEB-INF/classes</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:15:57 MDT 2001 JspEngine --> /jsp/fsltechnologies/project3.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:15:57 MDT 2001 ServletPath: /jsp/fsltechnologies/project3.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:15:58 MDT 2001 PathInfo: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:15:58 MDT 2001 RealPath: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/jsp/fsltechnologies/project3.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:15:58 MDT 2001 RequestURI: /examples/jsp/fsltechnologies/project3.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:15:58 MDT 2001 QueryString: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:15:58 MDT 2001 Request Params: </JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:15:58 MDT 2001 B1 = Login</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:15:58 MDT 2001 T3 = santosh</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:15:58 MDT 2001 T2 = santosh</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:15:58 MDT 2001 T1 = 107</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:15:58 MDT 2001 Classpath according to the Servlet Engine is: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/WEB-INF/classes</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:08 MDT 2001 JspEngine --> /jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:08 MDT 2001 ServletPath: /jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:08 MDT 2001 PathInfo: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:08 MDT 2001 RealPath: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:08 MDT 2001 RequestURI: /examples/jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:08 MDT 2001 QueryString: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:08 MDT 2001 Request Params: </JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:08 MDT 2001 Classpath according to the Servlet Engine is: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/WEB-INF/classes</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:38 MDT 2001 JspEngine --> /jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:38 MDT 2001 ServletPath: /jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:38 MDT 2001 PathInfo: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:38 MDT 2001 RealPath: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:38 MDT 2001 RequestURI: /examples/jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:38 MDT 2001 QueryString: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:38 MDT 2001 Request Params: </JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:30:38 MDT 2001 Classpath according to the Servlet Engine is: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/WEB-INF/classes</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:50:16 MDT 2001 JspEngine --> /jsp/fsl1/showvacancy.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:50:16 MDT 2001 ServletPath: /jsp/fsl1/showvacancy.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:50:16 MDT 2001 PathInfo: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:50:16 MDT 2001 RealPath: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/jsp/fsl1/showvacancy.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:50:16 MDT 2001 RequestURI: /examples/jsp/fsl1/showvacancy.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:50:16 MDT 2001 QueryString: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:50:16 MDT 2001 Request Params: </JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:50:16 MDT 2001 Classpath according to the Servlet Engine is: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/WEB-INF/classes</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:53:28 MDT 2001 JspEngine --> /jsp/fsl1/showvacancy.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:53:28 MDT 2001 ServletPath: /jsp/fsl1/showvacancy.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:53:28 MDT 2001 PathInfo: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:53:28 MDT 2001 RealPath: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/jsp/fsl1/showvacancy.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:53:28 MDT 2001 RequestURI: /examples/jsp/fsl1/showvacancy.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:53:28 MDT 2001 QueryString: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:53:28 MDT 2001 Request Params: </JASPER_LOG>
<JASPER_LOG> Tue Aug 21 22:53:28 MDT 2001 Classpath according to the Servlet Engine is: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/WEB-INF/classes</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 23:06:40 MDT 2001 JspEngine --> /jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 23:06:40 MDT 2001 ServletPath: /jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 23:06:40 MDT 2001 PathInfo: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 23:06:40 MDT 2001 RealPath: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 23:06:40 MDT 2001 RequestURI: /examples/jsp/scm/login.jsp</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 23:06:40 MDT 2001 QueryString: null</JASPER_LOG>
<JASPER_LOG> Tue Aug 21 23:06:40 MDT 2001 Request Params: </JASPER_LOG>
<JASPER_LOG> Tue Aug 21 23:06:40 MDT 2001 Classpath according to the Servlet Engine is: /usr/home/ideaspc/usr/local/jakarta-tomcat/webapps/examples/WEB-INF/classes</JASPER_LOG>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic