problems configuring apache tomcat 8.5.24 for java

0

I'm trying to start apache tomcat 8.5.24 with the information that appears here: link I installed java jdk 9.0.1, I did the variable for java jdk and modified the variable path. I also modified the tomcat-users.xml file to grant the permissions, but I can not access the localhost: 8080 page because it asks for my username and password. Does anyone know how to access this page?

    
asked by virtual8870 26.12.2017 в 20:47
source

1 answer

1

You should validate that in the tomcat-users.xml file these lines have been uncommented:

<tomcat-users>
 <!--
 <role rolename="tomcat"/>
 <role rolename="role1"/>
 <user username="tomcat" password="tomcat" roles="tomcat"/>
 <user username="both" password="tomcat" roles="tomcat,role1"/>
 <user username="role1" password="tomcat" roles="role1"/>
 -->

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

</tomcat-users>

On the line:

 <user username="admin" password="admin" roles="manager-gui"/>

You can enter the username and password you want and with these credentials you should be able to login to the Tomcat server admin.

    
answered by 26.12.2017 в 20:56