The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TomCat default password / Ganib installation

Discussion in 'General Discussion' started by x1024, Oct 29, 2014.

  1. x1024

    x1024 Active Member

    Joined:
    May 19, 2014
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Dear cPanel staff,

    According to the instructions on these 2 page we have successfully installed Tom Cat on our server

    1. Introduction to Tomcat
    2. How to Deploy Java Applications

    Until here is so far so good...

    [HR][/HR]

    However we are facing 2 problems:

    1. Changing default password for TomCat?
    Where do we alter the default password for "Server Status" & "Manager App"? Since the original TomCat method doesn't apply to cPanel's structure.


    2. After extracting Ganib's WAR file with File Manager, what's next?
    After understanding the installation process from the official website, we noticed the process is different from cPanel's How to Deploy Java Application.

    We have setup Ganib as mentioned by cPanel's How to Deploy Java Application and unzipped the WAR file, however we are lost what to do next in order to display the pages properly.

    So far we are still seeing "Apache Tomcat/7.0.42" and "If you're seeing this, you've successfully installed Tomcat. Congratulations!"
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    1. The path to this file for Tomcat 7 when installed through EasyApache is:

    /usr/local/easy/etc/easy-tomcat7/tomcat-users.xml

    An example entry is:

    Code:
    <user name="cptest" password="cpanel" roles="standard,manager-gui" />
    2. Did you modify the .htaccess file after extracting the WAR package?

    Thank you.
     
  3. x1024

    x1024 Active Member

    Joined:
    May 19, 2014
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    We have updated tomcat-users.xml in the advised directory & restarted but still cannot login
    Our code is as following:

    Code:
    <role rolename="standard"/>
    <role rolename="admin-gui"/>
    <role rolename="admin-script"/>
    <role rolename="manager"/>
    <role rolename="manager-gui"/>
    <role rolename="manager-script"/>
    <role rolename="manager-jmx"/>
    <role rolename="manager-status"/>
    <user name="cptest1" password="cpanel" roles="admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status" />
    <user name="cptest2" password="cpanel" roles="standard,manager-gui" />

    Could you advise on what we have done wrong?


    ****************************
    ****************************
    ****************************


    Yes we have added the following line to .htaccess but still displays the default page

    SetHandler jakarta-servlet
    SetEnv JK_WORKER_NAME ajp13

    We find JK_WORKER_NAME might be a syntax so we look up on Google but found nothing

    If JK_WORKER_NAME is a syntax which we need to replace
    Could you advise what do we need to look for?
    A directory or a file?

    Ganib is our installation, we could send our login info if required.

    Thank you
     
    #3 x1024, Nov 1, 2014
    Last edited: Nov 1, 2014
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Feel free to open a support ticket using the link in my signature so we can take a closer look. Note that we can only verify that Tomcat is installed and working as intended. We won't be able to troubleshoot specific script issues, and instead will only be able to upload examples and show you that they work as intended.

    Thank you.
     
  5. x1024

    x1024 Active Member

    Joined:
    May 19, 2014
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Dear Michael, thank you very much for your kind assistance.

    Most definitely with pleasure, we understand you hold no means of scripting for us
    Only to make sure that the software runs as it is designed to

    The ticket is submitted, request id is: 5656881

    Thank you once again for your kind assistance
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    To update, per the support ticket, it looks like this issue was specific to the application being used as test applications/pages were able to load successfully.

    Thank you.
     
Loading...

Share This Page