tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Gray" <>
Subject tomcat 5 will not start
Date Sun, 11 Jan 2004 06:55:55 GMT
Hi All,

I've recently unpacked tomcat 5.0.16 and am trying to use it with Apache 2 
and the Coyote/JK2 AJP 1.3 connector (on Redhat linux 7.3).  When I try to 
start tomcat using the script, it appears to start briefly (I can 
see Java processes) then all the processes just die.  I see the following in 
the catalina.out :

Jan 11, 2004 4:10:17 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(
        at java.lang.String.substring(
The error appears to be related to the "Coyote/JK2 AJP 1.3 connector" Host 
sections in my server.xml.  When I hash out the "Host" sections in my 
server.xml Tomcat does not die.  Even simple jsp apps in the Host section 
seem to cause the problem.  I've searched google and the archives but have 
not found anyone with a similar issue.

Previously this was all working for Tomcat 4, if you can think what might be 
causing this problem please let me know.

I'll list my server.xml below in case you want to view it,

Thanks for your time

server.xml :
<Server port="8005" shutdown="SHUTDOWN" debug="2">
  <!-- Define an Apache-Connector Service -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
" />

<!-- Global JNDI resources -->

    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>

    <!-- Editable user database that can also be used by
        UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container"
       description="User database that can be updated and saved">
    <ResourceParams name="UserDatabase">


<Service name="Catalina">
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    <Connector port="8080"
               disableUploadTimeout="true" />

<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
port="8009" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="10" debug="1" connectionTimeout="20000"
               protocol="AJP/1.3" />

        <Engine name="Catalina" defaultHost="" debug="2">

      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="apache_log." suffix=".txt"
<Host name="" debug="0"
                unpackWARs="true" autoDeploy="true">
                <Context path="" docBase="" debug="1"/>

                <Logger className="org.apache.catalina.logger.FileLogger"



E-mail just got a whole lot better. New ninemsn Premium. Click here

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message