Quantcast

How to configure Tomcat 7 manager webapp into an subpath?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to configure Tomcat 7 manager webapp into an subpath?

Roland Schmitt-2
I have configure the tomcat webroot outside of the tomcat directory.
But then the tomcat managment application isn't accessible any more.
I have then tried to create an subcontext /manager which should allow access to the manager application. But localhost/manager doesn't show any content.

How can i configure an subcontext just for accessing the manager application?

I have configured two contextes under:
Tomcat7\conf\catalina\localhost

ROOT.XML:
<Context path="" docBase="D:/webroot/" cookies="false" reloadable="false" allowLinking="false" caseSensitive="true" unpackWAR="false" useNaming="false">
</Context>

manager.xml
<Context path="/manager" docBase="D:\Programs\Tomcat 7\webapps\manager">
</Context>

Roland
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to configure Tomcat 7 manager webapp into an subpath?

Konstantin Kolinko
2011/10/26 Roland Schmitt <[hidden email]>:

> I have configure the tomcat webroot outside of the tomcat directory.
> But then the tomcat managment application isn't accessible any more.
> I have then tried to create an subcontext /manager which should allow access to the manager application. But localhost/manager doesn't show any content.
>
> How can i configure an subcontext just for accessing the manager application?
>
> I have configured two contextes under:
> Tomcat7\conf\catalina\localhost
>
> ROOT.XML:
> <Context path="" docBase="D:/webroot/" cookies="false" reloadable="false" allowLinking="false" caseSensitive="true" unpackWAR="false" useNaming="false">
> </Context>
>
> manager.xml
> <Context path="/manager" docBase="D:\Programs\Tomcat 7\webapps\manager">
> </Context>

1. You cannot use path attribute in *.xml context files.
2. Manager webapp needs to be privileged.

<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="${catalina.home}\webapps\manager"
antiResourceLocking="false" privileged="true">
</Context>

You may want to add a <Valve
className="org.apache.catalina.valves.RemoteAddrValve" ... /> inside
the <Context> tag.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to configure Tomcat 7 manager webapp into an subpath?

Roland Schmitt-2
Thanks now localhost/manager redirects to the manager app.
But after typing in username + password the access to the manager app doesnt't work i get the 401 authorization required page.

The user is added in the tomcat7\conf\tomcat-users.xml

<role rolename="manager-gui"/>
<user username="test" password="test" roles="manager-gui"/>

best regards
Roland

-------- Original-Nachricht --------
> Datum: Wed, 26 Oct 2011 16:22:39 +0400
> Von: Konstantin Kolinko <[hidden email]>
> An: Tomcat Users List <[hidden email]>
> Betreff: Re: How to configure Tomcat 7 manager webapp into an subpath?

> 2011/10/26 Roland Schmitt <[hidden email]>:
> > I have configure the tomcat webroot outside of the tomcat directory.
> > But then the tomcat managment application isn't accessible any more.
> > I have then tried to create an subcontext /manager which should allow
> access to the manager application. But localhost/manager doesn't show any
> content.
> >
> > How can i configure an subcontext just for accessing the manager
> application?
> >
> > I have configured two contextes under:
> > Tomcat7\conf\catalina\localhost
> >
> > ROOT.XML:
> > <Context path="" docBase="D:/webroot/" cookies="false"
> reloadable="false" allowLinking="false" caseSensitive="true" unpackWAR="false"
> useNaming="false">
> > </Context>
> >
> > manager.xml
> > <Context path="/manager" docBase="D:\Programs\Tomcat 7\webapps\manager">
> > </Context>
>
> 1. You cannot use path attribute in *.xml context files.
> 2. Manager webapp needs to be privileged.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Context docBase="${catalina.home}\webapps\manager"
> antiResourceLocking="false" privileged="true">
> </Context>
>
> You may want to add a <Valve
> className="org.apache.catalina.valves.RemoteAddrValve" ... /> inside
> the <Context> tag.
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

--
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
Jetzt informieren: http://www.gmx.net/de/go/freephone

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: How to configure Tomcat 7 manager webapp into an subpath?

Caldarale, Charles R
> From: Roland Schmitt [mailto:[hidden email]]
> Subject: Re: How to configure Tomcat 7 manager webapp into an subpath?

> The user is added in the tomcat7\conf\tomcat-users.xml

And are the comment markers removed?  Did you restart Tomcat after updating the .xml file?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: RE: How to configure Tomcat 7 manager webapp into an subpath?

Roland Schmitt-2
Yes the comment markers are removed.
And i have also restarted the tomcat after updating xml files.

-------- Original-Nachricht --------
> Datum: Wed, 26 Oct 2011 08:38:28 -0500
> Von: "Caldarale, Charles R" <[hidden email]>
> An: Tomcat Users List <[hidden email]>
> Betreff: RE: How to configure Tomcat 7 manager webapp into an subpath?

> > From: Roland Schmitt [mailto:[hidden email]]
> > Subject: Re: How to configure Tomcat 7 manager webapp into an subpath?
>
> > The user is added in the tomcat7\conf\tomcat-users.xml
>
> And are the comment markers removed?  Did you restart Tomcat after
> updating the .xml file?
>
>  - Chuck

--
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
Jetzt informieren: http://www.gmx.net/de/go/freephone

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to configure Tomcat 7 manager webapp into an subpath?

André Warnier
Roland Schmitt wrote:
> Yes the comment markers are removed.
> And i have also restarted the tomcat after updating xml files.

We believe only what we see with our own eyes. ;-)

Copy and paste the contents of the file here, so that we can have a look.
(overwrite the passwords of course)

repeat : do not send the file as an attachment, the list strips them.  Copy and paste into
the message to the list.


>
> -------- Original-Nachricht --------
>> Datum: Wed, 26 Oct 2011 08:38:28 -0500
>> Von: "Caldarale, Charles R" <[hidden email]>
>> An: Tomcat Users List <[hidden email]>
>> Betreff: RE: How to configure Tomcat 7 manager webapp into an subpath?
>
>>> From: Roland Schmitt [mailto:[hidden email]]
>>> Subject: Re: How to configure Tomcat 7 manager webapp into an subpath?
>>> The user is added in the tomcat7\conf\tomcat-users.xml
>> And are the comment markers removed?  Did you restart Tomcat after
>> updating the .xml file?
>>
>>  - Chuck
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...