tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mirek.Su...@intax.cz
Subject Problems with contextAdmin.jsp
Date Fri, 15 Sep 2000 10:27:48 GMT
Hello everybody.

Can you tell me, why contextAdmin.jsp under Tomcat 3.2b3 does not work?
(Under Tomcat 3.1 it worked very nice!).

     Thank you very much for any help.

          Mirek Subrt

There are in fact two problems: 1) security; 2) internal error 500.

ad 1) The problem with security can be easily solved. For example:
           by renaming of file web.xml at webapps/admin/WEB-INF
           (because of elements <security-constranint> and <login-config>).
           After that it is possible to load adminContext.html without any security dialog
window.
           (where the button "View All Contexts" exists,  which can call contextAdmin.jsp)
           without any security dialog window.

ad 2) When I then load adminContext.html and press his button "View All Contexts"
           (http://localhost:8080/admin/contextAdmin/contextAdmin.jsp?submit=View+All+Contexts&addContextPath=&addContextDocBase=&removeContextName=),
           then displayes this internal error 500:

Error: 500
Location:/admin/contextAdmin/contextAdmin.jsp
Internal Servlet Error:

javax.servlet.ServletException:
     at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:448)
     at contextAdmin._0002fcontextAdmin_0002fcontextAdmin_0002ejspcontextAdmin_jsp_0._jspService
(_0002fcontextAdmin_0002fcontextAdmin_0002ejspcontextAdmin_jsp_0.java, Compiled Code)
     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:309)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code)
     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(ContextManager.java:749)
     at org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
     at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207)
     at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code)
     at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code)
     at java.lang.Thread.run(Thread.java, Compiled Code)

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, Compiled Code)
     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:309)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code)
     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(ContextManager.java:749)
     at org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
     at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207)
     at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code)
     at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code)
     at java.lang.Thread.run(Thread.java, Compiled Code)



Mime
View raw message