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 -> Re: Can't get simple servlet to work

Re: Can't get simple servlet to work

From: Peter Chatterton <peter_at_chatterton.name>
Date: Fri, 10 Jan 2003 17:54:38 -0500
Message-ID: <JaIT9.5738$IC6.590020@news20.bellglobal.com>


UPDATE
I took out the package declaration, called it XAGServlet2, and it works!

    http://localhost/servlet/XAGServlet2/ But I don't know why.
Should I take this to a Java group?

> UPDATE
> The error msg has changed from NoClassDefFoundError to
> ClassNotFoundException.
> [10/01/2003 20:37:14:562] (ERROR) ajp12: Servlet Error:
> ClassNotFoundException: xmlagency.XAGServlet
> I didn't mention that I'm running Oracle 9iAS on win2K.
> This uses Apache and JServ.
>
> > UPDATE
> > I just tried:
> > http://localhost/servlet/xmlagency.XAGServlet/
> > and it doesn't work either.
> >
> > "Peter Chatterton" <peter_at_chatterton.name> wrote in message
> > news:dUFT9.5628$IC6.567383_at_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 - 16:54:38 CST

Original text of this message

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