Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

serveltrequestlistener problem

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I implemented ServletRequestListener and placed it in tomcat and weblogic. My intension is when ever there is a request to the container I want to execute some code. But this listener is working fine in tomcat and it is not working in weblogic.
even though the servletRequestListener is working finein tomcat, In destroy(ServletRequestEvent sre) of the listener I am trying to get the ServletRequest on which this ServletRequestEvent is generated by ServletRequestEvent.getRequest() .compilation is going fine and when I place this in tomcat it is throwing an internal server error saying that ServletRequestEvent.getRequest() not found.why is it saying like that.
 
James Carman
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried calling getServletRequest() instead?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic