It's a bug (sigh ...).  I will fix it tomorrow, before the final release.

Craig


John Tangney wrote:

> Hi
>
> I downloaded tomcat 3.2b8 and ran it standalone. I get the same error
> connecting to the admin app on port 8080.
>
> So it looks like a bug in the app or in tomcat. This used to work in an
> older version. Any clues anyone? Can *anyone* get /admin to work in 3.2b8?
>
> Thanks
> --johnt
>
> On 11/28/00 11:58 AM, John Tangney at [EMAIL PROTECTED] wrote:
>
> > Hi
> >
> > I am running tomcat 3.2b6 inside apache 1.3.14 using mod_jk. I'm running
> > Solaris on a sparc. All seems to work well, except for the admin app.
> >
> > I am able to see the "Context Administration" page containing the form, but
> > when I click on the "View All Contexts" button, I get the error listed
> > below.
> >
> > Note that I added a user with roles="admin" to
> > $TOMCAT_HOME/conf/tomcat-users.xml in order to get past the BASIC
> > authentication mentioned in web.xml for this app.
> >
> > Before the exception appears, I notice that tomcat writes the following to
> > the console:
> >
> > 2000-11-28 11:49:23 - Ctx( /admin ): Illegal access to internal attribute
> >
> > Then the very next output is the exception:
> >
> > 2000-11-28 11:49:23 - Ctx( /admin ): Exception in: R( /admin +
> > /contextAdmin/contextAdmin.jsp + null) - javax.servlet.ServletException
> > at
> > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> > l.java:449)
> > 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.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(ContextManager.java:78
> > 6)
> > at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
> > at
> > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> > (Ajp12ConnectionHandler.java:166)
> > 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.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(ContextManager.java:78
> > 6)
> > at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
> > at
> > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> > (Ajp12ConnectionHandler.java:166)
> > 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)
> >
> >
> > The jasper log file has nothing untoward:
> >
> > 2000-11-28 11:49:23 - JspEngine --> /contextAdmin/contextAdmin.jsp
> > 2000-11-28 11:49:23 -        ServletPath: /contextAdmin/contextAdmin.jsp
> > 2000-11-28 11:49:23 -           PathInfo: null
> > 2000-11-28 11:49:23 -           RealPath:
> > /usr/local/tomcat/webapps/admin/contextAdmin/contextAdmin.jsp
> > 2000-11-28 11:49:23 -         RequestURI:
> > /admin/contextAdmin/contextAdmin.jsp
> > 2000-11-28 11:49:23 -        QueryString:
> > submit=View+All+Contexts&addContextPath=&addContextDocBase=&removeContextNam
> > e=
> > 2000-11-28 11:49:23 -     Request Params:
> > 2000-11-28 11:49:23 -            removeContextName =
> > 2000-11-28 11:49:23 -            addContextPath =
> > 2000-11-28 11:49:23 -            submit = View All Contexts
> > 2000-11-28 11:49:23 -            addContextDocBase =
> > 2000-11-28 11:49:23 - Classpath according to the Servlet Engine is:
> > /usr/local/tomcat/webapps/admin/WEB-INF/classes
> >

Reply via email to