Results 1 to 10 of 10

Thread: Problem accessing Tomcat 6 manager and host-manager webapp

  1. #1
    Join Date
    Mar 2009
    Beans
    1

    Problem accessing Tomcat 6 manager and host-manager webapp

    I´ve just installed my Ubuntu 8.10 server with LAMP server and Tomcat. I was able to see the page http://localhost:8080 and when I tried to access http://localhost:8080/manager/html, it asked me for username and password which I have no clue what they were.

    After searching on the forum, I followed the instructions to change /etc/tomcat6/tomcat-users.xml to add the roles and user as follows (I did not change the commented lines in original file:

    <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=¨tomcat¨/>
    <role rolename=¨manager"/>
    <role rolename=¨admin¨/>
    <user username=¨tomcat¨ password=mypassword roles=¨tomcat,admin,manager¨/>
    </tomcat-users>

    I restarted tomcat using command sudo service tomcat6 restart

    But when I tried to access http://localhost:8080/manager/html again, it timed out. After I commented out the lines I´ve added for the roles and users in the tomcat-users.xml file, I can access http://localhost:8080/manager/html again but it asked me for username and password again.

    Not sure what else I needed to do to get it working. Appreciate if anyone out there could help.

    Thanks a lot!

  2. #2
    Join Date
    Apr 2009
    Beans
    5

    Re: Problem accessing Tomcat 6 manager and host-manager webapp

    I have exactly the same problem,
    can anyone help?
    thank you

  3. #3
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Problem accessing Tomcat 6 manager and host-manager webapp

    Sounds like an error in your xml. See this thread. Try the default one posted and see if it works for you.

    http://ubuntuforums.org/showthread.p...hlight=tomcat6

  4. #4
    Join Date
    Nov 2007
    Location
    Boston, USA
    Beans
    524
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Problem accessing Tomcat 6 manager and host-manager webapp

    I went around in circles with this to for a couple of hours and then realized, like the OP, I didn't delete the stupid XML comments that surround the sample roles and users!

  5. #5
    Join Date
    Dec 2009
    Beans
    1

    Re: Problem accessing Tomcat 6 manager and host-manager webapp

    DOH!
    I feel like such a noob!
    The xml comments!

  6. #6
    Join Date
    Jul 2008
    Beans
    12
    Distro
    Ubuntu Intrepid Ibex (testing)

    Re: Problem accessing Tomcat 6 manager and host-manager webapp

    Sweet mother of God. Total face-palm there

    Many thanks, HDave!

  7. #7
    Join Date
    Aug 2008
    Beans
    1

    Re: Problem accessing Tomcat 6 manager and host-manager webapp

    Wow, I didn't even notice the comment lines, thanks

  8. #8
    Join Date
    Feb 2007
    Beans
    4

    Re: Problem accessing Tomcat 6 manager and host-manager webapp

    Me neither, thanks for sharing

  9. #9
    Join Date
    Nov 2006
    Location
    Switzerland
    Beans
    21
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Problem accessing Tomcat 6 manager and host-manager webapp

    Kind of a stupid pitfall

    Thanks guys...
    Something old, something new, something blue...

  10. #10
    Join Date
    Nov 2006
    Beans
    59
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Problem accessing Tomcat 6 manager and host-manager webapp

    Quote Originally Posted by HDave View Post
    I went around in circles with this to for a couple of hours and then realized, like the OP, I didn't delete the stupid XML comments that surround the sample roles and users!
    Unbelievable!! You wouldn't believe the things I had tried in 4 hours time to get it running. Thanks Dave!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •