Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Server 8.10 + Tomcat = Can't login Tomcat Manager

  1. #1
    Join Date
    Jul 2006
    Location
    Girona (Catalonia)
    Beans
    51
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question Server 8.10 + Tomcat = Can't login Tomcat Manager

    Hi,

    I've installed a Ubuntu 8.10 Server with the Tomcat preconfigured package. I can access to http://remoteip:8080 and the "It works !" appears. In that page there are a link to the Tomcat Manger: http://remoteip:8080/manager/html and a login request appears. No user can login.

    I've edited /etc/tomcat6/tomcat-users.xml to add a new role:
    <role rolename="manager"/>
    And a user with that role:
    <user username="tomcat" password="tomcat" roles="manager"/>
    And another user to test:
    <user username="test" password="test" roles="manager"/>
    And restarted the server:
    /etc/init.d/tomcat6 restart

    But the problem is not solved, I can't access to Tomcat Manger

    Any idea?

  2. #2
    Join Date
    Jul 2006
    Location
    Girona (Catalonia)
    Beans
    51
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Server 8.10 + Tomcat = Can't login Tomcat Manager

    Someone can move this post to the Server threat?

  3. #3
    Join Date
    Jul 2006
    Location
    Girona (Catalonia)
    Beans
    51
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Server 8.10 + Tomcat = Can't login Tomcat Manager

    nobody?

  4. #4
    Join Date
    Apr 2007
    Location
    Belgium
    Beans
    1,528

    Re: Server 8.10 + Tomcat = Can't login Tomcat Manager

    Try using one user instead and add others later on when it works. That makes it less complicated to test with.

    I find it strange that you would only add the manager role to tomcat. Try this instead:
    HTML Code:
    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
      <role rolename="manager"/>
      <role rolename="tomcat"/>
      <role rolename="role1"/>
      <user username="both" password="tomcat" roles="tomcat,role1"/>
      <user username="tomcat" password="tomcat" roles="tomcat"/>
      <user username="test" password="test" roles="manager"/>
      <user username="role1" password="tomcat" roles="role1"/>
    </tomcat-users>
    Disclaimer: I am currently suffering from severe CSD (Compulsive Sarcasm Disorder).
    My Site | Linux User #452328 | Running Arch Linux on Sony Vaio VGN-SZ61XN/C since October 2008

  5. #5
    Join Date
    Jul 2006
    Location
    Girona (Catalonia)
    Beans
    51
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Server 8.10 + Tomcat = Can't login Tomcat Manager

    Thx, solved

  6. #6
    Join Date
    Oct 2008
    Beans
    1

    Re: Server 8.10 + Tomcat = Can't login Tomcat Manager

    Also had the same situation ...

    The default tomcat-users.xml file:
    <tomcat-users>
    <!--
    <role rolename="tomcat"/>
    <role rolename="manager"/>
    <user username="tomcat" password="tomcat" roles="tomcat"/>
    <user username="both" password="tomcat" roles="tomcat"/>
    <user username="dennis" password="tomcat" roles="manager"/>
    -->
    </tomcat-users>

    cause of the problem: I was not able to remove "<!--" and "-->"

  7. #7
    Join Date
    Sep 2008
    Beans
    1

    Re: Server 8.10 + Tomcat = Can't login Tomcat Manager

    Quote Originally Posted by cyberdenz View Post
    cause of the problem: I was not able to remove "<!--" and "-->"
    Don't worry, I wasn't able either!

  8. #8
    Join Date
    Nov 2007
    Beans
    1

    Re: Server 8.10 + Tomcat = Can't login Tomcat Manager

    Quote Originally Posted by sbittante View Post
    Don't worry, I wasn't able either!
    *smacks forehead* DOH! God, I feel like such a noob!

  9. #9
    Join Date
    May 2007
    Location
    Woking, England
    Beans
    12
    Distro
    Kubuntu 7.04 Feisty Fawn

    Angry Re: Server 8.10 + Tomcat = Can't login Tomcat Manager

    Thank you for beating me, cowering in n00by shame, with a big clue bat. <!-- I must be blind too -->

  10. #10
    Join Date
    Jul 2008
    Location
    $HOME
    Beans
    177
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Server 8.10 + Tomcat = Can't login Tomcat Manager

    Wow.... What a noob move, i have had better days . thanks for the help.
    Ubuntu 8.04/Dell Inspiron 700m Intel Celeron D 1.67Ghz 756MB G.Skill/60GB HDD
    Ubuntu 8.10 Intrepid AMD64bit SE/Custom XFX mobo/AMD Phenom X3 2.1Ghz/4GB G.Skill DDR2 800Mhz/1840GB HDD(4)

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •