tomcat status cannot be detected

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
9
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
Ahh! The way the status should look

Code:
Waiting for tomcat to restart.... . . . . . . . . . . finished. 

tomcat status root     20552  1.3  2.1 12500 11084 ?       S    19:05   0:00 /usr/local/cpanel/whostmgr/bin/whostmgr ./restomcat
root     20581  0.0  0.1  1584  540 ?        S    19:05   0:00 jsvc.exec -user tomcat -cp ./bin/bootstrap.jar -Djava.endorsed.dirs=./common/endorsed org.apache.catalina.startup.Bootstrap -debug -outfile ./logs/catalina.out -errfile ./logs/catalina.err
tomcat   20582 99.9  4.7 224488 24064 ?      R    19:05   0:05 jsvc.exec -user tomcat -cp ./bin/bootstrap.jar -Djava.endorsed.dirs=./common/endorsed org.apache.catalina.startup.Bootstrap -debug -outfile ./logs/catalina.out -errfile ./logs/catalina.err

 

tomcat started ok
 

Planet_Master

Well-Known Member
Apr 18, 2002
232
0
316
New Yorker
Update: cPanel's updted scripts do absolutly nothing to fix the problem, so everything is as it was with Tomcat...doesnt work.

As for dgbakers installer: I did get Tomcat to work for about 24 hours at which time it breaks for some reason. So I reinstalled and after about 12 hours the same result. Also the JDBC will not load for some reason.

I am running out of hair guys.
 

Planet_Master

Well-Known Member
Apr 18, 2002
232
0
316
New Yorker
dgbaker said:
I don't know any other options at this point. When it broke, was it the same WHM issue or another one?

No wasnt the same as the current Tomcat fiasco, it just was failing and was getting 500 internal server errors on JSP pages. I am doing a clean install tonight and hopefully it will stay working.
Also have you noticed the new Tomcat add-on module in WHM? Very interesting, see my post here:
http://forums.cpanel.net/showthread.php?t=29154

Any info on this?
 

kashif

Active Member
Jul 11, 2003
29
0
151
Lahore
Issue of Tomcat, Suddenly started problems

Dear Friends,

I also got issue with tomcat. When it is restarted from SSH by /usr/local/jakarta/tomcat/bin/shutdown.sh
/usr/local/jakarta/tomcat/bin/startup.sh

then it works fine, but after 24 hours again JDBC errors start to show. What is the cause. I have recompiled jsvc and change its permission from root to tomcat. When I start from command
/scripts/restartsrv_tomcat

