File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes requested resource (/tutorial/HellwWorld.action) is not available error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "requested resource (/tutorial/HellwWorld.action) is not available error" Watch "requested resource (/tutorial/HellwWorld.action) is not available error" New topic
Author

requested resource (/tutorial/HellwWorld.action) is not available error

Hrishikesh Maluskar
Ranch Hand

Joined: Jun 19, 2008
Posts: 115
I am getting getting the following error

http://localhost:8080/tutorial/HelloWorld.action
==============================================================
HTTP Status 404 - /tutorial/HelloWorld.action

Message /tutorial/HelloWorld.action

Description The requested resource (/tutorial/HellwWorld.action) is not available.


File: web.xml



File: HelloWorld.java







File: HelloWorld.jsp






SCJP 1.5
www.licexpadvice.com
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

What's the context path of your application?? Check the server logs to see if there are any deployment errors...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Hrishikesh Maluskar
Ranch Hand

Joined: Jun 19, 2008
Posts: 115
i copied "struts2-blank-2.1.6" to webapps folder in apache tomcat and renamed it to tutotial.
I dont know how to check the log , could you please tell me ankit.

Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Hrishikesh, you need to put the following jars into your lib folder for your application to work

commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
commons-logging-1.1.jar
freemarker-2.3.13.jar
ognl-2.6.11.jar
struts2-core-2.1.6.jar
xwork-2.1.2.jar

Also which server are you using?? The location of tomcat logs is in a folder named logs in the tomcat installation folder...
Hrishikesh Maluskar
Ranch Hand

Joined: Jun 19, 2008
Posts: 115
I have copied all the required ar files in the lib folder but still its showint the following message

The requested resource (/struts2tutorial/) is not available.

I am reallly getting frustrated , somebody please help.

Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Earlier you wrote /tutorial and now you are saying /struts2tutorial. What is the context path of your application?? And were there any deployment errors, check the log files of the server (if you don't know how to check logs, tell us which server you are using and we'll tell you where the logs are)...
Hrishikesh Maluskar
Ranch Hand

Joined: Jun 19, 2008
Posts: 115
its /struts2tutorial. I am using apache server. I have seen the log file but its a very long file around 60,000 lines. i was not able to find any error there.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Try to redeploy the application and look at the end of the logs, any log message generated by the deployment will be at the end. Or just clear the log and redeploy the application. By apache server I think you mean tomcat, you can go to http://localhost:8080/manager/html/ (tomcat manager) to see if your application is running or not...
Hrishikesh Maluskar
Ranch Hand

Joined: Jun 19, 2008
Posts: 115
ankit with the help of tomcat manager and log files i was able to start the application. Thanks a ton for your help. I will now start building the application.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: requested resource (/tutorial/HellwWorld.action) is not available error
 
Similar Threads
Struts 2 Tutorial �Hello World� Please Help!
Struts + Tomcat 6 + HelloWorld = Pain
problem in struts 2
Request not able to reach Action class in Struts2
File not found error