HttpSession::getMaxInactiveInterval method not found

Hi,

I am trying to run a servlet on iPlanet Web Server 4.1 SP7.

The servlet uses the getSession methods to access the session data. However, when I make the getSession call, an exception is thrown from NSHttpServletRequest indicating that the method HttpSession::getMaxInactiveInterval() cannot be found.

(See below for stack trace.)

Has anyone come across anything similar?

Thank-you,

Mike

Internal error: exception thrown from the servlet service function (uri=/MyServlet): java.lang.NoSuchMethodError: javax.servlet.http.HttpSession: method getMaxInactiveInterval()Inot found, stack: java.lang.NoSuchMethodError: javax.servlet.http.HttpSession: method getMaxInactiveInterval()I not found

at com.netscape.server.http.servlet.NSHttpServletRequest.getSession(Compiled Code)

at com.mrn.app.MySessionServlet.checkSessionData(MySessionServlet.java:89)

at com.mrn.app.MySessionServlet.doGet(MySessionServlet.java:110)

at com.mrn.app.MyServlet.doGet(MyServlet.java:120)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)

at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:507)

[1299 byte] By [neevem] at [2007-9-26 1:40:40]
# 1
Hi I'm getting the same error message but i get it inside an Apache web server.....we're u able to solve it by any chance? if so...help! I'm trying to beat a deadline..thank you!Laura
lauramos at 2007-6-29 2:31:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...