Re: tomcat management interface gives 403 forbidden error

2017-05-08 Thread Coty Sutherland
On Fri, May 5, 2017 at 12:13 PM, Tim Dunphy <bluethu...@gmail.com> wrote:
> I've had to configure two tomcat servers recently. I've setup one tomcat
> server using using version 8.5.13 and that works fine. I can access Server
> Status, Manager App and Host Manager web interfaces with no problem.
>
> But when I tried setting up a new tomcat server running tomcat version
> 8.5.14 by copying the same configs from the from the 8.5.13 server I'd
> built I get access denied 403 on the Server Status and Manager app. But
> oddly only the Host Manager web interface works correctly. I can access
> that.
>
> I need to figure out why the same configs that work on the first server,
> give me 403 denied on the second server.
>
> This is what I have on each:
>
> Working server Java:
>
> java version "1.8.0_121"
> Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
>
> Non working server have a newer java:
>
> java version "1.8.0_131"
> Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
> Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
>
> Everything else is identical in terms of configuration.
>
> Both have java and tomcat variables setup in /etc/profile:
>
> JAVA_HOME='/usr/lib/jvm'
> CATALINA_HOME='/usr/local/tomcat'
>
> export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL JAVA_HOME
> CATALINA_HOME
>
> Both servers have the same config files, copied from the 1st working server
> to the 2nd non working server.
>
> Tomcat users config:
>
> cat /usr/local/tomcat/conf/tomcat-users.xml
> 
>  roles="manager-gui,admin-gui"/>
> 
>
> The context configuration file has this:
>
>  cat /usr/local/tomcat/conf/context.xml
> 
> 
> 
> 
> 
> 
>
>
> And the webapps context.xml config for both tomcats has this:
>
> cat /usr/local/tomcat/webapps/host-manager/META-INF/context.xml
> 
> 
> 
>     
>     
>
> Why is tomcat server 1 (version 8.5.13) working and the newer tomcat
> version (8.5.14) on server 2 not working?
>
> Thanks in advance!

I responded to your post on SO,
http://stackoverflow.com/questions/43765049/tomcat-management-interface-gives-403-forbidden-error,
a couple days ago. You can answer the questions here or there :)

> --
> GPG me!!
>
> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



tomcat management interface gives 403 forbidden error

2017-05-05 Thread Tim Dunphy
I've had to configure two tomcat servers recently. I've setup one tomcat
server using using version 8.5.13 and that works fine. I can access Server
Status, Manager App and Host Manager web interfaces with no problem.

But when I tried setting up a new tomcat server running tomcat version
8.5.14 by copying the same configs from the from the 8.5.13 server I'd
built I get access denied 403 on the Server Status and Manager app. But
oddly only the Host Manager web interface works correctly. I can access
that.

I need to figure out why the same configs that work on the first server,
give me 403 denied on the second server.

This is what I have on each:

Working server Java:

java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

Non working server have a newer java:

java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

Everything else is identical in terms of configuration.

Both have java and tomcat variables setup in /etc/profile:

JAVA_HOME='/usr/lib/jvm'
CATALINA_HOME='/usr/local/tomcat'

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL JAVA_HOME
CATALINA_HOME

Both servers have the same config files, copied from the 1st working server
to the 2nd non working server.

Tomcat users config:

cat /usr/local/tomcat/conf/tomcat-users.xml




The context configuration file has this:

 cat /usr/local/tomcat/conf/context.xml








And the webapps context.xml config for both tomcats has this:

cat /usr/local/tomcat/webapps/host-manager/META-INF/context.xml






Why is tomcat server 1 (version 8.5.13) working and the newer tomcat
version (8.5.14) on server 2 not working?

Thanks in advance!

-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B