tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Can somebody help: Exception while accessing manager app from embedded tomcat
Date Thu, 16 May 2002 01:34:06 GMT


On Wed, 15 May 2002, Sankaranarayanan (Ganesh) Ganapathy wrote:

> Date: Wed, 15 May 2002 15:16:20 -0700
> From: "Sankaranarayanan (Ganesh) Ganapathy" <sganapathy@vitria.com>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Subject: Can somebody help: Exception while accessing manager app from
>     embedded tomcat
>
> I am still looking for answers, can somebody help?
>
> Thanx in advance
> Ganesh
>
> -----Original Message-----
> From: Sankaranarayanan (Ganesh) Ganapathy
> Sent: Tuesday, May 14, 2002 11:59 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Exception while accessing manager app from embedded tomcat
>
>
> Hi All,
> I launched the embedded tomcat in my application - it is configured to use memory realm.
I added a user with the manager role in the tomcat-users.xml file. When I try access the manager
app I see the following exception enclosed at the bottom of the mail. The same thing seems
to work fine if I launch the regular tomcat.
> Any ideas?

As the "root cause" of the exception says, the Manager servlet is a
privileged servlet, because it requires access to Catalina internal
classes.  The way to make this work is to call setPrivileged(true) when
you are setting up the Context for the manager webapp (this is done for
you when you use the default server.xml in a standard Tomcat install).

> Thanx
> Ganesh

Craig


> type Exception report
> message Internal Server Error
> description The server encountered an internal error (Internal Server Error) that prevented
it from fulfilling this request.
> exception
> javax.servlet.ServletException: Error allocating a servlet instance
> 	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java, Compiled
Code)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> 	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
> 	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
> 	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java, Compiled Code)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> 	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> 	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
> 	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> 	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java, Compiled
Code)
> 	at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java, Compiled
Code)
> 	at java.lang.Thread.run(Thread.java:479)
> root cause
> java.lang.SecurityException: Servlet of class org.apache.catalina.servlets.ManagerServlet
is privileged and cannot be loaded by this web application
> 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:900)
> 	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java, Compiled
Code)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> 	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
> 	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
> 	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java, Compiled Code)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> 	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> 	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
> 	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> 	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java, Compiled
Code)
> 	at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java, Compiled
Code)
> 	at java.lang.Thread.run(Thread.java:479)
>
>
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message