Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I cannot access tomcat admin console?

Tags:

tomcat7

I am try to build an app with the integration of JPA and Struts. to do it need to access tomcat manager. But when I access URL http://localhost:8080/manager/html it gives 404 Error to me.

My tomcat-users.xml

<?xml version='1.0' encoding='cp1252'?>

  <tomcat-users>

    <role rolename="manager-gui"/>
    <role rolename="manager-script"/>
    <role rolename="manager-jmx"/>
    <role rolename="manager-status"/>

    <!--<user name="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status" />-->
    <user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status"/>

    </tomcat-users>

Thanks in Advance.

like image 764
CodeSac Avatar asked Dec 18 '13 10:12

CodeSac


People also ask

How do I get to admin console in Tomcat?

Access the Apache Tomcat console by browsing to http://localhost:8080/ (if installed as a non-root user) or http://localhost/ (if installed as the root user).

Does Tomcat have admin console?

The default user for the Tomcat administration console under Windows is admin with the admin password.

How do I access Tomcat Manager GUI?

The Tomcat Host Manager application is a part of Tomcat installation, by default available using the following context: /host-manager . You can use the host manager in the following ways: Utilizing the graphical user interface, accessible at: {server}:{port}/host-manager/html .


1 Answers

Your tomcat-users.xml looks good.

Make sure you have the manager/ application inside your $CATALINA_BASE/webapps/

  • Linux:

You have to install tomcat-admin package: sudo apt-get install tomcat8-admin (for version 8)

  • Windows:

I am using Eclipse. I had to copy the manager/ folder from C:\Program Files\apache-tomcat-8.5.20\webapps to my Eclipse workspace (~\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\).

like image 172
forzagreen Avatar answered Oct 28 '22 06:10

forzagreen