This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<error-code>404</error-code> happens only once.

 
C Vivek
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I have added the following code in my web.xml


The error.html displays the first time but after the first attempt if I try to display the same page, it gives me the standard html 404 error page. The only way I get to see the page again if I make some changes to web.xml

Please could anyone help?

Regards,
Vivek
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What server/container are you using?
Are you sure the subsequent attempts are using the exact same URL as the first one?

Standard error message doesn't mean much (especially if we don't know what container you're using.)
It would be better if you posted the contents of the error page.
 
C Vivek
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Resin 2.0.5

The first time web.xml throws the custom error page upon requesting a non-existant page

say - 'http://localhost:8080/pm/d'

custom error.jsp runs

again if i say - http://10.16.58.162:18880/km/dhhh

the standard 404 html appears for future logins.

I think the web.xml still runs each time coz it does disable the directory access using the following code


Thanks in advance
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You've posted two different URLs; each pointing to a separate context.
Are you making the same changes in each application?

 
C Vivek
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops sorry.
they both point to the same url.. both point to http://10.16.58.162:18880/km/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic