Tomcat dies on it own ??
I have an application that is running on tomcat. I have observed that if i bring up tomcat and leave it running without accessing the application for sometime , tomcat dies on it's own. The only thing i see in the logs is the following message about 5 or 6 times before it dies: 2001-04-05 04:39:49 - ContextManager: SocketException reading request, ignored - java.net.SocketExce ption: Connection reset by peer at java.net.PlainSocketImpl.socketAvailable(Native Method) at java.net.PlainSocketImpl.available(PlainSocketImpl.java:429) at java.net.SocketInputStream.available(SocketInputStream.java:141) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHand ler.java:214) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:479) can anybody provide some clues ?? I am running tomcat 3.2.1 on solaris. Thanks in advance Srini
RE: Fed up to the back teeth with tomcat !!!
I have the same problem. I am running tomcat 3.2.1 on solaris without apache. There is not much of a db activity going on. To me it looks as if tomcat dies even if there is no activity or hits after a while. >From the other messages , it looks like it is a bit more stable on Linux than other OSs. Srini -Original Message- From: Kevin Sangeelee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 11, 2001 4:27 PM To: [EMAIL PROTECTED] Subject: RE: Fed up to the back teeth with tomcat !!! And another, we're serving up > 5000 pages per day from our application (April stats), Tomcat has never crashed, and has run for well over a month without hitch (restarting Tomcat only necessary when the application gets updated). RH Linux 6, Tomcat 3.2.1, Apache 1.3.9, Sun JDK 1.2 Kevin On Wed, 11 Apr 2001, Randy Layman wrote: > > I have a success story to the contrary - using Windows NT 4, Tomcat > 3.2.1, and IIS 4 we are serving a decent sized application with no problems. > We've been averaging uptimes of about 5 - 6 days before the machine is > restarted because of other software on the machine. No detectable resource > loss, no crashes. >
Netfolio - Self promotion ??
Title: Netfolio - Self promotion ?? Can somebody at netfolio stop bombarding us with these messages ? Is this self promotion or what ?? This is more of a problem than the problem itself. -Original Message- From: NetFolio-AntiVirus-Wall [mailto:NetFolio-AntiVirus-Wall] Sent: Monday, May 14, 2001 3:11 PM To: [EMAIL PROTECTED] Subject: InterScan NT Alert Sender, NetFolio's Virus-Wall has detected virus(es) in your e-mail attachment. Date: Mon, 14 May 2001 18:11:21 -0400 (Eastern Daylight Time) Method: Mail From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> File: \'" + userName + "\'"); size=2>That resultset would contain the first record. But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem. If anybody has any ideas I would appreciate them resultSet = statement.executeQuery("SELECT * FROM userfolders WHERE username=\'" + userName + "\'"); dFolder = resultSet.getString("folder"); & Action: cleaned Virus: Email_Flaw_MIME_Tag_Overflow <><><><><><><><><><><><><><><><><><><><><>This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail. <><><><><><><><><><><><><><><><><><><><><>
question about load-on-startup
Title: question about load-on-startup Hi, I have a servlet which i want to load on startup. I have added the necessary line in thw web.xml file. This servlet reads a porperty file. I added this info as prams(name-value) in web.xml. However nothing seesms to be happening when i start tomcat. How do i check if the servlet has been loaded ?? What could be the problem. I am trying to use Tomcat in the standalone mode. Could this be an issue ?? Any help is appreciated. Srini
Unable to load servlet on startup ??
Title: Unable to load servlet on startup ?? Hi, I am trying to use Tomcat in a standalone mode. I have a working application under jrun and am trying to move it to Tomcat. I am trying to use my existing directory structure and hence am not using the /webapps/ path. I have a servlet which i need to load on startup. This servlet reads a properties files. I have this information (load-on-startup and param name/value) in the web.xml file in the conf directory. I have added a block in the server.xml file. I have all the necessary jars and class files in the CLASSPATH. However, when tomcat starts , i don't think the servlet is being loaded. How do i check if the servlet is loaded ?? What am i doing wrong ?? I donot see any errors in the log files. Any help is appreciated. Srini
RE: Unable to load servlet on startup ??
thanks for the reply. So how do i use the WEB-ING directory without putting my app under webapps ?? Srini -Original Message-From: Stefan Langer [mailto:[EMAIL PROTECTED]]Sent: Monday, February 05, 2001 4:02 PMTo: [EMAIL PROTECTED]Subject: RE: Unable to load servlet on startup ?? If you are using tomcat 3.2.1 or higher you have to move the web.xml file to the WEB-INF directory of your webapp since tomcat 3.2/.1 ignores the web.xml in the conf directory. Stefan
Include file in Jsp -recompile issue
Title: Include file in Jsp -recompile issue I have Jsp files which include other jsps. If the included jsp is changed Tomcat doesn't recompile the main jsp unless i go and touch the main jsp file. Is this a bug or is this configurable or am i just wrong ?? Srini
RE: Include file in Jsp -recompile issue
Title: Include file in Jsp -recompile issue My understanding was that there are two types of include: 1. one with the :include directive and 2. with the <%@ include file %> directive. I am using the second one , in which case it shd just include the file and make it into one big file. The parser shd be checking for the timestamp on this file. Under the Jrun engine they do get recompiled. Srini -Original Message-From: Filip Hanik [mailto:[EMAIL PROTECTED]]Sent: Tuesday, February 06, 2001 4:49 PMTo: [EMAIL PROTECTED]Subject: Re: Include file in Jsp -recompile issue Isn't the include a statement that gets executed during runtime.so if a sub page is changed, there is no need to recompile the main page. because the include will be dynamically executed. Filip ~Namaste - I bow to the divine in you~Filip HanikSoftware Architect[EMAIL PROTECTED]www.filip.net - Original Message - From: Srinivas Kurella To: '[EMAIL PROTECTED]' Sent: Tuesday, February 06, 2001 4:38 PM Subject: Include file in Jsp -recompile issue I have Jsp files which include other jsps. If the included jsp is changed Tomcat doesn't recompile the main jsp unless i go and touch the main jsp file. Is this a bug or is this configurable or am i just wrong ?? Srini
RE: Include file in Jsp -recompile issue
Title: Include file in Jsp -recompile issue Thanks for the info Charles. Will let you know if it doesn't work. Srini -Original Message-From: Charles Lee [mailto:[EMAIL PROTECTED]]Sent: Tuesday, February 06, 2001 5:28 PMTo: [EMAIL PROTECTED]Subject: RE: Include file in Jsp -recompile issue Srini, You need to use It will take care of your problem. If you couldn't get it work, you can call me or reply me. Charles Sr. Software Architect Hubstorm Corporation 650-641-8329 -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Srinivas KurellaSent: Tuesday, February 06, 2001 4:38 PMTo: '[EMAIL PROTECTED]'Subject: Include file in Jsp -recompile issue I have Jsp files which include other jsps. If the included jsp is changed Tomcat doesn't recompile the main jsp unless i go and touch the main jsp file. Is this a bug or is this configurable or am i just wrong ?? Srini
Jsp: page directive related question
Title: Jsp: page directive related question If a jsp includes another jsp and if both the jsps have 'page' directives in them, the jsp compiler complains. Is this as per spec ?? This is not an issue with some other jsp compilers/engines. Srini
context related classpath question -ASAP
Title: context related classpath question -ASAP Tomcat documentation says that all the jars under the WEB-INF/lib directory in a context are automatically added to the CLASSPATH. I am finding this not to be true. I have to add them explicitly to the CLASSPATH. Am i missing something ???
RE: context related classpath question -ASAP
Craig, Thanks for the clarification. I have a servlet to be loaded on startup which is looking for another class. They are in different jars under the same app. However the servlet can't see the class. Srini -Original Message-From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]Sent: Wednesday, February 07, 2001 5:13 PMTo: [EMAIL PROTECTED]Subject: Re: context related classpath question -ASAPSrinivas Kurella wrote: Tomcat documentation says that all the jars under the WEB-INF/lib directory in a context are automatically added to the CLASSPATH. This is not precisely what happens. I am finding this not to be true. I have to add them explicitly to the CLASSPATH. Am i missing something ???What happens is that classes in JAR files under WEB-INF/lib, and unpacked classes under WEB-INF/classes, are automatically made visible to other classes in the same web application. They are *not* added to the CLASSPATH environment variable, which makes sense when you remember that CLASSPATH is global to the entire JVM, but the set of classes visible to each webapp are unique to that webapp. Craig McClanahan
how to findout tomcat's status ?
Title: how to findout tomcat's status ? Hi, Is there any command/utility like "tomcat.sh status" that can tell a user if tomcat is already running ? I need this to write some installation scripts for my app. Thanks, Srini
tomcat status ??
Title: tomcat status ?? Is there a tool or utility to check the status of tomcat ? something like "tomcat.sh status" to find out if tomcat is up and running. I am trying to write an installation script for my app and i need to check the status before that. Thanks, Srini
CLASSPATH and Load-on-startup related issue ??
I have an application which is running under tomcat. However i donot use the 2.2 spec directory structure. I have a servlet that is loaded on startup. I explicitly set the CLASSPATH with all the jars needed. I am trying to move to the webapps/ directory structure where i can put all the jars under WEB-INF/lib. However the startup servlet fails with some class not found exception. Is the CLASSPATH variable ignored in this case ?? What could be the problem ?? The startup servlet is a class in a jar in WEB-INF/lib. Thanks Srini - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: CLASSPATH and Load-on-startup related issue - bug ??
Title: RE: CLASSPATH and Load-on-startup related issue - bug ?? Actually , it looks as if tomcat doesn't pick up the jars from the web-inf/lib directory. Once i added the jars explicitly to the classpath is worked. Is this a bug ??? Srini -Original Message- From: Srinivas Kurella Sent: Wednesday, February 28, 2001 12:32 PM To: '[EMAIL PROTECTED]' Subject: CLASSPATH and Load-on-startup related issue ?? I have an application which is running under tomcat. However i donot use the 2.2 spec directory structure. I have a servlet that is loaded on startup. I explicitly set the CLASSPATH with all the jars needed. I am trying to move to the webapps/ directory structure where i can put all the jars under WEB-INF/lib. However the startup servlet fails with some class not found exception. Is the CLASSPATH variable ignored in this case ?? What could be the problem ?? The startup servlet is a class in a jar in WEB-INF/lib. Thanks Srini - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: /servlet
Title: RE: /servlet Josh, I am not sure if i understand your problem completely , but you DONOT necessarily have to follow the webapp dir structure. This is what i do to make the /servlet work(porting from jrun to tomcat with minimum effort :)): 1. create a WEB-INF directory under your app directory and add the web.xml file to it. 2. add a context "" in the server.xml file with the docBase as your apps' root dir. 3. Add all the jars/classes explicitly to the CLASSPATH variable before running tomcat.sh to start tomcat. This shd work. Srini -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 28, 2001 12:35 PM To: [EMAIL PROTECTED] Subject: RE: /servlet Yes. Read the manual and it will explain how the direcotry structure has to work. Read the Servlet and/or JSP specification (which Tomcat is the reference implementation of) and you will find out how the directory structure is supposed to work. Look at the sample WEBAPPs that come with Tomcat and you will find out how the directory structure is supposed to work. Randy -Original Message- From: Josh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 28, 2001 3:55 PM To: [EMAIL PROTECTED] Subject: /servlet I'm beginning to thing no one knows the answer to this question. Can anyone help me? Does anyone currently have their setup as follows? As far as I can tell, tomcat doesn't have a way to just allow a /servlet directory so I can put all my .java, .class, and .jar files in like most servlet install files ask, am I missing something? It appears that I have to use the webapps directory, then have the WEB-INF directory structure below it. Is that right? Josh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: CLASSPATH and Load-on-startup related issue - bug ??
Title: RE: CLASSPATH and Load-on-startup related issue - bug ?? i am reposting this. I didn't get any responses. Does anybody have an answer ?? Thanks in advance. Srini -Original Message-From: Srinivas Kurella Sent: Wednesday, February 28, 2001 1:04 PMTo: '[EMAIL PROTECTED]'Subject: RE: CLASSPATH and Load-on-startup related issue - bug ?? Actually , it looks as if tomcat doesn't pick up the jars from the web-inf/lib directory. Once i added the jars explicitly to the classpath is worked. Is this a bug ??? Srini -Original Message----- From: Srinivas Kurella Sent: Wednesday, February 28, 2001 12:32 PM To: '[EMAIL PROTECTED]' Subject: CLASSPATH and Load-on-startup related issue ?? I have an application which is running under tomcat. However i donot use the 2.2 spec directory structure. I have a servlet that is loaded on startup. I explicitly set the CLASSPATH with all the jars needed. I am trying to move to the webapps/ directory structure where i can put all the jars under WEB-INF/lib. However the startup servlet fails with some class not found exception. Is the CLASSPATH variable ignored in this case ?? What could be the problem ?? The startup servlet is a class in a jar in WEB-INF/lib. Thanks Srini - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: CLASSPATH and Load-on-startup related issue - bug ??
Anuj, Do you have a servlet that is loaded on startup ? I have a feeling that to laod the servlet on startup , tomcat needs all the classes in the classpath, which forces me to put the jars in the classpath. I can't get to the jasper.log stage, if the startup servlet can't be loaded. Can somebody who knows the specs and the implementation please respond and clarify if this is a known bug . Thanks, Srini -Original Message-From: Anuj Agrawal [mailto:[EMAIL PROTECTED]]Sent: Wednesday, February 28, 2001 6:04 PMTo: [EMAIL PROTECTED]Subject: Re: CLASSPATH and Load-on-startup related issue - bug ??Actually, i believe tomcat does pick up the jars from the WEB-INF/lib directory. You might want to try looking in the jasper.log file in the logs directory. It should show something like: Classpath according to the Servlet Engine is: I'm using tomcat 3.2.1 - not sure if that makes a diff. Originally i thought i needed to add the jar files to classpath via the wrapper.properties file, but then i found that i didn't need to. Hope that helps. Anuj. Srinivas Kurella wrote: i am reposting this. I didn't get any responses. Does anybody have an answer ?? Thanks in advance.Srini -Original Message----- From: Srinivas Kurella Sent: Wednesday, February 28, 2001 1:04 PM To: '[EMAIL PROTECTED]' Subject: RE: CLASSPATH and Load-on-startup related issue - bug ?? Actually , it looks as if tomcat doesn't pick up the jars from the web-inf/lib directory. Once i added the jars explicitly to the classpath is worked. Is this a bug ??? Srini -Original Message- From: Srinivas Kurella Sent: Wednesday, February 28, 2001 12:32 PM To: '[EMAIL PROTECTED]' Subject: CLASSPATH and Load-on-startup related issue ?? I have an application which is running under tomcat. However i donot use the 2.2 spec directory structure. I have a servlet that is loaded on startup. I explicitly set the CLASSPATH with all the jars needed. I am trying to move to the webapps/ directory structure where i can put all the jars under WEB-INF/lib. However the startup servlet fails with some class not found exception. Is the CLASSPATH variable ignored in this case ?? What could be the problem ?? The startup servlet is a class in a jar in WEB-INF/lib. Thanks Srini - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]