• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

serveltrequestlistener problem

 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried calling getServletRequest() instead?
 
reply
    Bookmark Topic Watch Topic
  • New Topic