RE: please help me
First thing to do is look at the log. tomcat 4 is much better at logging than version 3. If you did not chnge the logging entry in the server.xml the examples log file will show details about what is happening when your webapp (context as Tomcat4 calls it) is loaded. If you simply see an entry about what is expected in a web.xml the most likely thing is that you have servlet-mapping entries mixed in among your servlet entries. Now all the servlet mapping must appear after all the servlet entries. The parameter icon has changed to become small or large - again look at the log for details. Another thing we noticed in Windows (if that is your platform) was that in Tomcat 3 the WEB-INF directory name could be lower case, Tomcat 4 insists that it must be upper case. hope this helps, Jon G-S -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Janarthanan, Prasanna Sent: 14 April 2002 14:04 To: '[EMAIL PROTECTED]' Subject: please help me we have our web application running with tomcat 3.2.3. It is working fine but now iam upgradin to tomcat 4.0. here i face problem in context of server.xml. I have written the context in server.xml. I wonder whether it has any touch with the web.xml file of my web application. coz the examples given in tomcat 4 has a web.xml file which has some large contents which i don't have it in web.xml file of my web application. but with my own web.xml itself it was working fine with tomcat 3.2.3. please calrify me where i need to make changes for this tomcat 4 to work with my web application.. probably u can help in the best way.. as i saw ur mail in tomcat user list as u are very well working with tomcat 4.0.2. please help me out. prassana deshaw india software pvt limited. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] ___ tomcat-users mailing list [EMAIL PROTECTED] https://mailman.real-time.com/mailman/listinfo/tomcat-users -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: please help me
First thing to do is look at the log. tomcat 4 is much better at logging than version 3. If you did not change the logging entry in the server.xml the examples log file will show details about what is happening when your webapp (context as Tomcat4 calls it) is loaded. If you simply see an entry about what is expected in a web.xml the most likely thing is that you have servlet-mapping entries mixed in among your servlet entries. Now all the servlet mapping must appear after all the servlet entries. The parameter icon has changed to become small or large - again look at the log for details. Another thing we noticed in Windows (if that is your platform) was that in Tomcat 3 the WEB-INF directory name could be lower case, Tomcat 4 insists that it must be upper case. hope this helps, Jon G-S -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Janarthanan, Prasanna Sent: 14 April 2002 14:04 To: '[EMAIL PROTECTED]' Subject: please help me we have our web application running with tomcat 3.2.3. It is working fine but now iam upgradin to tomcat 4.0. here i face problem in context of server.xml. I have written the context in server.xml. I wonder whether it has any touch with the web.xml file of my web application. coz the examples given in tomcat 4 has a web.xml file which has some large contents which i don't have it in web.xml file of my web application. but with my own web.xml itself it was working fine with tomcat 3.2.3. please calrify me where i need to make changes for this tomcat 4 to work with my web application.. probably u can help in the best way.. as i saw ur mail in tomcat user list as u are very well working with tomcat 4.0.2. please help me out. prassana deshaw india software pvt limited. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] ___ tomcat-users mailing list [EMAIL PROTECTED] https://mailman.real-time.com/mailman/listinfo/tomcat-users -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Servlets bringing down Win2000 Server
Thanks for the thoughts which I'll pass on to the coder. My role is deployment and the thing that gets me is that this exact code has been working for years on various varieties of Unix without problem and for more for six months on NT4. What is in Win2000 which could make a difference. However I may be making some progress in that I did get something similar from a different stable to run last night, which gives me a chance to narrow down the problem area. I just wish I knew why the change of operating system could be having such an effect! Cheers Jon -Original Message- From: Joel Kozlow [mailto:[EMAIL PROTECTED]] Sent: 24 May 2001 17:49 To: '[EMAIL PROTECTED]' Subject: RE: Tomcat Servlets bringing down Win2000 Server Hmm... your problem really sounds code specific, not like a Tomcat issue. As a matter of fact, I have Win2K servers with IIS5 and Tomcat 3.2.1 running servlets that produce XML also. Some of my servlets return thousands of nodes as well. All of them run just fine. In order to help you, we really need to know exactly at what point your code gets hung. For example, does your servlet crash while writing to the outputStream? If so, what are you writing, and how much data is already committed? Is your servlet throwing any exceptions that might be trapped and inadvertently silenced? Thus, you need to provide more information. However, here are a few suggestions that might help you with your debugging effort: * Don't forget to call response.setContentType(text/html); * As soon as you call response.setContentType(text/html);, you have committed your output stream. This is a point of confusion for a lot of people. Thus, don't call this function until you are ready to write other output. * Since you are only writing text, try using a PrintWriter instead of just an outputStream. * Be sure to Flush the outputStream regularly * If you are not using an XML parser to write your output, don't forget to escape the XML tags. For example '' needs to be escaped to amp;, and other characters such as '', '', \, etc need to be escaped as well. I hope this helps, - Joel -Original Message- From: Jon Gibbs-Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 8:00 AM To: Tomcat-User Subject: Tomcat Servlets bringing down Win2000 Server Sorry sent in html earlier - We have been running a system of Servlets for some years on both Unix and NT4 platforms. I recently installed Tomcat 3.2.1 on a Win2000 server running IIS5. All appeared fine both on port 8080 and using the isapi_redirect and reading/writing to the sql 2000 database. BUT servlets producing xml cause the server to go into freefall. CPU usage goes off the scale for about 5 minutes and on several occasions it has died completely. I have tried Sun JRE 1.2.2 and IBM JRE 1.3 both with similar results. Any ideas / similar experiences anyone Thanks Jon GS
Tomcat Servlets bringing down Win2000 Server
We have been running a system of Servlets for some years on both Unix and NT4 platforms. I recently installed Tomcat 3.2.1 on a Win2000 server running IIS5. All appeared fine both on port 8080 and using the isapi_redirect and reading/writing to the sql 2000 database. BUT servlets producing xml cause the server to go into freefall. CPU usage goes off the scale for about 5 minutes and on several occasions it has died completely. I have tried Sun JRE 1.2.2 and IBM JRE 1.3 both with similar results. Any ideas / similar experiences anyone Thanks Jon GS
Tomcat Servlets bringing down Win2000 Server
Sorry sent in html earlier - We have been running a system of Servlets for some years on both Unix and NT4 platforms. I recently installed Tomcat 3.2.1 on a Win2000 server running IIS5. All appeared fine both on port 8080 and using the isapi_redirect and reading/writing to the sql 2000 database. BUT servlets producing xml cause the server to go into freefall. CPU usage goes off the scale for about 5 minutes and on several occasions it has died completely. I have tried Sun JRE 1.2.2 and IBM JRE 1.3 both with similar results. Any ideas / similar experiences anyone Thanks Jon GS - - - - - - - - - - - - - - - - - - - - - - - - Jon Gibbs-Smith Weft Technology Ltd.http://www.weft.co.uk tel: 01556 502497mobile: 07968 524239