You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Patrick Baldwin <pb...@myersinfosys.com> on 2021/02/24 17:54:33 UTC
Correct manager.xml for Tomcat 8 manager GUI
Hi, I'm trying to reconfigure a pre-existing dev Tomcat 8 server so folks
can use the manager GUI; so far, I just get the ERR_CONNECTION_REFUSED
message.
I've stripped the tomcat users file down to just:
$ cat /usr/local/tomcat/conf/tomcat-users.xml
<tomcat-users>
<role rolename="manager-gui"/>
<user username="admin" password="release" roles="manager-gui"/>
</tomcat-users>
And the /usr/local/tomcat/conf/Catalina/localhost /manager.xml is
currently:
$ pwd
/usr/local/tomcat/conf/Catalina/localhost
$ cat manager.xml
<Context path="/manager">
<Resources>
<PostResources className="org.apache.catalina.webresources.DirResourceSet"
webAppMount="/WEB-INF/classes" base="/usr/local/tomcat/webapps/manager" />
</Resources>
</Context>
Not seeing an error in catalina.out about the manager, looks like it's
deploying OK:
24-Feb-2021 12:00:56.070 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployDescriptor Deploying
configuration descriptor
[/usr/local/tomcat/conf/Catalina/localhost/manager.xml]
24-Feb-2021 12:00:56.092 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of
configuration descriptor
[/usr/local/tomcat/conf/Catalina/localhost/manager.xml] has finished in
[22] ms
Since it's a dev system, I've temporarily turned off the firewall and
selinux to make sure they aren't the issue.
Any thoughts?
Re: Correct manager.xml for Tomcat 8 manager GUI
Posted by Luis Rodríguez Fernández <uo...@gmail.com>.
Hello Patrick,
Check if you have also the webapps/manager/META-INF/context.xml By default
that RemoteAddrValve [1] configuration only allows connections from the
same host.
Cheers,
Luis
[1]
https://tomcat.apache.org/tomcat-8.0-doc/api/org/apache/catalina/valves/RemoteAddrValve.html
El mié, 24 feb 2021 a las 20:13, Mark Eggers (<it...@yahoo.com.invalid>)
escribió:
> On 2/24/2021 9:54 AM, Patrick Baldwin wrote:
> > Hi, I'm trying to reconfigure a pre-existing dev Tomcat 8 server so folks
> > can use the manager GUI; so far, I just get the ERR_CONNECTION_REFUSED
> > message.
> >
> > I've stripped the tomcat users file down to just:
> >
> > $ cat /usr/local/tomcat/conf/tomcat-users.xml
> > <tomcat-users>
> > <role rolename="manager-gui"/>
> > <user username="admin" password="release" roles="manager-gui"/>
> > </tomcat-users>
> >
> > And the /usr/local/tomcat/conf/Catalina/localhost /manager.xml is
> > currently:
> > $ pwd
> > /usr/local/tomcat/conf/Catalina/localhost
> > $ cat manager.xml
> > <Context path="/manager">
> >
> > <Resources>
> > <PostResources
> className="org.apache.catalina.webresources.DirResourceSet"
> > webAppMount="/WEB-INF/classes" base="/usr/local/tomcat/webapps/manager"
> />
> > </Resources>
> >
> > </Context>
> >
> >
> > Not seeing an error in catalina.out about the manager, looks like it's
> > deploying OK:
> >
> > 24-Feb-2021 12:00:56.070 INFO [localhost-startStop-1]
> > org.apache.catalina.startup.HostConfig.deployDescriptor Deploying
> > configuration descriptor
> > [/usr/local/tomcat/conf/Catalina/localhost/manager.xml]
> > 24-Feb-2021 12:00:56.092 INFO [localhost-startStop-1]
> > org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of
> > configuration descriptor
> > [/usr/local/tomcat/conf/Catalina/localhost/manager.xml] has finished in
> > [22] ms
> >
> > Since it's a dev system, I've temporarily turned off the firewall and
> > selinux to make sure they aren't the issue.
> >
> > Any thoughts?
> >
>
> What version of Tomcat 8?
>
> For all recent versions of Tomcat (even 7), you'll need the following:
>
> <tomcat-users xmlns="http://tomcat.apache.org/xml"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://tomcat.apache.org/xml
> tomcat-users.xsd"
> version="1.0">
> <!-- your stuff goes here -->
> </tomcat-users>
>
> . . . just my two cents
> /mde/
>
>
>
>
>
--
"Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better."
- Samuel Beckett
Re: Correct manager.xml for Tomcat 8 manager GUI
Posted by Mark Eggers <it...@yahoo.com.INVALID>.
On 2/24/2021 9:54 AM, Patrick Baldwin wrote:
> Hi, I'm trying to reconfigure a pre-existing dev Tomcat 8 server so folks
> can use the manager GUI; so far, I just get the ERR_CONNECTION_REFUSED
> message.
>
> I've stripped the tomcat users file down to just:
>
> $ cat /usr/local/tomcat/conf/tomcat-users.xml
> <tomcat-users>
> <role rolename="manager-gui"/>
> <user username="admin" password="release" roles="manager-gui"/>
> </tomcat-users>
>
> And the /usr/local/tomcat/conf/Catalina/localhost /manager.xml is
> currently:
> $ pwd
> /usr/local/tomcat/conf/Catalina/localhost
> $ cat manager.xml
> <Context path="/manager">
>
> <Resources>
> <PostResources className="org.apache.catalina.webresources.DirResourceSet"
> webAppMount="/WEB-INF/classes" base="/usr/local/tomcat/webapps/manager" />
> </Resources>
>
> </Context>
>
>
> Not seeing an error in catalina.out about the manager, looks like it's
> deploying OK:
>
> 24-Feb-2021 12:00:56.070 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployDescriptor Deploying
> configuration descriptor
> [/usr/local/tomcat/conf/Catalina/localhost/manager.xml]
> 24-Feb-2021 12:00:56.092 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of
> configuration descriptor
> [/usr/local/tomcat/conf/Catalina/localhost/manager.xml] has finished in
> [22] ms
>
> Since it's a dev system, I've temporarily turned off the firewall and
> selinux to make sure they aren't the issue.
>
> Any thoughts?
>
What version of Tomcat 8?
For all recent versions of Tomcat (even 7), you'll need the following:
<tomcat-users xmlns="http://tomcat.apache.org/xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tomcat.apache.org/xml
tomcat-users.xsd"
version="1.0">
<!-- your stuff goes here -->
</tomcat-users>
. . . just my two cents
/mde/