users@glassfish.java.net

Re: The menace of HTTP Status 404 in glassfish

From: <glassfish_at_javadesktop.org>
Date: Wed, 25 Nov 2009 15:40:27 PST

i too get the same error.
i googled and finally came to this thread.
i have an index.jsp. in the web.xml, welcome file list the entry is "index.jsp"

web.xml:

 <welcome-file-list>
        <welcome-file>/WEB-INF/jsp/index.jsp</welcome-file>
    </welcome-file-list>

index.jsp:
<html>
    <head>
        
        <title>Spring Skeleton</title>
    </head>
    
        <body>
        Try accessing the controller by going to <a href="send/actionName">this link</a>.
        Try accessing the controller by going to <a href="send/actionName2">this link</a>.
                <jsp:forward page="/WEB-INF/jsp/login.jsp" />
    </body>

</html>

i got the error resolved.
There was an error in index.jsp.
i renamed login.html to login.jsp.
and it worked.

most complicated,never ending issue got zeroed to a microscopic silly error.

so,i suggest that the web.xml alone is the source for 404 error.
if you can confidently say that all the files mentioned in web.xml work well,then page will be loaded... at least no 404s.
[Message sent by forum member 'kanakangi' ]

http://forums.java.net/jive/thread.jspa?messageID=373398