• 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
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

JSP page display problem

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I’m migrating an existing application’s authentication from Database to container managed authentication. There is a case where I need to catch the exception and display an error page. I get a 404 when exception is caught, instead of getting jsp page.
When I open a browser window and try to access that error page using http://localhost/common/abc/myError.jsp
The page is shown.
"Now" If I go to my application and replicate that error condition, exception is caught and also the error page is displayed. I can’t understand why, first time, I don’t get error page???

any clue?
 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I dont have any clue, but try to find out from where is the error being generated, is it from the webserver(if any) or the servlet container.
 
bharat nagpal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no error message anywhere. The only thing I'm able to see in logs is 404 (in access.log). and When I debug the code it goes to the line where the request Forward is executed with all valid values.
The code works fine even for the first time, if I remove container authentication.
 
bharat nagpal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To be precise, I'm not able to see the jsp page, when I try to fwd. the request. it's not getting compiled. But when I access it directly through browser, it gets compiled and after that the above Fwd. stuff works fine.

-Bharat
 
Not looking good. I think this might be the end. Wait! Is that a tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic