It's not a secret anymore!
The moose likes Struts and the fly likes HTTP status 404 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "HTTP status 404" Watch "HTTP status 404" New topic
Author

HTTP status 404

Aditi Gandy
Ranch Hand

Joined: Apr 23, 2008
Posts: 37
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?


Thanks & Regards,
Author
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2552
    
    2

What is the URL that you are typing in the browser address bar?


SCJP, SCWCD.
|Asking Good Questions|
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12271
    
    1
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


Java Resources at www.wbrogden.com
Aditi Gandy
Ranch Hand

Joined: Apr 23, 2008
Posts: 37
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

Joined: Oct 12, 2001
Posts: 1179

This is what the error is about:


Regards, Rene Larsen
Dropbox Invite
Aditi Gandy
Ranch Hand

Joined: Apr 23, 2008
Posts: 37
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

Joined: Jun 06, 2007
Posts: 2552
    
    2

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

Joined: Apr 23, 2008
Posts: 37
Anyone Please help me. I am not able to proceed further.

Regards,
Ashvini
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2896
    
    1

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 .




[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Aditi Gandy
Ranch Hand

Joined: Apr 23, 2008
Posts: 37
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

Joined: Feb 19, 2008
Posts: 2896
    
    1


Please post the struts.xml file with the first index page of your application.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP status 404
 
Similar Threads
Default Action In Struts2
Struts2 and eclipse
Accessing my Servlets/JSP's from home via internet.
struts2 jquery ajax call
Recommendations for Webhosting for Struts2 (GoDaddy issue)