tomcat stops randomly. why??
Hi All, I have installed Apache Tomcat 4.0.4 web server to my computer. Tomcat is running as a service on this NT machine. But sometimes it does not respond. I have no explanation for it. I looked at the log files to find out sth. The only thing that I found is in the localhost_examples_log.2002-08-13.txt file. There is a recurring error. But the time that the error occur at is not the time that the server is unreacheable. (In the services window it is seemed as working properly.) What may the reason for this problem? --The following error --NT machine --High Load(In fact load is not so high) --Or what ??? Thanks in advance, Serdar By the way the error is that is in localhost_examples_log.2002-08-13.txt : !--StartFragment--2002-08-13 20:58:36 StandardWrapperValve[default]: Servlet.service() for servlet default threw exception java.net.SocketException: Connection aborted by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java:674) at org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseBase.java:764) at org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:647) at org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:312) at org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponseStream.java:189) at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1903) at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1652) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1197) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:484)
how to deny directory listing
hi, I want to deny users to see the content of a folder under webapps\ROOT. What should I do? Thanks, Serdar
I cannot access my site over https
Hi, I installed SSL on my apache tomcat 4.0.4 web server and I was able to access the site over https. But now I cannot access. Some changes are done to the machine and web server. For instance iPlanet is installed and as a second change there are two hosts on tomcat... I can access the secure page on the local machine (not https://localhost, but https://www.sth.com) but the same url (https://www.sth.com) does not displayed when called from another machine. What may be the reasons , thanks in advance, serdar
sevlets and applets
hi, i have a question about servlets. in my applet I use showdocument method to open a servlet in a new browser window. this servlet reads the contents of a file that user choose. this servlet needs the send the content of the file to the applet but since showdocument is used out.println() command in the servlet shows the content in the browser window. I may use urlconnection.connect() in applet to call the servlet but this time the wizard for file choosing will not be displayed. (servlet displays a form in doGet method and get the contents of the form in doPost method and at the end of the doPost method result must be given to the applet.) my question is with showdocument method of applet can i get the result of a servlet. (i know quite an awkward question but i was not able to write more simpler) thanks in advance, serdar
how can a client upload file via an applet
hello, i am trying to write an applet that has an file upload service. Users will able to give the full path of their files to the applet (c:\files\file1.txt for instance) as input and applet will going to get the contents of this file and write the content to the database which is in the server. how can i accomplish this task? thanks in advance, serdar
create a new port in tomcat
hello, i need to open a new port and map a project (context) to this port. I think i will make some changes in connectors and contexts but i do not know the exact solution please help me with an example thanks in advance.. serdar
access files under WEB-INF ??
hello to everyone can I access a directory under WEB-INF in tomcat. For instance can I access c:\root\WEB-INF\project (I can access lib and classes directory of WEB-INf indirectly when I call a servlet, etc. but what about other folders under WEB-INF?) thanks in advance, serdar.
Two Questons about Tomcat
Hi, I have two questions about tomcat. 1. Can I access from browser to a folder under the WEB-INF folder. 2. How can I add another server (on port 85 for instance) in Tomcat thanks in advance, Serdar
Accessing jar out of webapps/ROOT/WEB-INF/lib directory
Hi, I am currently working on a project. I want to install this project under c:\root in my computer. in c:\root\servlet\servlet.jar there are my servlets. and I want to call these servlets like the following url: http://localhost/servlet/hello (there is hello.class in c:\root\servlet\servlet.jar) When I put them webapps\root\web-inf\lib it works, but now it does not. What configuration changes do I need to make? Thanks in advance Serdar BOZDA Computer Engineer MobiPath Information Technologies Istanbul/TURKEY Tel : +90 212 213 4975 Fax: +90 212 213 7361
accesing jar files
Hello, I want to run a servlet that is in a jar file that is outside of the tomcat webapps directory. Is it possible and how? for instance jar file is in c:\root whereas tomcat is installed in c:\program files\apache tomcat 4.0 Thanks in advance, serdar
Accessing jar out of webapps/ROOT/WEB-INF/lib directory
Hi, I am currently working on a project. I want to install this project under c:\root in my computer. in c:\root\servlet\servlet.jar there are my servlets. and I want to call these servlets like the following url: http://localhost/servlet/hello (there is hello.class in c:\root\servlet\servlet.jar) When I put them webapps\root\web-inf\lib it works, but now it does not. What configuration changes do I need to make? Thanks in advance Serdar BOZDA Computer Engineer MobiPath Information Technologies Istanbul/TURKEY Tel : +90 212 213 4975 Fax: +90 212 213 7361