Hi,
I am trying to execute a simple
Servlet but I am getting a "Requested Resource Not Available Error".
What I did was,
Installed
tomcat 5.5.15 and set the java_home and catalina_home respectively to jdk and tomcat directories.
Developed a html page and dropped it in rootdir/webapps/root/first
Accessed it as,
http://localhost:8080/first/index.html I got the html output. So I assumed tomcat is working fine.
Later I wrote a sample servlet class, by name Hello.java and successfully compiled it. Placed it in rootdir/webapps/root/first/WEB-INF/classes directory.
Later, I wrote the web.xml file and deployed it in
rootdir/webapps/root/first/WEB-INF.
<web-app>
<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>Hello</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>/hithere</url-pattern>
</servlet-mapping>
</web-app>
I tried to access it as
http://localhost:8080/first/hithere But it was not working and I got a requested resource not available error.
Is there anyway to debug my application. Everything seems to be right. This is driving me crazy.
Any input will be highly appreciated.
Thanks.