----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

What I mean is: if your servlet looks something like this:


package mycom.myprojects.myservlets;

import ...

public class Hello extends HttpServlet {
...
}


THEN you must use the fully qualified name
HOST:PORT/myzone/mycom.myprojects.myservlets.Hello
to access it, if the servlet is not part of a package,
then
HOST:PORT/myzone/Hello
would do.

If this is not the problem you have, I'm sorry for the
confusion,
        Andy


> Andy,
> 
> What is my servlet is NOT part of a package ?
> That is my present scenario ! i just am writing a simple servlet
> printing some session variables. It dosen't work !
> 
> Andreas Deller wrote:
> 
> > ----------------------------------------------------------------
> > BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> > WHEN YOU POST, include all relevant version numbers, log files,
> > and configuration files.  Don't make us guess your problem!!!
> > ----------------------------------------------------------------
> >
> > The solution to Error 404 (File not found) could be easy: If your
> > servlets are part of a package, then you have to use the fully
> > qualified name in the browser.
> >
> > Example:
> >
> > Servlet 'Hello' is in the package mycom.myprojects.myservlets,
> > and you mounted the corresponding servlet zone to 'myzone',
> > then you have to access the servlet under
> > HOST:PORT/myzone/mycom.myprojects.myservlets.Hello
> >
> >         Andy
> > > Rob,
> > >
> > > I am having the same problem as Thad. I've had this problem for
> > > sometime now !! can't figure out why i get a 404 even though my
> > > class file is present. Also the same class file runs fine on Java Web
> > > Server and on the web server provided with JSWDK !
> >
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Archives and Other:  <http://java.apache.org/main/mail.html>
> > Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to