tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Tanner <>
Subject What worke on 4.1.27 fails of 4.1.31
Date Mon, 08 Nov 2004 19:36:05 GMT
I upgraded my development station to tomcat 4.1.31 from 4.1.27 and from
j2sdk1.4.2_02 to j2sdk1.4.2_06.  The following unchanged snippet now throws a
NoSuchMethodError exception:

   env.put(Context.SECURITY_PRINCIPAL, BIND_DN);
   env.put(Context.SECURITY_CREDENTIALS, password);
   env.put(Context.SECURITY_AUTHENTICATION, "simple");

   ctx = new InitialDirContext(env);

   session = request.getSession();

   session.setAttribute("sess.context", ctx);
   session.setAttribute("sess.env", env);
   session.setAttribute("sess.uid", uid);
   session.setAttribute("sess.dn", BIND_DN);
   session.setAttribute("sess.valid", "true");

The exception is thrown on the first session.setAttribute() statement (line
110 in the java source).  I have included the top of the stack trace below
(lines wrapped for readability):

at org.apache.catalina.session.\
at org.apache.catalina.session.\
at ClassListAdministrator.doGet(

Another much more complex servlet that I moved over but that does not require
the use of sessions works fine, so I think the basic installation is okay.
Any idea why that error's coming up on sessions?


Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message