You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Craig R. McClanahan" <cm...@mytownnet.com> on 2000/02/28 04:52:30 UTC

Configuring Apache+Tomcat for Multiple JVMs

I'm trying to set up an Apache+Tomcat configuration (Apache 1.3.12,
Tomcat v3.1_m2_rc2, RedHat 6.1, Linux JDK 1.2.2 from JavaSoft) with
multiple JVMs, one per developer, running (for now) all on the same
server.  In my tomcat.conf file I've set up, among others:

    ApJServMount /craig ajpv12://localhost:8001/examples

to try to access the "examples" webapp installed in my development
directory.  My Tomcat config was modified to use port 8001 instead of
8007 for the Apache connector -- other developers will have other ports.

When I try to access <http://www.mycompany.com/craig>, I get the
following exception on the console

    Uncaught exception java.lang.StringIndexOutOfBoundsException: String
index out of range: -3
        at java.lang.String.substring(String.java:1488)
        at java.lang.String.substring(String.java:1455)
        at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp12ConnectionHandler.java:249)

        at
org.apache.tomcat.service.connector.AjpConnectionHandler.processConnection(Ajp12ConnectionHandler.java:127)

        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:334)

        at java.lang.Thread.run(Thread.java:475)

and a 404 error is returned to the client.  If you try a specific page
URL (like <http://www.mycompany.com/craig/jsp/index.html>) you still get
a 404 error, but no exception.  No other messages are logged anywhere I
could find, even with "ApJServLogLevel debug" set in "tomcat.conf".

Any ideas what I'm doing wrong?

Craig McClanahan