LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Install Tomcat into Fedora Core 2 (https://www.linuxquestions.org/questions/fedora-35/install-tomcat-into-fedora-core-2-a-252777/)

treotan 11-09-2004 08:52 AM

Install Tomcat into Fedora Core 2
 
I just install J2SDK 1.4.2 and tomcat 5.0.28 into the Fedora Core 2; and modified the /etc/profile is like as following:

export JAVA_HOME=/usr/java/j2sdk1.4.2_06
CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export CLASSPATH
export CATALINA_BASE=/usr/tomcat
export CATALINA_HOME=/usr/tomcat
PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin

and reboot the machine; Finally try startup the tomcat "/usr/tomcat/bin/startup.sh. It prompted:
[root@localhost bin]# startup.sh
-bash: startup.sh: command not found

How do I fix it? I sure that the Java already installed, coz i check "echo $JAVA_HOME" it shown the path correctly! and type from console "javac" it shown parameter correctly.

Help,

csfalcon 11-09-2004 11:36 AM

try

Code:

./startup.sh
The shell can't find the script, it has nothing to do with JAVA_HOME or anything else.

treotan 11-09-2004 08:23 PM

[root@localhost bin]# ./startup.sh
Using CATALINA_BASE: /usr/tomcat
Using CATALINA_HOME: /usr/tomcat
Using CATALINA_TMPDIR: /usr/tomcat/temp
Using JAVA_HOME: /usr/java/j2sdk1.4.2_06

It seem correct??

csfalcon 11-17-2004 04:32 PM

yep, that looks right.

check http://localhost:8080 to see if tomcat page loads up.

treotan 11-18-2004 08:33 PM

its alright now!

Thks


All times are GMT -5. The time now is 10:12 PM.