tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <>
Subject Nasty exception (sometimes on console!) which started Tomcat
Date Tue, 26 Sep 2000 13:53:26 GMT
I'm trying to set up a system where Tomcat runs in both standalone and
JServ modes simultaneously. From what I've read, this shouldn't be tricky.
I have it running standalone on port 19000 and working perfectly. I'm now
trying the JServ part. I'll put the configuration files at the bottom of
this message, but the error I'm getting (when I try to connect to
hostname/jontc/index.html) is the following:

        at org.apache.tomcat.core.ContextManager.handleError(
        at org.apache.tomcat.core.ContextManager.service(
        at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(

This appears on the console which started Tomcat (in the background). If
I add a context line in server.xml:
       <Context path="" docBase="webapps/jon" debug="0" reloadable="true" >

I start to get a more helpful error:
        at java.util.Hashtable.get(
        at org.apache.tomcat.request.SimpleMapper.getPathMatch(
        at org.apache.tomcat.request.SimpleMapper.findContainer(
        at org.apache.tomcat.request.SimpleMapper.requestMap(
        at org.apache.tomcat.core.ContextManager.processRequest(
        at org.apache.tomcat.core.ContextManager.service(
        at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(

At least, I suspect that's more useful to someone. It seems a bit of a
shame that you *have* to have a context mapping "" though.

Anyway, all this still doesn't help me find out what's wrong with the
Apache/mod_jserv/Tomcat bridging. Does anyone have any ideas?

Many thanks,
Jon Skeet

Linux 2.2.12-20
Apache 1.3.9-4
JServ 1.1-2 RH6x
Tomcat 3.1

JServ.conf: (non-commented lines)
<IfModule mod_jserv.c>
ApJServManual on
ApJServLogFile /var/log/httpd/mod_jserv.log
ApJServLogLevel notice
ApJServDefaultProtocol ajpv12
ApJServDefaultPort 8007

(Removed other mount points)
ApJServMount /jontc ajpv12://localhost:18500/jon



<?xml version="1.0" encoding="ISO-8859-1"?>

    <!-- Debug low-level events in XmlMapper startup -->
    <xmlmapper:debug level="0" />

    <!-- This is quite flexible; we can either have a log file per
         module in Tomcat (example: ContextManager) or we can have
         one for Servlets and one for Jasper, or we can just have
     one tomcat.log for both Servlet and Jasper.

     If you omit "path" there, then stderr should be used.

     verbosityLevel values can be:

    <Logger name="tc_log"
            customOutput="yes" />

    <Logger name="servlet_log"
            customOutput="yes" />

    <Logger name="JASPER_LOG"
            verbosityLevel = "INFORMATION" />

    <!-- Add "home" attribute if you want tomcat to be based on a different directory
         "home" is used to create work and to read webapps, but not for libs or CLASSPATH.
         Note that TOMCAT_HOME is where tomcat is installed, while ContextManager home is
         base directory for contexts, webapps/ and work/
    <ContextManager debug="0" workDir="work" home="/home/jon/tomcat">
        <!-- ContextInterceptor className="org.apache.tomcat.context.LogEvents" / -->
        <ContextInterceptor className="org.apache.tomcat.context.AutoSetup" />
        <ContextInterceptor className="org.apache.tomcat.context.DefaultCMSetter" />
        <ContextInterceptor className="org.apache.tomcat.context.WorkDirInterceptor" />
        <ContextInterceptor className="org.apache.tomcat.context.WebXmlReader" />
        <ContextInterceptor className="org.apache.tomcat.context.LoadOnStartupInterceptor"
        <!-- Request processing -->
        <RequestInterceptor className="org.apache.tomcat.request.SimpleMapper" debug="0"
        <RequestInterceptor className="org.apache.tomcat.request.SessionInterceptor" />
        <RequestInterceptor className="org.apache.tomcat.request.SecurityCheck" />
        <RequestInterceptor className="org.apache.tomcat.request.FixHeaders" />

        <Connector className="org.apache.tomcat.service.SimpleTcpConnector">
            <Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
            <Parameter name="port" value="19000"/>

        <Connector className="org.apache.tomcat.service.SimpleTcpConnector">
            <Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
            <Parameter name="port" value="18500"/>

        <!-- example - how to override AutoSetup actions -->
        <Context path="/jon" docBase="webapps/jon" debug="0" reloadable="true">

        <Context path="" docBase="webapps/jon" debug="0" reloadable="true" >


View raw message