If you haven't done so, you need to config your WEB-INF/web.xml. Read the
docs for such. Sample below (may be buggy)....
<servlet>
<servlet-name>MyExample</servlet-name>
<servlet-class>com.me.HelloWorldExample</servlet-class>
<run-as>
<description>Security role for anonymous access</description>
<role-name>tomcat</role-name>
</run-as>
</servlet>
<servlet-mapping>
<servlet-name>MyExample</servlet-name>
<url-pattern>/sachar/servlet/snoop</url-pattern>
</servlet-mapping>
puneet sachar
<puneetsachar@ya To: Tomcat Users List
<[EMAIL PROTECTED]>
hoo.com> cc:
Subject: guys plz..help..servlet not
responding
06/07/2002 01:00
PM
Please respond
to "Tomcat Users
List"
hi friends
well today i stuck..so badly..
Argentina lost..and ...i'm not solving a simple
..error
i might be ...doing some silly mistake
well ...
I made new app directory by name sachar
and new virtual host by name puneet
i'm not able to access the servlets from this , giving
me error 404 ..not avaliable , the resourse is not
avaliable.
******************************************
127.0.0.1 - - [07/Jun/2002:23:21:08 5050] "GET
/sachar/servlet/snoop HTTP/1.1" 404 636
******************************************
but when i do with local host i'm getting the servlet
my directory structure is like
webapps ----> sachar---->(all html and .jsp files)
|
|
WEB-INF ----> classes---(has all .class files)
and i'm calling this by
http://puneet:80/sachar/servlet/snoop
(the connector has been changed in server.xml file and
servlet mapping is also done in web.xml file)
and plz look at my server.xml file
======================================
<Context path="/sachar" docBase="sachar" debug="0"
reloadable="true"
crossContext="true">
========================================
why i'm not getting the servlet and error i'm geting
in the log file is this
Exception noClassfoundException
and
Cannot allocate servlet instance for path
/servlet/HelloWorldExample
javax.servlet.ServletException: Wrapper cannot find
servlet class HelloWorldExample or a class it depends
on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:871)
java.lang.ClassNotFoundException: HelloWorldExample
i know i'm lacking ...something ...
but i'm very tense today plz...help me
i have to make small project by monday and ...i'm
helpless
Plz..i need everyones help
Regards
Puneet
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
To unsubscribe, e-mail: <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>