• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oops sorry.
they both point to the same url.. both point to http://10.16.58.162:18880/km/
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic