You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Larry Isaacs <La...@sas.com> on 2001/10/15 18:47:11 UTC

RE: admin TOMCAT (3.2.3) does'nt work : error 500 Internal Servle t Error

A security patch in Tomcat 3.2.3 unfortunately causes this
problem in the admin app.  The problem is that certain
encodings are treated as illegal, such as %2F for '/'.
The admin trips over this internally because %2F is found
in the work directory names, such as "localhost_8080%2Fexamples".

This problem is fixed in the current Tomcat 3.2.x source, where,
rather than treat %2F as illegal, it is just not decoded.  Try
the current Tomcat 3.2 nightly if you want to avoid this.  It
is also not a problem in Tomcat 3.3.

Hope this helps.
Larry

> -----Original Message-----
> From: The Duke [mailto:mini78@lycos.com]
> Sent: Monday, October 15, 2001 3:27 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: admin TOMCAT (3.2.3) does'nt work : error 500 Internal
> Servlet Error
> 
> 
> You have encoded stuff in the url that java doesn't 
> understand. You should try to print it on screen to see how 
> it comes out and change the error from there.
> Another way to get all context is to use a xml parser that 
> goes throug server.xml and saves all <Context> in a list and 
> that you can use further on.
> 
> Dennis Knol
> 
> On Mon, 15 Oct 2001 09:19:13  
>  LEBRETON Philippe wrote:
> >i use TOMCAT 3.2.3 and when i want list all context in 
> TOMCAT, i have an
> >error :
> >Error: 500
> >
> >Location: /admin/contextAdmin/contextAdmin.jsp
> >
> >Internal Servlet Error:
> >
> >javax.servlet.ServletException: URL contains encoded special chars.
> >        at
> >org.apache.jasper.runtime.PageContextImpl.handlePageException
> (PageContextImpl.java:459)
> >
> >        at
> >contextAdmin._0002fcontextAdmin_0002fcontextAdmin_0002ejspcon
> textAdmin_jsp_0._jspService(_0002fcontextAdmin_0002fcontextAdm
> in_0002ejspcontextAdmin_jsp_0.java:197)
> >
> >        at
> >org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> >        at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >        at
> >org.apache.jasper.servlet.JspServlet$JspCountedServlet.servic
> e(JspServlet.java:130)
> >
> >        at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >        at
> >org.apache.jasper.servlet.JspServlet$JspServletWrapper.servic
> e(JspServlet.java:282)
> >
> >        at
> >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle
> t.java:429)
> >
> >        at
> >org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> >        at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >        at
> >org.apache.tomcat.core.ServletWrapper.doService(ServletWrappe
> r.java:405)
> >
> >        at org.apache.tomcat.core.Handler.service(Handler.java:287)
> >        at
> >org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.
> java:372)
> >        at
> >org.apache.tomcat.core.ContextManager.internalService(Context
> Manager.java:812)
> >
> >        at
> >org.apache.tomcat.core.ContextManager.service(ContextManager.
> java:758)
> >        at
> >org.apache.tomcat.service.connector.Ajp13ConnectionHandler.pr
> ocessConnection(Ajp13ConnectionHandler.java:160)
> >
> >        at
> >org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoi
> nt.java:416)
> >
> >        at
> >org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadP
> ool.java:501)
> >
> >        at java.lang.Thread.run(Thread.java:484)
> >
> >Root cause:
> >
> >java.lang.IllegalArgumentException: URL contains encoded 
> special chars.
> >        at
> >org.apache.tomcat.util.RequestUtil.URLDecode(RequestUtil.java:317)
> >        at ContextAdmin.getContextInfo(ContextAdmin.java:76)
> >        at
> >contextAdmin._0002fcontextAdmin_0002fcontextAdmin_0002ejspcon
> textAdmin_jsp_0._jspService(_0002fcontextAdmin_0002fcontextAdm
> in_0002ejspcontextAdmin_jsp_0.java:135)
> >
> >        at
> >org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> >        at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >        at
> >org.apache.jasper.servlet.JspServlet$JspCountedServlet.servic
> e(JspServlet.java:130)
> >
> >        at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >        at
> >org.apache.jasper.servlet.JspServlet$JspServletWrapper.servic
> e(JspServlet.java:282)
> >
> >        at
> >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle
> t.java:429)
> >
> >        at
> >org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> >        at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >        at
> >org.apache.tomcat.core.ServletWrapper.doService(ServletWrappe
> r.java:405)
> >
> >        at org.apache.tomcat.core.Handler.service(Handler.java:287)
> >        at
> >org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.
> java:372)
> >        at
> >org.apache.tomcat.core.ContextManager.internalService(Context
> Manager.java:812)
> >
> >        at
> >org.apache.tomcat.core.ContextManager.service(ContextManager.
> java:758)
> >        at
> >org.apache.tomcat.service.connector.Ajp13ConnectionHandler.pr
> ocessConnection(Ajp13ConnectionHandler.java:160)
> >
> >        at
> >org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoi
> nt.java:416)
> >
> >        at
> >org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadP
> ool.java:501)
> >
> >        at java.lang.Thread.run(Thread.java:484)
> >
> >where is the probleme?
> >
> >thanks
> >
> >Philippe LEBRETON
> >
> 
> 
> Make a difference, help support the relief efforts in the U.S.
> http://clubs.lycos.com/live/events/september11.asp
>