Hello,

Binary download crashes when attempting to access 
admin's "view all contexts" jsp.

Failure is Nullpointerexception in ContextAdmin where getAttribute()
returns null: 
    public void init(HttpServletRequest request) {
        FacadeManager facadeM=(FacadeManager)request.getAttribute(
FacadeManager.FACADE_ATTRIBUTE);
        realRequest = facadeM.getRealRequest(request);

As no admin role was in, only change applied to downloaded version was
in tomcat-users.xml where a admin user was added:

<!-- tomcat admin -->
  <user name="webadmin" password="tomcat" roles="admin" />

For final 3.2 it would be nice if sufficient basic authentication is
already 
included in binary download.

Environment: Linux SuSe 6.4, .tomcatrc for use by tomcat.sh was:

export JAVA_HOME=/usr/java/jdk1.3
export JAVACMD="$JAVA_HOME/bin/java -Xmx64m"

Request created was:
http://localhost:8080/admin/contextAdmin/contextAdmin.jsp?submit=View+All+Contexts&addContextPath=&addContextDocBase=&removeContextName=

Maybe I missed something as I did'nt deal with workers, in-process
features, ... 

Last version seen ContextAdmin respond properly: Tomcat 3.1, but quite
sure, many things have changed since.




-- 
T echnische      I nformatik      F iedler      F �rsten F eld
Kirchenplatz 5 A-8280 F�rstenfeld  http://www.tifff.com/tifff/
Tel / Fax / GSM:   (+43) 3382 51263 / 3382 51264 / 676 3074101

Error: 500

Location: /admin/contextAdmin/contextAdmin.jsp

Internal Servlet Error:
javax.servlet.ServletException
	at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:453)
	at contextAdmin._0002fcontextAdmin_0002fcontextAdmin_0002ejspcontextAdmin_jsp_0._jspService(_0002fcontextAdmin_0002fcontextAdmin_0002ejspcontextAdmin_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.java:177)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:799)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:745)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NullPointerException
	at ContextAdmin.init(ContextAdmin.java:46)
	at contextAdmin._0002fcontextAdmin_0002fcontextAdmin_0002ejspcontextAdmin_jsp_0._jspService(_0002fcontextAdmin_0002fcontextAdmin_0002ejspcontextAdmin_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.java:177)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:799)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:745)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)




Reply via email to