TomCat default password / Ganib installation

x1024

Active Member
May 19, 2014
25
0
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!"
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
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.
 

x1024

Active Member
May 19, 2014
25
0
1
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" />
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?


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


2. Did you modify the .htaccess file after extracting the WAR package?

Thank you.
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
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
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.
 

x1024

Active Member
May 19, 2014
25
0
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
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.