• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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





 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic