Hi All!

I am using RH9 with Tomcat 5.5.3

I have installed Tomcat as a Daemon process according to these instructions:
http://phd.netcomp.monash.edu.au/RobertMarkBram/protected/notes/installingTomcat5.txt


I have $CATALINA_HOME/conf/server.xml set up so that Tomcat runs on port 8080.

But when I access http://localhost:8080 I get "Cannot connect to remote server".

When I examine catalina.out log I find the following exception:
20/10/2004 00:32:51 org.apache.catalina.startup.Bootstrap initClassLoaders
SEVERE: Class loader creation threw exception
java.lang.NoClassDefFoundError: javax/management/MBeanServerFactory
...

Further debugging information is below.

Any ideas about what is going wrong would be most appreciated!

Rob
:)


/usr/local/jakarta-tomcat-5.5.3/logs #host localhost Host localhost not found: 3(NXDOMAIN)

/usr/local/jakarta-tomcat-5.5.3/logs
#cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost       localhost
127.0.0.1       localhost       dijong

/usr/local/jakarta-tomcat-5.5.3/logs
#cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search @home
nameserver 192.168.0.1

/usr/local/jakarta-tomcat-5.5.3/logs
#tail -13 catalina.out
20/10/2004 00:32:51 org.apache.catalina.startup.Bootstrap initClassLoaders
SEVERE: Class loader creation threw exception
java.lang.NoClassDefFoundError: javax/management/MBeanServerFactory
at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:161)
at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:97)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:189)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:257)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:201)
jsvc.exec error: Service exit with a return value of 1


My /etc/rc.d/init.d/Tomcat5 is below.


#!/bin/sh
##############################################################################
#
# Copyright 2004 The Apache Software Foundation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##############################################################################
#
# Small shell script to show how to start/stop Tomcat using jsvc
# If you want to have Tomcat running on port 80 please modify the server.xml
# file:
#
# <!-- Define a non-SSL HTTP/1.1 Connector on port 80 -->
# <Connector className="org.apache.catalina.connector.http.HttpConnector"
# port="80" minProcessors="5" maxProcessors="75"
# enableLookups="true" redirectPort="8443"
# acceptCount="10" debug="0" connectionTimeout="60000"/>
#
# That is for Tomcat-5.0.x (Apache Tomcat/5.0)
#
# Adapt the following lines to your configuration
JAVA_HOME=/usr/java/j2sdk1.4.2_02
CATALINA_HOME=/usr/local/jakarta-tomcat-5.5.3
DAEMON_HOME=/usr/local/jakarta-tomcat-5.5.3
TOMCAT_USER=robertmarkbram
TMP_DIR=/var/tmp
CATALINA_OPTS=
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar


case "$1" in
  start)
    #
    # Start Tomcat
    #
    $DAEMON_HOME/bin/jsvc \
    -user $TOMCAT_USER \
    -home $JAVA_HOME \
    -Dcatalina.home=$CATALINA_HOME \
    -Djava.io.tmpdir=$TMP_DIR \
    -outfile $CATALINA_HOME/logs/catalina.out \
    -errfile '&1' \
    $CATALINA_OPTS \
    -cp $CLASSPATH \
    org.apache.catalina.startup.Bootstrap
    #
    # To get a verbose JVM
    #-verbose \
    # To get a debug of jsvc.
    #-debug \
    ;;

  stop)
    #
    # Stop Tomcat
    #
    PID=`cat /var/run/jsvc.pid`
    kill $PID
    ;;

  *)
    echo "Usage tomcat.sh start/stop"
    exit 1;;
esac



--
Robert Mark Bram
http://phd.netcomp.monash.edu.au/RobertMarkBram/default.asp
B.Comp.(Systems Development/Business Systems)
B.Net.Comp.(Hons)
Doctor of Philosophy Student

School of Network Computing
Faculty of Information Technology
Monash University
Peninsula Campus
McMahons Rd
Frankston, VIC 3199
AUSTRALIA

Phone:  61 3 9904 4394
Facsimile:  61 3 9904 4124
Email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to