Problem with HttpSessionListener

I'm getting error with the following code...Can anybody help me in this?

import java.util.*;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.*;

import javax.servlet.http.HttpSessionEvent;

import java.sql.* ;

public class SessionTimeoutNotifier implements HttpSessionListener,HttpSessionBindingListener

{

public void valueBound(HttpSessionBindingEvent event)

{

System.out.println("The session has started : "+event.getSession().getId());

}

public void sessionCreated(HttpSessionEvent se)

{

System.out.println( "Session with id " + se.getSession().getId() + " created!" ) ;

}

public void sessionDestroyed(HttpSessionEvent se)

{

System.out.println( "Session with id " + se.getSession().getId() + " destroyed!" ) ;

}

Error is

/SessionTimeoutNotifier.java:8: cannot resolve symbol

[javac] symbol : class HttpSessionEvent

[javac] location: package http

[javac] import javax.servlet.http.HttpSessionEvent;

[javac]^

SessionTimeoutNotifier.java:11: cannot resolve symbol

[javac] symbol : class HttpSessionListener

[javac] location: class com.equifax.apply.usaa.SessionTimeoutNotifier

[javac] public class SessionTimeoutNotifier implements HttpSessionListener,HttpSessionBindingListener

[javac]^

SessionTimeoutNotifier.java:28: cannot resolve symbol

[javac] symbol : class HttpSessionEvent

[javac] location: class com.equifax.apply.usaa.SessionTimeoutNotifier

[javac] public void sessionCreated(HttpSessionEvent se)

[javac]^

SessionTimeoutNotifier.java:33: cannot resolve symbol

[javac] symbol : class HttpSessionEvent

[javac] location: class com.equifax.apply.usaa.SessionTimeoutNotifier

[javac]public void sessionDestroyed(HttpSes

I'm using jdk1.3 ..

[1948 byte] By [techstudenta] at [2007-10-3 4:30:24]
# 1
I guess those classes are not in the classpath.
CeciNEstPasUnProgrammeura at 2007-7-14 22:33:38 > top of Java-index,Java Essentials,Java Programming...
# 2
The required EE jar is not in your classpath.
cotton.ma at 2007-7-14 22:33:38 > top of Java-index,Java Essentials,Java Programming...
# 3
OR your version is too old maybe? Could be. You seem to have compiled servlet related things before. It could be your Servlet API is too old for this.
cotton.ma at 2007-7-14 22:33:38 > top of Java-index,Java Essentials,Java Programming...
# 4
hi, its was working fine with HttpSessionBindingListener..but when i added HttpSessionListener and its methods , i'm getting these errors. There is no problem with class path n I found HttpSessionListener class in jdk1.3 spec
techstudenta at 2007-7-14 22:33:38 > top of Java-index,Java Essentials,Java Programming...
# 5

> There is no problem with class path

It's telling you it can't find that class. Do you think the compiler is lying to you?

> n I found HttpSessionListener class in jdk1.3 spec

Yes, but have you seen the class file in the classpath?

it is strange, but the error message is still rather clear IMO.

CeciNEstPasUnProgrammeura at 2007-7-14 22:33:38 > top of Java-index,Java Essentials,Java Programming...
# 6
> I found HttpSessionListener class in jdk1.3> specRather 1.3 Servlet spec I think you mean. Servlet specificiation and Java version are NOT the same.
cotton.ma at 2007-7-14 22:33:38 > top of Java-index,Java Essentials,Java Programming...
# 7
Hi, how can i check whether my webserver supports which servlet specification ? i know only which java specification , server suports..Please help
techstudenta at 2007-7-14 22:33:38 > top of Java-index,Java Essentials,Java Programming...