Craig, ================ From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: Tomcat Users List <[EMAIL PROTECTED]>
Sounds like whatever process you used to install 4.0.1 corrupted things. Did you try to install 4.0.1 directly on top of your 4.0 install? If so, this is *always* a risky thing to do. You're much better off doing a clean install of the new version, and then copying in your application stuff. Craig RSH: Doubtful. I downloaded the zip for 4.01, and unzipped it to a new directory. Both 4.0.0 and 4.0.1 were co-existing for a time (completely separate, never run together). The servlet will run if I don't access the "Session" code. But, as soon as I try to read or write the Session, that exception appears. I did a WINDIFF on both directories - lots of changes between 4.0.0 and 4.0.1 - LOTS AND LOTS of changes. (Hardly a minor revision number, in my opinion - massive differences in the names and number of jar files and where located, tomcat.exe appears, etc.). Now 4.0.1 is running fine with the same exact code (same class files FTP'd to the sun box) on a Solaris-Sun box. The only difference is that the Sun box (Solaris 2.8) is running JDK 1.2.2, while this W2K box is running JDK 1.3. It's as if key methods have been removed from the servlet.jar. -Richard On Fri, 7 Dec 2001, Richard S. Huntrods wrote: > Date: Fri, 07 Dec 2001 15:48:00 -0700 > From: Richard S. Huntrods <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > Subject: What happened to Session.setAttribute in Tomcat 4.0.1??? > > I have servlet code that worked perfectly this morning on Tomcat 4.0.0. > It uses the Session to store and retreive some data thusly: > > public void putSession(HttpServletRequest request) { > if(request != null) { > HttpSession session = request.getSession(true); > if(session != null) { > session.setAttribute("idnumber", getIdNumberString()); > } > } > } > > This code compiles with no errors in JDK 1.3. It ran perfectly under > Tomcat 4.0.0. > > This morning (after testing this code), I replaced Tomcat 4.0.0 with > 4.0.1. I correctly set up server.xml and my webapps directory structure > as before (working under 4.0.0). HOWEVER, the code above now generates > an exception: > > java.lang.NoSuchMethodError > at > org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1185) > > at > org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191) > > at > org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191) > > What gives??? > > -Richard > > > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>