File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Hrishikesh Maluskar
Ranch Hand
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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





 
Ankit Garg
Sheriff
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the context path of your application?? Check the server logs to see if there are any deployment errors...
 
Hrishikesh Maluskar
Ranch Hand
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic