Richard,

I commented out some packages and it worked.  I then added them back in and
it now works.
I dont know why, does anybody have an answer??

thanks,
Will


-----Original Message-----
From: Richard Yee [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 18, 2001 12:52 PM
To: [EMAIL PROTECTED]
Subject: Re: servlet and java web server


Will,
One recommendation is to switch to Tomcat 3.3 or 4.0 from
www.jakarta.apache.org.  The Java Web Server is no longer supported by Sun
and is over 2 years old.  You will find better user support and more
up-to-date standards support (Servlet 2.3 and JSP 1.2) with Tomcat or
another current servlet container (JRun, JBoss, etc.)

As far as fixing your current problem, you might try what Geeta recommended
(implementing the doGet method), though I don't think that is your
problem.  If you do implement the doGet() method, I would suggest doing it
by just putting the code from your current doPost method into a method
called processRequest and then have both your doPost and doGet methods call
processRequest.

You should check to see if there is a servlet.properties file or some other
configuration file for JWS that maps servlet classes to alias names.  This
file might also have a mapping for the servlet directory.  You should also
check for any log files that might help describe what's going on further.

My best recommendation, though would be to upgrade to Tomcat.

Regards,

Richard


At 09:13 AM 11/18/2001 -0800, you wrote:
>hi,
>
>I created a simple servlet something similar to Hello World.  I placed the
>servlet in c:\javawebserver2.0\servlets directory.  Here is how I call it:
>http://localhost:8080/servlet/SimpleServlet
>
>I get an Not Found(404) error.
>
>Is there something else I need to do??  I can run the examples that come
>with Java Web Server 2.0.
>
>Here is the code:
>import java.io.*;
>import java.util.*;
>import javax.servlet.*;
>import javax.servlet.http.*;
>
>public class SimpleServlet extends HttpServlet
>{
>public void doPost(HttpServletRequest request, HttpServletResponse
response)
>
>         throws IOException, ServletException
>         {
>         response.setContentType("text/html");
>         PrintWriter out = response.getWriter();
>
>         try{
>         out.println("<html>");
>         out.println("hello World");
>         out.println("</html>");
>         out.close();
>         }catch(Exception e) {}
>         }
>}
>
>thanks,
>Will
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to