Bug 2290 - Sessions don't work => 3.2.3

2001-07-26 Thread Noble, Joseph A

Does Bug 2290 reported for Tomcat version 3.2.2, Sessions don't work at all,
apply to Tomcat version 3.2.3 also?  I appear to be having similar problems.
When I invalidate a session, under 3.2.3 in a protected directory from a JSP
page, I'm not asked to log in again, I'm just given a new session ID.  The
only time I'm asked to log in is the intial time entering the protected
context.

TIA
-joe-



Context Admin View All Contexts 500 Error

2001-07-19 Thread Noble, Joseph A

I keep getting a "URL contains encoded special chars" 500 Error whenever I
try to View All Context on the Tomcat admin page.  Both Add Context and
Remove Context work fine.  I'm having this same problem on several operating
systems: Win98, WinNT, Linux, and Solaris 7.  All are running Apache 1.3.20
and Tomcat 3.2.2.  All report the error on line 197, of the java servlet
created from the contextAdmin.jsp file.  In looking through the java code, I
don't see anything that would be involved with processing or creating a URL,
so I'm confused

I've looked through the tomcat-user archives and there have been 13 messages
saying they were having this problem.  The last one was July 10, 2001.  None
of the messages had a solution.  Has anyone experienced this problem and
found a solution?

The java code involved, with comments and non-involved lines removed, is
shown below.  I don't see anything in this code which would cause the
exception caught at line 194 and sequencing on to line 197.

   119  if (param.equals("View All Contexts")) {
   120  Enumeration enum = contextAdmin.getContextNames();
   121  while (enum.hasMoreElements()) {
   122  String name = (String)enum.nextElement();
   125out.write("\r\n  \r\n  CONTEXT NAME: ");
   128out.print( name );
   131out.write("\r\n  \r\n");
   134
   135  String[] contextInfoArray =
contextAdmin.getContextInfo(name);
   136  for (int i=0; i ");
   142out.print( contextInfoArray[i] );
   145out.write("\r\n");
   148
   149  }
   152out.write("\r\n  \r\n");
   155
   156  }
   157  }
   158  else if (param.equals("Add Context")) {
o
o
o  

   186}
   187else out.println("ERROR: Null Request Parameter Value");
   188
   191
out.write("\r\n\r\n\r\n\r\n\r\n\r\n\r\n");
   193
   194  } catch (Exception ex) {
   195  if (out != null && out.getBufferSize() != 0)
   196out.clearBuffer();
   197  if (pageContext != null)
pageContext.handlePageException(ex);
   198  } finally {


Thanks for any enlightenment.
joe