installation of TOMCAT does not run

stacman

Member
Aug 25, 2001
9
0
301
Hello

can anyone pls help?

i have a server previously with a running tomcat. it suddenly did not work and so i uninstalled/reinstalled over and over again the ysstem said succesful installation but when i go to

http://bravo.myhostingservice.net:8080/

it does not show and in the WHM server status is says FAILED

after reinstall in the end message in WHM

Done
Installing starttomcat and stoptomcat files...Done
Adding TomCat user...Done
Adding includes to httpd.conf...Done
Adding TomCat to chkserv.d...Stopping chkservd: [ OK ]
Starting chkservd: [ OK ]
Done
Setting up the web.xml...Done
Setting up rc.local...Done
Finishing Install...Done
Restarting httpd.../etc/rc.d/init.d/httpd start: httpd started
Done
Starting TomCat...Scanning httpd.conf...X.X..X..X..X..X..X..X..X..X..X..X..X..X..X...X.X..X..X..X..X..X..X..X..X..X..X..X..X..X..XDone
Install Complete
The admin url is http://bravo.myhostingservice.net:8080/
The admin user is root
The admin password is

Done

Process Complete

but it is FAILED in the service status
and when i tried to restart it, the message is

Attempting to restart tomcat
Waiting for tomcat to restart.... . . . . . . . . . . finished.

tomcat status


tomcat has failed, please contact the sysadmin (result was "tomcat is not running").

can you pls help me? i cannot contact cpanel as our license is through a hosting datacenter and if we get support from them, they say its a 3rd party software so we have to pay

pls help this is just a simple thing getting complicated thanks for any help

stacman
 

snownet

Member
Mar 20, 2005
9
0
151
Ok here is what I learnt after a while and happy to pass it on.

1. Go into whm and uninstall it under addon modules.
2. SSH into your server, cd /usr/local
3. rm -f -r -d jdk1.5.0_02 this will delete the folder contence.
4. go back into whm and re-install tomcat and wait. take about 2 mins and down the bottom you should get the root username and password and link.
5. if you can't get into port 8080 for eg, yoursite.com:8080 you may have to add port 8080 in your common ingress file in your firewall like i did with APF.

Apart from that it should work, I have deleted it several times with success but am having problems intalling the admin side of it if anyone wants to help :)
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
Also keep in mind that the status screens only update every 8 or 9 minutes. Do "service chkservd restart" to refresh it quicker. Also check if indeed it is running...

ps -ef |grep java
netstat -an |grep 8080