Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP status 404

 
Aditi Gandy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am working on struts. I have copied struts2-blank-2.0.14 into webapps folder. Now I have copied struts2-blank-2.0.14 and renamed it as "myfolder".

When i try to invoke index.jsp file with in "myfolder" from the browser, i am getting following error.

rest of the things like Servlet examples. jsp examples all are working except "myfolder" contents. why is that?


Can anyone please help me?
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the URL that you are typing in the browser address bar?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It could be that initialization failed, causing Tomcat to mark the app as unavailable. In that case the log files should give more details.

Bill
 
Aditi Gandy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for both of you for your reply.

I have stored Myfolder i.e "struts2firstone" and jsp file. in the following path:


Url to open input.jsp is:
But that time i am getting error as shown in my first post.

log error display as follows:


in localhost.2008-12-31


in manager.2008-12-31


please help :roll:
[AG: page layout corrected]
[ January 01, 2009: Message edited by: Amit Ghorpade ]
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is what the error is about:
 
Aditi Gandy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now, i have removed <include> tag, but still I am getting same error.

what to do ?? Can't understand what is the problem.
my log entries as follows:
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh there is no Action mapping

SEVERE: Could not find action or result
There is no Action mapped for action name HelloWorld. - [unknown location]

And now this is a Struts problem, so lets go to that forum.
 
Aditi Gandy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone Please help me. I am not able to proceed further.

Regards,
Ashvini
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amit Ghorpade wrote:Oh there is no Action mapping

SEVERE: Could not find action or result
There is no Action mapped for action name HelloWorld. - [unknown location]

And now this is a Struts problem, so lets go to that forum.


As Amit said , its mapping problem.

Open your struts.xml file and see whether the mapping for action /HelloWorld is correct or not .



 
Aditi Gandy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is that nesessary to work on Helloworld ?

I don't need Helloworld example.
I have removed all .jsp, .java, .class files relating to HelloWorld. Even in Struts.xml, i have removed all the references to HelloWold.

What i did is: copied struts2-blank-2.0.14 folder and renamed it as struts2firstone.

But still why is it showing this error?
Please help.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Please post the struts.xml file with the first index page of your application.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic