You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jean-Luc BEAUDET <be...@toolchest.cyber.kodak.com> on 2002/02/20 12:02:16 UTC

Manager options...

Hi all !

Well i try hard to get Manager working well through Warp Connector.

We use Tomcat 4.0.2/Warp 1.0.2 with Apache 1.3.22.

All is correct except a few little things like... Manager !

I really found no way to do it. Error messages like

"Can't deploy manager cause it's a priviliged application" ... make me
nervous !

So i decided to have a serious look on the
../server/webapps/manager/WEB-INF/web.xml file.

BUT i don't really understand what is doin':

<servlet>
    <servlet-name>Manager</servlet-name>

<servlet-class>org.apache.catalina.servlets.ManagerServlet</servlet-class>

    <init-param>
      <param-name>debug</param-name>
      <param-value>2</param-value>
    </init-param>
  </servlet>

  <!-- Define the Manager Servlet Mapping -->
  <servlet-mapping>
    <servlet-name>Manager</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>

What does means that part ? a mapping like /* ???

  <!-- Define a Security Constraint on this Application -->
  <security-constraint>
    <web-resource-collection>
      <web-resource-name>Entire Application</web-resource-name>
      <url-pattern>/*</url-pattern>

Is this part relative to the one just above ?

    </web-resource-collection>
    <auth-constraint>
       <!-- NOTE:  This role is not present in the default users file
-->
       <role-name>manager</role-name>
    </auth-constraint>
  </security-constraint>

  <!-- Define the Login Configuration for this Application -->
  <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Tomcat Manager Application</realm-name>
  </login-config>


Well if someone can help or give me a way to perfectly understand all
the possibilities of such a web.xml
would be very very appreciated.

Best regards.

Jean-Luc B :O)


RE: Manager options...

Posted by Ricky Leung <ri...@booksense.com>.
sorry, post the answer to the wrong thread.

-----Original Message-----
From: Ricky Leung [mailto:ricky@booksense.com]
Sent: Wednesday, February 20, 2002 10:51 AM
To: Tomcat Users List
Subject: RE: Manager options...


look at the web.xml file under $CATALINA_HOME/conf, there's a sample web.xml
file there that explains how to setup timeouts in your webapp.  Just copy
and paste into your webapp's web.xml.  Remember the tag ordering is crucial
in xml.

-----Original Message-----
From: root@toolchest.cyber.kodak.com
[mailto:root@toolchest.cyber.kodak.com]On Behalf Of Jean-Luc BEAUDET
Sent: Wednesday, February 20, 2002 10:22 AM
To: Tomcat Users List
Subject: Re: Manager options...


Yoav Shapira a écrit :

> Hi,
> Sorry to bump in late in the thread, maybe this was already raised,
> but in your server.xml, did you specify the privileged="true"
> attribute for the Manager context?
>
> Yoav
>
> > If i enter http://myserver/managerstuff/list
> >
> > it then ask for login/password - OK
> >
> > and then generates an exeption below:
> >
> > javax.servlet.ServletException: Error allocating a servlet instance
> >         at
> >
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:619)
> > ../..
> > ----- Root Cause -----
> > java.lang.SecurityException: Servlet of class
> > org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
> > loaded by this web application
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>

Yes i did.

The manager context seems to work fine on the standalone Tomcat ( ie for me
port
8080 )
but fails with Apache through mod_webapp on port 80....

Sure the privileged="true" is set, as it appears in the eeption raised...

Well i don't know what to do more..

JLB :0(





--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: Manager options...

Posted by Ricky Leung <ri...@booksense.com>.
look at the web.xml file under $CATALINA_HOME/conf, there's a sample web.xml
file there that explains how to setup timeouts in your webapp.  Just copy
and paste into your webapp's web.xml.  Remember the tag ordering is crucial
in xml.

-----Original Message-----
From: root@toolchest.cyber.kodak.com
[mailto:root@toolchest.cyber.kodak.com]On Behalf Of Jean-Luc BEAUDET
Sent: Wednesday, February 20, 2002 10:22 AM
To: Tomcat Users List
Subject: Re: Manager options...


Yoav Shapira a écrit :

> Hi,
> Sorry to bump in late in the thread, maybe this was already raised,
> but in your server.xml, did you specify the privileged="true"
> attribute for the Manager context?
>
> Yoav
>
> > If i enter http://myserver/managerstuff/list
> >
> > it then ask for login/password - OK
> >
> > and then generates an exeption below:
> >
> > javax.servlet.ServletException: Error allocating a servlet instance
> >         at
> >
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:619)
> > ../..
> > ----- Root Cause -----
> > java.lang.SecurityException: Servlet of class
> > org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
> > loaded by this web application
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>

Yes i did.

The manager context seems to work fine on the standalone Tomcat ( ie for me
port
8080 )
but fails with Apache through mod_webapp on port 80....

Sure the privileged="true" is set, as it appears in the eeption raised...

Well i don't know what to do more..

JLB :0(





--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Manager options...

Posted by Jean-Luc BEAUDET <be...@toolchest.cyber.kodak.com>.
Yoav Shapira a écrit :

> Hi,
> Sorry to bump in late in the thread, maybe this was already raised,
> but in your server.xml, did you specify the privileged="true"
> attribute for the Manager context?
>
> Yoav
>
> > If i enter http://myserver/managerstuff/list
> >
> > it then ask for login/password - OK
> >
> > and then generates an exeption below:
> >
> > javax.servlet.ServletException: Error allocating a servlet instance
> >         at
> > org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:619)
> > ../..
> > ----- Root Cause -----
> > java.lang.SecurityException: Servlet of class
> > org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
> > loaded by this web application
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>

Yes i did.

The manager context seems to work fine on the standalone Tomcat ( ie for me port
8080 )
but fails with Apache through mod_webapp on port 80....

Sure the privileged="true" is set, as it appears in the eeption raised...

Well i don't know what to do more..

JLB :0(





--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Manager options...

Posted by Yoav Shapira <sh...@mpi.com>.
Hi,
Sorry to bump in late in the thread, maybe this was already raised,
but in your server.xml, did you specify the privileged="true" 
attribute for the Manager context?

Yoav

> If i enter http://myserver/managerstuff/list
> 
> it then ask for login/password - OK
> 
> and then generates an exeption below:
> 
> javax.servlet.ServletException: Error allocating a servlet instance
>         at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:619)
> ../..
> ----- Root Cause -----
> java.lang.SecurityException: Servlet of class
> org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
> loaded by this web application

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Manager options...

Posted by Jean-Luc BEAUDET <be...@toolchest.cyber.kodak.com>.
Christopher Chan a écrit :

> maybe you should lose the slash at the end of /manager/. (try /manager)
>
> Is the name of your webappconnection Warp_conn?
>
> Christophe
>
> ----- Original Message -----
> From: "Jean-Luc BEAUDET" <be...@toolchest.cyber.kodak.com>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Wednesday, February 20, 2002 8:42 PM
> Subject: Re: Manager options...
>
> > Christopher Chan a écrit :
> >
> > > Create a user in conf/tomcat-users.xml and give the use a manager role
> > > instead of tomcat and so on.
> > >
> > > Then try to login again.
> > >
> > > ----- Original Message -----
> > > From: "Jean-Luc BEAUDET" <be...@toolchest.cyber.kodak.com>
> > > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > > Sent: Wednesday, February 20, 2002 7:02 PM
> > > Subject: Manager options...
> >
> > Thank yu for the answer, Chan.
> >
> > I made the stuff, but now i miss the way to declare the WebAppDeploy in
> Apache
> > httpd.conf config file.
> >
> > Is it smth like WebAppDeploy manager Warp_Conn /manager/ ???
> >
> > Cause each time i did it, it failed...
> >
> > Jean-Luc B :O)
> >
> >
> >
> > --
> > To unsubscribe:   <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
> >
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>

Christopher,

I made little modifications and finally went ahead:

in tomcat_users.xml
<user name="Manager"   password="Manager" roles="manager" />

The manager dir is under $CATALINA_HOME/webapps

in httpd.conf:

 WebAppConnection WarpConnector0             warp    localhost:8008

  WebAppDeploy     examples           WarpConnector0  /examples/stuff/
    WebAppDeploy     MyApp              WarpConnector0  /myapp/
     WebAppDeploy     Manager            WarpConnector0  /managerstuff/

If i enter http://myserver/managerstuff/list

it then ask for login/password - OK

and then generates an exeption below:

javax.servlet.ServletException: Error allocating a servlet instance
        at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:619)
../..
----- Root Cause -----
java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
loaded by this web application


Well do yu have any idea ???

I'm stuck !

Jean-Luc B :0)



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Manager options...

Posted by Christopher Chan <fe...@netfront.net>.
maybe you should lose the slash at the end of /manager/. (try /manager)

Is the name of your webappconnection Warp_conn?

Christophe

----- Original Message -----
From: "Jean-Luc BEAUDET" <be...@toolchest.cyber.kodak.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Wednesday, February 20, 2002 8:42 PM
Subject: Re: Manager options...


> Christopher Chan a écrit :
>
> > Create a user in conf/tomcat-users.xml and give the use a manager role
> > instead of tomcat and so on.
> >
> > Then try to login again.
> >
> > ----- Original Message -----
> > From: "Jean-Luc BEAUDET" <be...@toolchest.cyber.kodak.com>
> > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > Sent: Wednesday, February 20, 2002 7:02 PM
> > Subject: Manager options...
>
> Thank yu for the answer, Chan.
>
> I made the stuff, but now i miss the way to declare the WebAppDeploy in
Apache
> httpd.conf config file.
>
> Is it smth like WebAppDeploy manager Warp_Conn /manager/ ???
>
> Cause each time i did it, it failed...
>
> Jean-Luc B :O)
>
>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Manager options...

Posted by Jean-Luc BEAUDET <be...@toolchest.cyber.kodak.com>.
Christopher Chan a écrit :

> Create a user in conf/tomcat-users.xml and give the use a manager role
> instead of tomcat and so on.
>
> Then try to login again.
>
> ----- Original Message -----
> From: "Jean-Luc BEAUDET" <be...@toolchest.cyber.kodak.com>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Wednesday, February 20, 2002 7:02 PM
> Subject: Manager options...

Thank yu for the answer, Chan.

I made the stuff, but now i miss the way to declare the WebAppDeploy in Apache
httpd.conf config file.

Is it smth like WebAppDeploy manager Warp_Conn /manager/ ???

Cause each time i did it, it failed...

Jean-Luc B :O)



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Manager options...

Posted by Christopher Chan <fe...@netfront.net>.
Create a user in conf/tomcat-users.xml and give the use a manager role
instead of tomcat and so on.

Then try to login again.

----- Original Message -----
From: "Jean-Luc BEAUDET" <be...@toolchest.cyber.kodak.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Wednesday, February 20, 2002 7:02 PM
Subject: Manager options...


> Hi all !
>
> Well i try hard to get Manager working well through Warp Connector.
>
> We use Tomcat 4.0.2/Warp 1.0.2 with Apache 1.3.22.
>
> All is correct except a few little things like... Manager !
>
> I really found no way to do it. Error messages like
>
> "Can't deploy manager cause it's a priviliged application" ... make me
> nervous !
>
> So i decided to have a serious look on the
> ../server/webapps/manager/WEB-INF/web.xml file.
>
> BUT i don't really understand what is doin':
>
> <servlet>
>     <servlet-name>Manager</servlet-name>
>
> <servlet-class>org.apache.catalina.servlets.ManagerServlet</servlet-class>
>
>     <init-param>
>       <param-name>debug</param-name>
>       <param-value>2</param-value>
>     </init-param>
>   </servlet>
>
>   <!-- Define the Manager Servlet Mapping -->
>   <servlet-mapping>
>     <servlet-name>Manager</servlet-name>
>     <url-pattern>/*</url-pattern>
>   </servlet-mapping>
>
> What does means that part ? a mapping like /* ???
>
>   <!-- Define a Security Constraint on this Application -->
>   <security-constraint>
>     <web-resource-collection>
>       <web-resource-name>Entire Application</web-resource-name>
>       <url-pattern>/*</url-pattern>
>
> Is this part relative to the one just above ?
>
>     </web-resource-collection>
>     <auth-constraint>
>        <!-- NOTE:  This role is not present in the default users file
> -->
>        <role-name>manager</role-name>
>     </auth-constraint>
>   </security-constraint>
>
>   <!-- Define the Login Configuration for this Application -->
>   <login-config>
>     <auth-method>BASIC</auth-method>
>     <realm-name>Tomcat Manager Application</realm-name>
>   </login-config>
>
>
> Well if someone can help or give me a way to perfectly understand all
> the possibilities of such a web.xml
> would be very very appreciated.
>
> Best regards.
>
> Jean-Luc B :O)
>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Manager options...

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Wed, 20 Feb 2002, Jean-Luc BEAUDET wrote:

> Date: Wed, 20 Feb 2002 12:02:16 +0100
> From: Jean-Luc BEAUDET <be...@toolchest.cyber.kodak.com>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: Tomcat Users List <to...@jakarta.apache.org>
> Subject: Manager options...
>
> Hi all !
>
> Well i try hard to get Manager working well through Warp Connector.
>
> We use Tomcat 4.0.2/Warp 1.0.2 with Apache 1.3.22.
>
> All is correct except a few little things like... Manager !
>
> I really found no way to do it. Error messages like
>
> "Can't deploy manager cause it's a priviliged application" ... make me
> nervous !
>

Even after you get the deployment issues resolved, it seems very unlikely
to me that the Manager webapp will be useful through the mod_webapp or
mod_jk connectors :-(.

The reason for this:  Tomcat has no problem with dynamically adding new
web applications on the fly.  However, Apache won't be able to see them
until the httpd.conf file is updated, and Apache is restarted.

Craig


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>