When i deploy my web app and try to run the home page (I am using OC4J 10.1.2, Servlet v2.3 Spec), i am getting the following error:
Error instantiating web-application
Listener class 'com.testa.testb.MyAppSessionBindingListener' was dit not implement 'javax.servlet.ServletContextListener', 'javax.servlet.ServletContextAttributeListener', 'javax.servlet.http.HttpSessionListener' or 'javax.servlet.http.HttpSessionAttributeListener'
Here is my web.xml entry:
I am Implementing the HttpSessionBindingListener interface in MyAppSessionBindingListener.
Do you guys have any idea why this might be happening?
Thanks, I took out the SessionBindingListener from the DD. That link helped.
Joined: Aug 21, 2005
but the only question i have is that the servlet v2.3 spec didn't talk about it explicitly. Here is what i saw in the spec. There is nothing specific about HttpSessionBinding and HttpSessionActivation listeners.
SRV.10.3.2 Deployment Declarations
Listener classes are declared in the web application deployment descriptor using the
listener element. They are listed by class name in the order in which they are to be
SRV.10.3.3 Listener Registration
The web container creates an instance of each listener class and registers it for event
notifications prior to the processing of the first request by the application. The web
container registers the listener instances according to the interfaces they implement
and the order in which they appear in the deployment descriptor. During web
application execution listeners are invoked in the order of their registration.