DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4407>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4407

Tomcat 4.0.1 will not run on Redhat 7.1

           Summary: Tomcat 4.0.1 will not run on Redhat 7.1
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I am trying to install the binary versions of Tomcat
(version 4.0.1) on a Redhat (7.1) system.  I already have the
j2sdk-1_3_1_01-linux-i386-rpm installed.  After following the
instructions included with the binary distribution, I tried to start
the server like this:

$CATALINA_HOME/bin/startup.sh

Doing a "ps" immediately after running the above command shows a
bunch of processes like this one:

ps -auxwww | fgrep jakarta
root      2645  0.0  7.0 178312 8868 pts/2   S    13:15   0:00 /usr/java/jdk1.3.
1_01/bin/i386/native_threads/java -classpath /usr/local/jakarta-tomcat-4.0.1/bin
/bootstrap.jar:/usr/java/jdk1.3.1_01/lib/tools.jar -Dcatalina.base=/usr/local/ja
karta-tomcat-4.0.1 -Dcatalina.home=/usr/local/jakarta-tomcat-4.0.1 org.apache.ca
talina.startup.Bootstrap start

However, all of these process die after a few seconds.  After digging
through the shell scripts in $CATALINA_HOME/bin, I have found that I
can also try to start the server in the current window like this:
root@red# $CATALINA_HOME/bin/catalina.sh run
Using CLASSPATH:     /usr/local/jakarta-tomcat-4.0.1/bin/bootstrap.jar:/usr/java
/jdk1.3.1_01/lib/tools.jar
Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.0.1
Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.0.1
Using JAVA_HOME:     /usr/java/jdk1.3.1_01
/usr/local/jakarta-tomcat-4.0.1/bin/catalina.sh: line 234:  2653 Segmentation fa
ult      $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP -Dcatalina.base=$CATA
LINA_BASE -Dcatalina.home=$CATALINA_HOME org.apache.catalina.startup.Bootstrap "
$@" start
root@red#

Notice the Segmentation fault.

A third method I have experimented with is debug mode:

root@red# $CATALINA_HOME/bin/catalina.sh run
> run

This mode brings the server all the way up and I am finally able
to connect to the server through a web browser like this:

http://localhost:8080/

Can anyone shed any light on why tomcat will not run as a daemon
or in a window.  Running it in debug mode changes something but
I don't know what.

Reply via email to