Quick recap:

Apache - 3.23; Tomcat - 4.0.1; JSE - jdk1.3.1_01; Windows XP-Pro

Yesterday I was pointed to mod_jk as the solution to making tomcat and
apache play together on Windows.  It is now on my machine and I have
added it to apache via the LoadModule and AddModule commands.  In
addition, I have performed other changes (outlined below) to httpd.conf
and server.xml.  I have created a workers.properties file.  Apache and
Tomcat both start ok.  

I create an apache alias for my JSP/Bean stuff called 'eqdas'. If I use
a url like http://127.0.0.1/eqdas/jsp/index.html I go to the correct
page and see the expected HTML content.  However if I try to run a jsp
like this http://127.0.0.1/eqdas/jsp/test.jsp which contains the same
content that is in index.html I get an internal server error.  If I
change the url to http://127.0.0.1:8080/eqdas/jsp/test.jsp so it runs
directly via tomcat, it works fine.

So the alias command I created in apache is working properly but
something about mod_jk is still not configured correctly.

The following is what I did to httpd.conf, worker.properties, and
server.xml:

In addition to the AddModule and LoadModule commands, I have configured
Apache's httpd.conf with the following lines:

   JkWorkersFile "E:\Program Files\Apache Tomcat
4.0\conf\worker.properties"
   JkLogFile     "E:\Program Files\Apache Group\Apache\logs"
   JkLogLevel    warn

   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13

   alias /eqdas "F:\EQDAS\Web"

   <Directory F:\edqdas\Web>
     Order Deny,Allow
     Allow from all
  </Directory>
  <Directory F:\eqdas\Web\web_inf>
     Order Deny,Allow
     deny from all
  </Directory>

I have configured the worker.properties file with the following lines:

   workers.tomcat_home=E:\Program Files\Apache Tomcat 4.0
   workers.java_home=E:\jdk1.3.1_01
   ps=c:\                       # I guessed about what should be here.
I couldn't find
                              # anything about it in the
worker.properties docs.  It
                              # also doesn't seem to make a difference.
   worker.list=apjp13

   #define a ajp13 worker
   worker.ajp13.port=8009
   worker.ajp13.host=localhost
   worker.ajp13.type=ajp13

Finally, in server.xml I uncommented the ajp13 connector which resides
in <Service name="Tomcat-Standalone">.  That is where the context for
eqdas lives.  The connector looks like:

    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>

My context looks like:

    <Context path="/eqdas" docBase="f:/eqdas/web" debug="0"
             reloadable="true" defaultSessionTimeOut="30"
                 isWARExpanded="true" isWARValidated="false"
isInvokerEnabled="true"
                 isWorkDirPersistent="false" cookies="true" />

Any help would be appreciated.

- Rich

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to