blueshift

Active Member
Aug 26, 2001
41
0
306
Anyone know where to download the 4.0.3 build for Tomcat? The latest version is so problematic that I just reversed back to 3.0.
 

Shikha

Member
Nov 13, 2002
16
0
151
I suppose, it should be at http://layer1.cpanel.net/

By the way, what problem you are getting with Tomcat? Is that related to memory (RAM)?

Thanks.

Shikha
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
[quote:ccc81177a1][i:ccc81177a1]Originally posted by blueshift[/i:ccc81177a1]

Anyone know where to download the 4.0.3 build for Tomcat? The latest version is so problematic that I just reversed back to 3.0.[/quote:ccc81177a1]

We have a copy of 4.0.3 available at the following address;

http://www.virtual-hosting.ca/jsp-install-4.x.tar.gz
 

blueshift

Active Member
Aug 26, 2001
41
0
306
The technical issue is that it cannot be run on the port specified in server.xml. But no matter how i configure the server.xml the problem still exists. I give up. I will upgrade to 4.0.3 instead.
 

blueshift

Active Member
Aug 26, 2001
41
0
306
Hey I have problem running 4.0.3 too. Do you know any special instructions that I need to do before I can get this up and running? Right now, but JSP scripts are returning an Internal Server Error. Please help. thanks so much.
 

blueshift

Active Member
Aug 26, 2001
41
0
306
By meaning owned by the correct user, you mean the scripts should be owned by the user who uploads it? E.g. if user root uploads a JSP script, it should be owned by root right?
 

blueshift

Active Member
Aug 26, 2001
41
0
306
then it shouldn't be the user.. since my users' home directories have the same names as their usernames. So user root has /home/root as its home directory. So automatically the owner is correct. Any other reasons why JSP does not work properly?
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
No,

Okay let me try to explain. HTTP does not run it, a jsp is called through the browser and the tomcat engine renders the code to screen. When we say owner we are talking about the owner of the domain space that it is in, for example;

For *.jsp in /home/user1/www

chown user1:user1 *.jsp

Also make sure in /home/user1/www you have the following directory structure,

/home/user1/www/WEB-INF/
/home/user1/www/WEB-INF/classes
/home/user1/www/WEB-INF/lib

In httpd.conf for the domain that requires JSP make sure the following exists for that virtualhost.

& IfModule mod_jk.c &
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
& /IfModule &


In the server.xml make sure the following exists.

& Host name=&domain.com& appBase=&/home/user1/public_html&&
& Context path=&& reloadable=&true& docBase=&/home/user1/public_html& debug=&1&/&
& /host &
& Host name=&www.domain.com& appBase=&/home/user1/public_html&&
& Context path=&& reloadable=&true& docBase=&/home/user1/public_html& debug=&1&/&
& /host &

Note there are two entries, one with www one without.

These are the first things to check when having issues with jsp's.
 

blueshift

Active Member
Aug 26, 2001
41
0
306
Yes what you said just means what I said. Since when WHM creates an account with the username 'user1', it creates the directory /home/user1. So when FTP user user1 uploads a JSP script to public_html, it's automatically owned by user1. So in other words, when it's uploaded by user1, it does not need to be chowned again. Let me know if I am wrong.

When you use the Install Servlets plugin in WHM, it automatically inserts
& IfModule mod_jk.c &
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
& /IfModule &

as well as
& Host name=&domain.com& appBase=&/home/user1/public_html&&
& Context path=&& reloadable=&true& docBase=&/home/user1/public_html& debug=&1&/&
& /host &
& Host name=&www.domain.com& appBase=&/home/user1/public_html&&
& Context path=&& reloadable=&true& docBase=&/home/user1/public_html& debug=&1&/&
& /host &

So I don't think the problem is an issue with the owner of the file, nor the missing of the required codes in httpd.conf and server.xml. Are there any other possibilities?

Thank you once again. I really appreciated you guys helping me.
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
Check to see if there is anything in this directory,

/usr/local/jakarta/jakarta-tomcat-4.0/build/work/domain.com/_/

When you call a jsp page the corresponding java code should be here.

This will tell you if tomcat is even trying to render the page at all.

Also check the Tomcat logs for any loader errors and such.