| Author |
requested resource (/tutorial/HellwWorld.action) is not available error
|
Hrishikesh Maluskar
Ranch Hand
Joined: Jun 19, 2008
Posts: 114
|
|
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
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9191
|
|
|
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: 114
|
|
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
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9191
|
|
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: 114
|
|
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
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9191
|
|
|
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: 114
|
|
|
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
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9191
|
|
|
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: 114
|
|
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.
|
 |
 |
|
|
subject: requested resource (/tutorial/HellwWorld.action) is not available error
|
|
|