tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Isaacs <Larry.Isa...@sas.com>
Subject RE: tomcat 3.2b4
Date Thu, 14 Sep 2000 19:48:26 GMT
Hi,

This is happening because the ContextAdmin.java init() routine calls:

	FacadeManager facadeM=(FacadeManager)request.getAttribute( FacadeManager.FACADE_ATTRIBUTE);

This will return null unless the admin context is "trusted".  I think the admin context in
server.xml was changed to trusted="false" due to security concerns.  Perhaps it should be
changed to trusted="true" and the admin app commented out by default with instructions to
uncomment and add a user/password for the admin role.

Cheers,
Larry

> -----Original Message-----
> From: GOMEZ Henri [mailto:hgomez@slib.fr]
> Sent: Thursday, September 14, 2000 11:59 AM
> To: tomcat-dev@jakarta.apache.org
> Subject: RE: tomcat 3.2b4
> 
> 
> Hi,
> 
> After the built and installation I've got the following problem :
> 
> 
> http://mybecane/admin/contextAdmin/contextAdmin.jsp?submit=Vie
> w+All+Contexts
> &addContextPath=&addContextDocBase=&removeContextName=
> 
> 
> Error: 500
> Location:/admin/contextAdmin/contextAdmin.jsp
> Internal Servlet Error:
> 
> javax.servlet.ServletException
> 	at java.lang.Throwable.(Throwable.java:96)
> 	at java.lang.Exception.(Exception.java:44)
> 	at javax.servlet.ServletException.(ServletException.java:161)
> 	at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(
> PageContextImp
> l.java:448)
> 	at
> contextAdmin._0002fcontextAdmin_0002fcontextAdmin_0002ejspcont
> extAdmin_jsp_0
> ._jspService(_0002fcontextAdmin_0002fcontextAdmin_0002ejspcont
> extAdmin_jsp_0
> .java:192)
> 	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$JspServletWrapper.service
> (JspServlet.ja
> va:177)
> 	at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:309)
> 	at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
> .java:387)
> 	at org.apache.tomcat.core.Handler.service(Handler.java:263)
> 	at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
> 	at
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:74
> 9)
> 	at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
> 	at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection
> (Ajp12ConnectionHandler.java:166)
> 	at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:403)
> 	at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.java:498)
> 	at java.lang.Thread.run(Thread.java:498)
> 
> Root cause: 
> java.lang.NullPointerException
> 	at ContextAdmin.init(ContextAdmin.java:46)
> 	at
> contextAdmin._0002fcontextAdmin_0002fcontextAdmin_0002ejspcont
> extAdmin_jsp_0
> ._jspService(_0002fcontextAdmin_0002fcontextAdmin_0002ejspcont
> extAdmin_jsp_0
> .java:112)
> 	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$JspServletWrapper.service
> (JspServlet.ja
> va:177)
> 	at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:309)
> 	at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
> .java:387)
> 	at org.apache.tomcat.core.Handler.service(Handler.java:263)
> 	at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
> 	at
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:74
> 9)
> 	at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
> 	at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection
> (Ajp12ConnectionHandler.java:166)
> 	at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:403)
> 	at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.java:498)
> 	at java.lang.Thread.run(Thread.java:498)
> 
> 
> PS: Via AJP12 
> -
> Unix is like a tipi -- no Gates, no Windows, and an Apache inside. 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 

Mime
View raw message