tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Tangney <jtang...@knowledgeplanet.com>
Subject Re: admin context
Date Wed, 29 Nov 2000 17:29:49 GMT
Thanks, Craig.

Meanwhile I have found the RTFM-problem behind it all: I needed to turn on
the 'trusted' flag in server.xml for that context. That allows me to run the
admin app. 

The bug is presumably the less than elegant handling of the situation where
the app is not "trusted" and attempts to poke around in tomcat's gibblies.

Thanks again
--johnt

On 11/28/00 8:40 PM, Craig R. McClanahan at Craig.McClanahan@eng.sun.com
wrote:

> 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 jtangney@knowledgeplanet.com 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
>>> 


Mime
View raw message