If you put your servlets in a directory other than
c:\websphere\appserver\servlets\, you have to make WebSpehere aware of that
fact in one of two ways. For example, if your servlet (named TestServlet
contained in a package myservlet so you refer to it as
myservlet.testServlet) sits in c:\websphere\appserver\servlets\myservlet,
than you need to call it as http://localhost/servlet/myservlet/TestServlet.
If that does not work, you can configure your servlet in the admin applet
that comes with WebSphere. You can access it through localhost:9257 (most
of the times, unless you changed the port - check prop files). There you
can call your servlet TestServlet and identify to WebSphere that your
servlet is contained in the package myservlet (type in
myservlet.TestServlet). Once you save it, you will be able to call your
servlet as http://localhost/servlet/TestServlet and WebSphere will make the
necessary association. I believe that your problem has to do with the fact
that you have not compiled your servlet as part of the myservlet package yet
you put it in such directory structure. Hope this helps.
-----Original Message-----
From: Yong Hu <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, November 01, 1999 8:30 PM
Subject: About IBM Websphere
>Hi,
> I am using IBM's Websphere as my servlet server. It's servlets phisical
>path is c:\websphere\appserver\servlets\ and virtual path
>is /servlet.I create my directory under c:\websphere\appserver\servlets\
>,such as myservlet and place my servlet (nameed Test.class) in it. When I
>use http://localhost/servlet/myservlet/Test to call the servlet.IE reports
>that it can't find the class.
> Why?How can I make it work well.
>
>Thanks in advance.
>Huyong
>
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
>
>___________________________________________________________________________
>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