Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resource not available

 
Maalti Iyer
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I'm new to J2EE world. I'm using Tomcat 4.0. When I try to access my first servlet with this URL http://localhost:8080/servlets/Hello, I'm getting requested resource not available (404).
Here's my web.xml
<?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>HelloServlet2</servlet-name>
<servlet-class>moreservlets.HelloServlet2</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloServlet2</servlet-name>
<url-pattern>/Hello</url-pattern>
</servlet-mapping>

</web-app>
here's my doirectory structure
C:\Tomcat\webapps\servlets\WEB-INF\classes\moreservlets\HelloServlet2.
Why am I getting 404.
Thanks for your time
Maalti Iyer.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic