Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat 4.1.27 Install on Redhat 9.0 1

Status
Not open for further replies.

rudejohn

IS-IT--Management
Jul 11, 2003
130
US
I've always worked with Apache on my personal Linux server (at my place), but now I need a Java servlet development environment. I've installed Tomcat on a Windows-based machine with no problems, but I have a few questions for this one. I have some experience, yet am still an amateur with Linux in general.

(1) I have only worked with RPMs for installations before, but Tomcat only supplies the binaries. There are instructions there, but does anyone have any tips/pointers or helpful resources?

(2) On Jakarta's web site
(There are a number of binaries for Tomcat. Sorry for the stupidity of the question, but which, if any, are for Linux? How do I know the difference between the Linux and Windows versions? How do I know which are compatible with Redhat 9.0?

(3) For those of you who may have done this before, any problems I might encounter in the configuration? Will I need the CONNECTOR between Apache/Tomcat, or can I use Tomcat as a standalone web server?

Thanks in advance for your help,

RJ


************
RudeJohn
************
 
1) Yes, check out my FAQ here --> The FAQ is on setting up Citrix NFuse on Linux with Apache and Tomcat, but you can just follow the Tomcat and Apache sections.

2) You want this file, jakarta-tomcat-4.1.27.tar.gz. You know its a Linux/Unix file because of the extension, .tar.gz. This is source code, so its possible to get it working on any version of Linux/Unix.

3) You can use the mod_jk connector, or you can run Tomcat as a standalone. Its up to you.


ChrisP
RHCE, LPIC-1, CCNA, CNE, MCSE, +10 others
 
Thanks. Very helpful. A star for your thoughts.

RJ

************
RudeJohn
************
 
Okay, a question. Your FAQ says to run the command:

./j2sdk-1_4_1_03-linux-i586.bin

And that this command will create a folder called j2sdk1.4.1_03 in the current directory

When I run this, all it does is unpack an RPM called j2sdk... in the current folder. I installed this rpm (rpm -ivh), but I cannot find any such folder. Which means I can't create the link you suggested. Any help?

Thanks,

Rj

************
RudeJohn
************
 
sorry, fixed my problem, ignore my stupid ramblings... i got the wrong file (i got the .rpm.bin one)

RJ

************
RudeJohn
************
 
Okay I've run into another problem.

I have the SDK installed (1.4.2_01).

I have installed Tomcat.

When I try to START Tomcat, it gives me the following error:

[root@localhost bin]# ./startup.sh
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program

I'm in /usr/local/jakarta-tomcat-4.1.27/bin

My environment variable is set in /etc/profile as:
JAVA_HOME=/usr/local/java

I have a symbolic link that is supposed to link /usr/local/java to the SDK folder (here is the link):

[root@localhost java]# ls -al
total 78824
drwxr-xr-x 2 root root 4096 Sep 5 15:25 .
drwxr-xr-x 15 root root 4096 Sep 4 18:20 ..
-rw-r--r-- 1 root root 40441446 Apr 30 21:48 j2sdk-1_4_1_03-fcs-linux-i586.rpm
-rwxr-xr-x 1 root root 40170370 Sep 4 17:22 j2sdk-1_4_1_03-linux-i586-rpm.bin
lrwxrwxrwx 1 root root 25 Sep 5 15:25 j2sdk1.4.2_01 -> /usr/local/j2sdk1.4.2_01/

Why is it not working? Did I create the link wrong? I used the command in your FAQ (and edited the sdk version appropriately). Any help would be greatly appreciated.

RJ




************
RudeJohn
************
 
The link should look like this...

ln -s /usr/local/j2sdk1.4.1_03/ /usr/local/java

I can't tell what you did above because you didn't tell me your current working directory when you did the "ls -l", but you should have two folders in /usr/local/. A folder called j2sdk1.4.1_03 and a symlink called java. The directory should look like this...

[root@citrix root]# ls -l /usr/local/
total 64
drwxr-xr-x 15 root root 4096 Jul 30 12:03 apache2
drwxr-xr-x 15 root root 4096 Feb 6 1996 bin
-rw-r--r-- 1 root root 81 Feb 6 1996 doc
drwxr-xr-x 2 root root 4096 Feb 6 1996 etc
drwxr-xr-x 2 root root 4096 Jun 22 2001 include
drwxr-xr-x 9 root root 4096 Jun 19 12:52 j2sdk1.4.1_03
lrwxrwxrwx 1 root root 25 Jun 19 12:52 java -> /usr/local/j2sdk1.4.1_03/
drwxr-xr-x 2 root root 4096 Feb 6 1996 lib
drwxr-xr-x 2 root root 4096 Jun 22 2001 libexec
drwxr-xr-x 2 root root 4096 Jun 19 16:56 sbin
drwxr-xr-x 4 root root 4096 May 29 09:44 share
drwxr-xr-x 5 root root 4096 Jun 26 08:51 src
drwxr-xr-x 9 root root 4096 Jun 19 13:00 ssl
drwxr-xr-x 11 root root 4096 Jun 19 12:49 tomcat
[root@citrix root]#


Also, in your /etc/profile file, you need do make sure you export the variable.

export JAVA_HOME=/usr/local/java



ChrisP
RHCE, LPIC-1, CCNA, CNE, MCSE, +10 others
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top