[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] Tomcat - doesn't work: either enters tight loop or 404's
- Subject: [cobalt-developers] Tomcat - doesn't work: either enters tight loop or 404's
- From: "Adam Thompson" <adamt@xxxxxxxxxx>
- Date: Thu Jul 12 03:01:36 2001
- Organization: Qunara
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
I've installed the Apache+Tomcat+JDK package from
http://developer.cobalt.com/java, and am experiencing two different,
odd, behaviours.
1) any servlets I load out of /home/sites/home/web/WEB-INF/classes
appear to _load_, but they then chew up CPU time forever and never
return (I left two web requests running for 45 minutes before killing
Tomcat)
2) any servlets I attempt to load out of any other site directory result
merely in **Tomcat** giving me 404 Not Found errors. I see the Ctx
lookup in the logfile, and it appears to be structured correctly. Note
that apparently I _can_ load servlets from WAR files, although they
behave as described above - they run forever without producing output.
Just in case, I've been testing with a sample servlet: HelloWorld
Here's HelloWorld.java:
===START===
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
/* import java.util.*; */
public class HelloWorld extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html><head><title>HelloWorld</title></head>");
out.println("<body><p>The servlet has received a GET. This is the
reply.</p></body></html>");
}
}
===END===
Any ideas on what would be causing the behaviour I've described?
Thanks
-Adam Thompson
Qunara
adamt@xxxxxxxxxx
(204) 925-3256 - office
(204) 932-0069 - fax