Thanks for your reply.
I followed your instruction and Put a "." as the docBase and this enabled Tomcat to start without error.
However this has now highlighted another problem for me, Tomcat doesn't seem to acknowledge the appBase that I have within the Host section of server.xml. I see in the apache logs that the server is defaulting to the location <tomcat-home>/server/webapps/ instead of the path specified in "appBase". I've checked the config files in the conf dir and can't see why it would do this. I've also tried different configs for appBase, docBase and path but no good. How can I stop Tomcat/Apace from defaulting to the tomcat-home ?
This is probably a really easy solution and I apologise for not seeing it, I am a newbie and have to start somewhere.
Thanks for your time,
From: Remy Maucherat <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: tomcat 5 will not start Date: Sun, 11 Jan 2004 10:17:50 +0100
Anthony Gray wrote: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]
_________________________________________________________________
Hot chart ringtones and polyphonics. Go to http://ninemsn.com.au/mobilemania/default.asp
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
