0
votes

I know there are many of similar questions like mine. However, I spend two days exploring these questions and no one works for me.

I have Apache Tomcat 7.0.59 installed on my laptop. I can access my Apps that I developed but I can't access the manager. I got this error:

HTTP Status 404 - /manager/html

type Status report

message /manager/html

description The requested resource is not available.

I use this url to access it: http://localhost:8080/manager/html

I changed the tomcat-users.xml and server.xml as I found in the web, but still does not work.

Here is my tomcat-users.xml

<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="manager-gui"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="admin" password="tomcat" roles="manager,manager-gui"/>

Here is my server.xml

<!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
    -->
    <Engine name="Catalina" defaultHost="localhost">
    <Realm className="org.apache.catalina.realm.MemoryRealm" />

      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->

Could anyone help me? why give me this error? Is there anything wrong with the url?

1
Did you check that the manager folder exists in the webapps folder? - Andreas
I found only a folder for manager and another for host-manager inside webapps. Both files contains .jsp pages, but there is no manager.war file. - F. Fo
Did you look at the log files to see if there are any issues? - Andreas
Any reason you changed the UserDatabaseRealm to MemoryRealm? - Andreas
Which log file? sorry, but I'm new to Tomcat. No, there is no reason I just found MemoryRealm on some post here. - F. Fo

1 Answers

-1
votes

The problem happened because I was running the Tomcat from the Eclipse. I start it again from the terminal (command line) and the problem solved.

Thank you Andreas for help.