Hello Ben Souther,
I am very thankful to you for helping me in previous queries.
i have configured
tomcat my webapp is in
d:\tomcat5.5\webapps\karthik
karthik - webapp
inside karthik i have web-inf, web-inf\classes
web-inf\web.xml
inside web-inf\classes\HelloWorld.class
but when i run the server and type
http:\\localhost:8080\servlet\HelloWorld
Pagenot found error comes
where as the default page http:\\localhost:8080 comes correctly.
Please help me wht are the otherthings to set
The error displayed is
Feb 13, 2005 9:26:21 AM org.apache.catalina.core.ApplicationContext log
SEVERE: invoker: Cannot allocate
servlet instance for path /servlet/HelloWorld
javax.servlet.ServletException: Wrapper cannot find servlet class HelloWorld ora class it depends on
MY WEB.XML IN WEBAPPS HAS THE FOLLOWING ENTRY
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>HelloWorld</servlet-class>
</servlet>
</web-app>
My D:\Tomcat 5.5\conf\Catalina\localhost\karthik.xml
contents
<?xml version="1.0" encoding="UTF-8"?>
<Context
docBase="karthik"
privileged="true"
reloadable="true"
path="/karthik">
<ResourceLink
global="UserDatabase"
name="users"
type="org.apache.catalina.UserDatabase"/>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>META-INF/context.xml</WatchedResource>
</Context>
PLEASE HELP ME
THANKS IN ADVANCE..