Hi! What is the putSession() method of a HttpSession? Do you mean putValue? First, this is a deprecated method, but second, StandardSession implements that method anyway. StandardSession is org.apache.catalina.session.StandardSession, and implements HttpSession, which is an interface and as such not instantiateable.
The exception points to another reason, but I can't tell without knowing what exact version of Tomcat you use and what you pass in. Mika ----- Original Message ----- From: "Richard S. Huntrods" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 13, 2001 6:05 PM Subject: Try a different approach - What's wrong with catalina.session??? > Greetings! > > Let's try this again. From the error message below, it would appear > that there is something WRONG with > "org.apache.catalina.session.StandardSession". Note from the error that > we get a "java.lang.NoSuchMethodError" - the method does not exist. > > After reading the Catalina Javadocs, it becomes aparent there are two > StandardSessionFacade constructors. One is: > > StandardSessionFacade(javax.servlet.http.HttpSession session); > the other is > StandardSessionFacade(org.apache.catalina.session.StandardSession > session) > > It would appear that the catalina session version is getting called by > default, because I ask for no specific one in my code. The problem is > that there is NO "StandardSession" class, according to the javadocs - or > if there is (undocumented), it is missing the "putSession" method, as > stated in the error. > > I think this is a BUG in Catalina. Why call one particular constructor > by default, which does not use the standard javax classes, and then NOT > supply all the required session methods? NOTE - this constructor is > called OUTSIDE my code by other Catalina code - I have no real control > over which constructor is used. > > Does anyone in the developmer community know of a workaround? > > java.lang.NoSuchMethodError > at > org.apache.catalina.session.StandardSession.setAttribute(StandardSession.jav a:1185) > > at > org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessi onFacade.java:191) > > at > org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessi onFacade.java:191) > > at > qti.object.Login.putSession(Login.java:572) > > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>