Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP page display problem

 
bharat nagpal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • 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?
 
Shankar Narayana
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic