Skip to main content
1-Visitor
January 31, 2018
Solved

How to login to Tomcat?

  • January 31, 2018
  • 1 reply
  • 4064 views

I'm asked for my Tomcat username/password, but nothing works.  My goal is to access the Thingworx composer.


Steps taken:

-Go go web browser localhost:80

-Tomcat page appears

-Click on Manager app

-Pop up for Username/Password appears, the password I used when setting up Tomcat doesn't work

-Go into Tomcat-users.xml and add this code (below)

 

<tomcat-users>

 

 

<role rolename="manager-gui"/>

<role rolename="manager-script"/>

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

 

 

</tomcat-users>


​-Stop/Start Tomcat and nothing works, I've tried several combinations of code and nothing.

 

What am I missing?

 

Thanks,

Charlie

Best answer by ckoenig

Ok, I changed my code to the following and it worked.  I should also mention I'm using Tomcat 8.0

<role rolename="admin"/>
<role rolename="admin-gui"/>
<role rolename="manager"/>
<role rolename="manager-gui"/>

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

1 reply

ckoenig1-VisitorAuthorAnswer
1-Visitor
January 31, 2018

Ok, I changed my code to the following and it worked.  I should also mention I'm using Tomcat 8.0

<role rolename="admin"/>
<role rolename="admin-gui"/>
<role rolename="manager"/>
<role rolename="manager-gui"/>

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