Forgive me if I repeat stuff you already know, but anyhow....
What package a class is in is not the same as what directory it is in. Just
because your class is is the /home03/zhangxs/bbn/servlets/ directory, it
doesn't follow that it is in the home03.zhangxs.bbn.servlets.aibd package -
check the package line in your source file. If your class is in say the
com.compay.product package, you simply map this class to your servlet name,
e.g (this is in your web.xml):
<servlet>
<servlet-name>Servlet</servlet-name>
<servlet-class>com.company.product.MyServlet</servlet-class>
</servlet>
This servlet would then be avaliable as http://host/webapp/servlet/Servlet.
Bear in mind, this servlet's class would be in the
WEB-INF/classes/com/company/product directory under your webapp directory
(or in your webapp's war file).
sam
----- Original Message -----
From: "Xuesong Zhang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 8:28 AM
Subject: How to invoke a servlet which is in a package on iPlanet Web serv
er 4.01 platform?
I want to use a servlet which is in a package.For example,
http: /10.251.9.194/servlet/aibd.GetService
servlet is mapping to /home03/zhangxs/bbn/servlets.
but the servlet can not be invoked.
I read the errors file as following:
[02/ 7��/2001:17:06:35] warning (19620):
requested file not found
(uri=/servlet/aibd.GetService,
filename=/home03/zhangxs/bbn/servlets/aibd.GetService)
html invoking statement is as following:
<frame src="/servlet/aibd.GetService>
I already set the CLASSPATH env variable.
I think it should be applied using servlet of a package.
Maybe I missed some setting.
I hope u can help me.
Thanks in advance.
___________________________________________________________________________
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