Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Can't get simple servlet to work

Can't get simple servlet to work

From: Peter Chatterton <peter_at_chatterton.name>
Date: Fri, 10 Jan 2003 15:18:22 -0500
Message-ID: <dUFT9.5628$IC6.567383@news20.bellglobal.com>


I created a servlet similar to IsItWorking as follow:

    package xmlagency;
    import ch06.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class XAGServlet extends HttpServlet {

        public static final String TITLE = "Yes, It's working!";
        public void service (HttpServletRequest request, HttpServletResponse
response)
            throws ServletException, IOException
    and the rest is unchanged.
and I copied it to the same dir that IsItWorking is in. I checked this by changing IsItWorking.

Normally

    http://localhost/servlet/IsItWorking/ works.

But:

    http://localhost/servlet/XAGServlet/ Gives:

    "The requested URL /servlet/XAGServlet was not found on this server."

jserv.log has:
[10/01/2003 20:06:25:724] (ERROR) ajp12: Servlet Error:
NoClassDefFoundError: XAGServlet

error.log has:
[Fri Jan 10 15:07:22 2003] [error] [client 127.0.0.1] File does not exist:
c:/orant9i/apache/apache/htdocs/jserv/status

Any help would be much appreciated.
Peter. Received on Fri Jan 10 2003 - 14:18:22 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US