File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Requested Resource is not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Requested Resource is not available" Watch "Requested Resource is not available" New topic

Requested Resource is not available

Booma Devi
Ranch Hand

Joined: Nov 02, 2011
Posts: 61

I am new to struts.. while running a struts application i am getting an error "requested resource is not available"..

1) I have installed the jdk 1.6 and the path is C:\Program Files\Java\jdk1.6.0_25\bin
2) I have installed the tomcat 6 version and the path is C:\Data\apache-tomcat-6.0.20\webapps
3) I have created the package called website.web and placed the servlet program as below

package website.web;


import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class WelcomeServlet extends HttpServlet {

protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
PrintWriter p=resp.getWriter();
p.println("<h1> HELLO SERVLET </h1>");



4) Then i have given the path of servlet in web.xml file as below

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"





5) Then started the tomcat server ( tomcat server home page is displayed) and typed the URL in the browser as below

http://localhost:8080/Final(Project Name)/WelcomeServlet

I am getting the error message as below
type Status report

message /Final/WelcomeServlet

description The requested resource (/Final/WelcomeServlet) is not available.

Can anyone please help me how to solve this error?

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Requested Resource is not available
It's not a secret anymore!