then ths output is
-----------------------------------
[~]# /scripts/restartsrv_tomcat
jsvc debug: +-- DUMPING PARSED COMMAND LINE ARGUMENTS --------------
jsvc debug: | Detach: True
jsvc debug: | Show Version: No
jsvc debug: | Show Help: No
jsvc debug: | Check Only: Disabled
jsvc debug: | Run as service: No
jsvc debug: | Install service: No
jsvc debug: | Remove service: No
jsvc debug: | JVM Name: "null"
jsvc debug: | Java Home: "null"
jsvc debug: | PID File: "/var/run/jsvc.pid"
jsvc debug: | User Name: "tomcat"
jsvc debug: | Extra Options: 3
jsvc debug: | "-Djava.class.path=./bootstrap.jar"
jsvc debug: | "-Djava.endorsed.dirs=../common/endorsed"
jsvc debug: | "-verbose"
jsvc debug: | Class Invoked: "org.apache.catalina.startup.Bootstrap"
jsvc debug: | Class Arguments: 2
jsvc debug: | "-security"
jsvc debug: | ""
jsvc debug: +-------------------------------------------------------
jsvc debug: user changed to 'tomcat'
jsvc debug: User 'tomcat' validated
jsvc debug: Home not specified on command line, using environment
jsvc debug: Attempting to locate Java Home in /usr/local/jdk
jsvc debug: Attempting to locate VM configuration file /usr/local/jdk/jre/lib/jv
m.cfg
jsvc debug: Attempting to locate VM configuration file /usr/local/jdk/lib/jvm.cf
g
jsvc debug: VM configuration file not found
jsvc debug: Attempting to locate VM library /usr/local/jdk/jre/lib/i386/classic/
libjvm.so
jsvc debug: Attempting to locate VM library /usr/local/jdk/jre/lib/i386/client/l
ibjvm.so
jsvc debug: Java Home located in /usr/local/jdk
jsvc debug: +-- DUMPING JAVA HOME STRUCTURE ------------------------
jsvc debug: | Java Home: "/usr/local/jdk"
jsvc debug: | Java VM Config.: "null"
jsvc debug: | Found JVMs: 1
jsvc debug: | JVM Name: "null"
jsvc debug: | "/usr/local/jdk/jre/lib/i386/client/libjvm.so"
jsvc debug: +-------------------------------------------------------
jsvc debug: Using default JVM in /usr/local/jdk/jre/lib/i386/client/libjvm.so
jsvc debug: Invoking w/ LD_LIBRARY_PATH=/usr/local/jdk/jre/lib/i386/client:/usr/
local/jdk/jre/lib/i386
jsvc.exec debug: +-- DUMPING PARSED COMMAND LINE ARGUMENTS --------------
jsvc.exec debug: | Detach: True
jsvc.exec debug: | Show Version: No
jsvc.exec debug: | Show Help: No
jsvc.exec debug: | Check Only: Disabled
jsvc.exec debug: | Run as service: No
jsvc.exec debug: | Install service: No
jsvc.exec debug: | Remove service: No
jsvc.exec debug: | JVM Name: "null"
jsvc.exec debug: | Java Home: "null"
jsvc.exec debug: | PID File: "/var/run/jsvc.pid"
jsvc.exec debug: | User Name: "tomcat"
jsvc.exec debug: | Extra Options: 3
jsvc.exec debug: | "-Djava.class.path=./bootstrap.jar"
jsvc.exec debug: | "-Djava.endorsed.dirs=../common/endorsed"
jsvc.exec debug: | "-verbose"
jsvc.exec debug: | Class Invoked: "org.apache.catalina.startup.Bootstrap"
jsvc.exec debug: | Class Arguments: 2
jsvc.exec debug: | "-security"
jsvc.exec debug: | ""
jsvc.exec debug: +-------------------------------------------------------
jsvc.exec debug: user changed to 'tomcat'
jsvc.exec debug: User 'tomcat' validated
jsvc.exec debug: Home not specified on command line, using environment
jsvc.exec debug: Attempting to locate Java Home in /usr/local/jdk
jsvc.exec debug: Attempting to locate VM configuration file /usr/local/jdk/jre/l
ib/jvm.cfg
jsvc.exec debug: Attempting to locate VM configuration file /usr/local/jdk/lib/j
vm.cfg
jsvc.exec debug: VM configuration file not found
jsvc.exec debug: Attempting to locate VM library /usr/local/jdk/jre/lib/i386/cla
ssic/libjvm.so
jsvc.exec debug: Attempting to locate VM library /usr/local/jdk/jre/lib/i386/cli
ent/libjvm.so
jsvc.exec debug: Java Home located in /usr/local/jdk
jsvc.exec debug: +-- DUMPING JAVA HOME STRUCTURE ------------------------
jsvc.exec debug: | Java Home: "/usr/local/jdk"
jsvc.exec debug: | Java VM Config.: "null"
jsvc.exec debug: | Found JVMs: 1
jsvc.exec debug: | JVM Name: "null"
jsvc.exec debug: | "/usr/local/jdk/jre/lib/i386/client/libjvm.s
o"
jsvc.exec debug: +-------------------------------------------------------
jsvc.exec debug: Running w/ LD_LIBRARY_PATH=/usr/local/jdk/jre/lib/i386/client:/
usr/local/jdk/jre/lib/i386
jsvc.exec debug: redirecting stdout to ../logs/catalina.out and stderr to ../log
s/catalina.err
========================================================

When i give this command after startup.sh then there is no issue. But after jdbc errors this command won't fix that. Only from SSH shutdown.sh and startup.sh fixes jdbc errors. What is this? Why tomcat is behaving like this? Is there any permission issue somewhere? But it runs fine for 24hours and then at once starts showing JDBC errors. Kindly if someone has solution for this then tell me. Is there any fix for it? Waiting for prompt response with solution from anyone.

Thankyou,

Regards,
Kashif.