I am getting the error message in Netbeans, but I cannot run the "Manager App" in the Tomcat web page.
This is my tomcat-user.xm without comments:
.
After changing the file and saving it, I run shutdown.bat and then startup.bat.
Your help will be greatly appreciated,
Alejandro Barrero
Your help will be greatly appreciated,
Alejandro Barrero
not too sure if this helps, but for Tomcat 7, here is an extract from the official Apache Tomcat 7 website on available roles. These seem different to roles you have included.
(my bold)
You can find the role names in the web.xml file of the Manager web application. The available roles are:
manager-gui — Access to the HTML interface.
manager-status — Access to the "Server Status" page only.
manager-script — Access to the tools-friendly plain text interface that is described in this document, and to the "Server Status" page.
manager-jmx — Access to JMX proxy interface and to the "Server Status" page.
"Cannot run" is an imprecise term. What it implies is that if I was to look at the Tomcat log, that the messages emitted as part of the normal startup of the management webapps would indicate that the app failed to deploy.
More commonly, however, this actually means, "I cannot access the app".
In order to access the management webapp services, you have to have defined a user with the appropriate role names, and as Marten has noted, these names and their functions change with different Tomcat releases.
But you also have to enable the Tomcat Security Realm in the server.xml file. Otherwise the appropriate login mechanism won't be available. The Realm definition is commented out when Tomcat ships.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Thank you for your help. However something strange happened; localhost:8080 is opening "Pivotal tc Server" and http://localhost:8080/manager/html still fails. The problems continued after I changed the version. I am working on version 8; I am going to try version 7.
Your help will be greatly appreciated,
Alejandro Barrero
"Fails" is another imprecise term. The solution to the problem will depend on HOW it fails and we cannot determine that unless you provide sufficient information - web page results, tomcat log messages, or stuff like that.
Repeating, however, the role names and usages vary depending on what version of Tomcat you are running. So a Tomcat-users.xml with roles for Tomcat 7 might not work properly with Tomcat 8. You'll have to consult the Tomcat 8 documentation.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.