Planet_Master

Well-Known Member
Apr 18, 2002
232
0
316
New Yorker
I just upgraded my personal server to cPanel 9.9.0-E26 and noticed in WHM under add-on modules there is a new add-on for Tomcat, to my surprise, amongst other new modules for stats and logs..

Name: tomcat
Author: cPanel Inc.
Version: 0.7-5.0.28
Description: Tomcat Jsp Servlet Support !!BETA (almost)!!
Price: free

Does anyone know what this is exactly? I havent enabled it yet because would like more info first. Anything Dgbaker, casey????
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Yes, it installs tomcat 5.0.28 and runs it as the user tomcat. Quite simply, it works! The same restrictions apply, though. public_html must still be chmod'ed 755 for it to work.
 

Planet_Master

Well-Known Member
Apr 18, 2002
232
0
316
New Yorker
casey said:
Yes, it installs tomcat 5.0.28 and runs it as the user tomcat. Quite simply, it works! The same restrictions apply, though. public_html must still be chmod'ed 755 for it to work.

WOW, that sounds like a very good thing. I will certainly test this out. One thing does it work under all OS's? Red Hat 9 and RHE 3...etc

This may put dgbaker out of work! :rolleyes:
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
casey said:
Yes, it installs tomcat 5.0.28 and runs it as the user tomcat. Quite simply, it works! The same restrictions apply, though. public_html must still be chmod'ed 755 for it to work.
Try uninstalling and reinstalling if this is the case (you have stuff left over from a previous install) as it should work without the 755.
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
Planet_Master said:
WOW, that sounds like a very good thing. I will certainly test this out. One thing does it work under all OS's? Red Hat 9 and RHE 3...etc

This may put dgbaker out of work! :rolleyes:
Should work under everything but freebsd
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
bdraco said:
Try uninstalling and reinstalling if this is the case (you have stuff left over from a previous install) as it should work without the 755.
I probably do. Thanks. I'll try that.
 

Planet_Master

Well-Known Member
Apr 18, 2002
232
0
316
New Yorker
Well not jumping for joy yet...I ran the installer on RH9 Apache1.31 server and it nicely installed and compiled Java SDK, mod_JK connectors and Tomcat 5.28.

Now after that was completed I checked to see if Apache was running and all was good. Installed servlets on a test JSP account and then restarted the Tomcat server.

The result was this:
http://music-axis.com/home.jsp

Obviously not the desired outcome.
Noticed a few things as well. The Java SDK is installed in /usr/local/j2sdk1.4.2_05 not in the usual /usr/java

Also noticed there is no shortcut to jre in /usr/local
So I ran in shell ln -s /usr/local/j2sdk1.4.2_05/jre/ /usr/local/jre because of habit. Need this for JDBC support.

Casey did your JSP's start working immediately or did you need to go to the Tomcat manager and add them manually?
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
Planet_Master said:
Well not jumping for joy yet...I ran the installer on RH9 Apache1.31 server and it nicely installed and compiled Java SDK, mod_JK connectors and Tomcat 5.28.

Now after that was completed I checked to see if Apache was running and all was good. Installed servlets on a test JSP account and then restarted the Tomcat server.

The result was this:
http://music-axis.com/home.jsp

Obviously not the desired outcome.
Noticed a few things as well. The Java SDK is installed in /usr/local/j2sdk1.4.2_05 not in the usual /usr/java

Also noticed there is no shortcut to jre in /usr/local
So I ran in shell ln -s /usr/local/j2sdk1.4.2_05/jre/ /usr/local/jre because of habit. Need this for JDBC support.

Casey did your JSP's start working immediately or did you need to go to the Tomcat manager and add them manually?

If you've had tomcat installed before, try uninstalling, then reinstalling to make sure there are no lingering artifacts.
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Planet_Master said:
Casey did your JSP's start working immediately or did you need to go to the Tomcat manager and add them manually?
Started working immediately. This was on CentOS, though.
 

Planet_Master

Well-Known Member
Apr 18, 2002
232
0
316
New Yorker
bdraco said:
Try uninstalling and reinstalling if this is the case (you have stuff left over from a previous install) as it should work without the 755.

I did that and it is working now. Added the JDBC drivers and did a restart and lovely is the word!

Thx bdraco and the cPanel team for keeping us in the dark on the changes only to surprise us with something very special...>Cheers!!! :D