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 startup.sh 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(String.java:1480) at java.lang.String.substring(String.java:1447) .......
Stack traces should at least go up to the first Tomcat class, otherwise, you might as well not give the exception.
*********************
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 Regards Anthony
*******************
server.xml :
*******************
<Server port="8005" shutdown="SHUTDOWN" debug="2">
<!-- Define an Apache-Connector Service -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
" />
<!-- Global JNDI resources --> <GlobalNamingResources>
<!-- 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" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved"> </Resource> <ResourceParams name="UserDatabase"> <parameter> <name>factory</name> <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value> </parameter> <parameter> <name>pathname</name> <value>conf/tomcat-users.xml</value> </parameter> </ResourceParams>
</GlobalNamingResources>
<Service name="Catalina"> <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --> <Connector port="8080" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" />
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --> <Connector port="8009" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="10" debug="1" connectionTimeout="20000" useURIValidationHack="false" protocol="AJP/1.3" />
<Engine name="Catalina" defaultHost="test2.foo.bar" debug="2">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="apache_log." suffix=".txt" timestamp="true"/> <Host name="test2.foo.bar" debug="0" appBase="/home/anthony/www/jsp" unpackWARs="true" autoDeploy="true"> <Context path="" docBase="" debug="1"/>
Use "." as the docBase.
-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxx Rémy Maucherat Senior Developer & Consultant JBoss Group (Europe) SàRL xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]