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();
   125    out.write("\r\n              <ul>\r\n                  <li><font
color=\"#CC0000\"><h2>CONTEXT NAME: ");
   128    out.print( name );
   131    out.write("\r\n                  </h2></font>\r\n");
   134
   135                  String[] contextInfoArray =
contextAdmin.getContextInfo(name);
   136                  for (int i=0; i<contextInfoArray.length; i++) {
   139    out.write("\r\n                  <dd><dt> ");
   142    out.print( contextInfoArray[i] );
   145    out.write("\r\n");
   148
   149                  }
   152    out.write("\r\n              </ul>\r\n");
   155
   156              }
   157          }
   158          else if (param.equals("Add Context")) {
                        o
                        o
                        o  

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


Thanks for any enlightenment.
joe

Reply via email to