tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Cronin <>
Subject RE: new thread for Jeffrey Caswell
Date Thu, 09 May 2002 20:08:26 GMT
looking at your files your trying to use both connectors

the mod_jk is well documented in the link I sent earlier.
I used it to setup and I've had no problems

-----Original Message-----
From: Caswell, Jeffrey non Unisys []
Sent: Thursday, May 09, 2002 1:24 PM
To: 'Tomcat Users List'
Subject: RE: new thread for Jeffrey Caswell

I am still having problems.  Can someone please answer these questions?
(using Windows NT 4.0 sp6a, Apache 2.0.35, Tomcat 4.0.3)

1) Gianluca said to put mod_jk.dll under libexec/ folder but the error logs
said it should be under modules/.  I moved it there, but it still isn't
working. I get this message:  mod_jk location: modules\mod_jk.dll
          Make sure it is installed corectly or  set the config location
          Using <ApacheConfig modJk="PATH_TO_MOD_JK.SO_OR_DLL" />
What does this mean?  Where exactly am I supposed to put that tag?  Can you
give me an example?

See if the  conf\auto\mod_jk.conf is being generated.

make sure to include that file in the bottom

2) Gianluca said to put the file under the conf/ folder
but the error logs said it should be under conf/jk/.  Did I do something

3) Do I need to keep the stand-alone configuration in server.xml or do I
only need the <Service name="Tomcat-Apache"> one?

4) The Tomcat/Catalina documentation says to use mod_webapp in some places
and mod_jk in other.  Which one am I supposed to use?  For example, do I:
    LoadModule jk_module modules/mod_jk.dll    or, do I:

    LoadModule webapp_module modules/
    AddModule mod_webapp.c

    <IfModule mod_webapp.c>
    WebAppConnection warpConnection warp localhost:8008
    WebAppDeploy examples warpConnection /examples/

And, if it is the first one that I am supposed to use, are there supposed to
be more lines after it, like in the second one?  What should they be?

5) I substituted my IP address for every "localhost" I found, in all the
configuration files.  Is that right, or should I leave them as localhost?

6) Apache will no longer start up, now that I've changed the configuration
files.  Tomcat starts up but gives the message above about mod_jk.  Can
someone PLEASE look at these files and tell me what I am doing wrong?

I know I am asking a lot here.  We can take them one at a time.


-----Original Message-----
From: Jamshed Qureshi []
Sent: Thursday, May 09, 2002 10:20 AM
To: 'Tomcat Users List'
Subject: RE: new thread for Jeffrey Caswell

Thanks Gianluca,

i haven't test any jsp's yet but both service are now running fine..
Millions plus thanks..


-----Original Message-----
From: Gianluca Gravina []
Sent: Thursday, May 09, 2002 4:34 PM
To: 'Tomcat Users List'
Subject: R: new thread for Jeffrey Caswell

Let's start ... 

1 :: Check that U have 


If not, download a precompiled version, it works for me ...

2 :: Check for these lines in your server.xml for Tomcat (I found them
after installation, I didn't need to modify anything in server.xml)

***** SERVER:XML *****
  <Service name="Tomcat-Apache">

     port="8008" minProcessors="5" maxProcessors="75"
     enableLookups="true" appBase="webapps"
     acceptCount="10" debug="0"/>

    <!-- Replace "localhost" with what your Apache "ServerName" is set
to -->
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Apache" debug="0">

      <!-- Global logger unless overridden at lower levels -->
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="apache_log." suffix=".txt"

      <!-- Because this Realm is here, an instance will be shared
globally -->
      <Realm className="org.apache.catalina.realm.MemoryRealm" />



3 :: Now U have to modify some lines in httpd.conf:

****** HTTPD.CONF ******
{at the end of the file: )

LoadModule jk_module libexec/mod_jk.dll
Include "{tomcat folder}/conf/auto/mod_jk.conf
JkWorkersFile "{tomcat folder}/conf/"   // U'll write
down this file later
JkLogFile     "{apache2 folder}/logs/mod_jk.log"
JkLogLevel    info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "


4 :: Now open your editor and create a file like this in {tomcat

****** {tomcat folder}/conf/ ******





It's enough, next time U start apache, then Tomcat, U have to find
something like this in your httpd.conf:

<VirtualHost *>

    JkMount /manager ajp13
    JkMount /manager/* ajp13

    JkMount /examples ajp13
    JkMount /examples/* ajp13

    JkMount /tomcat-docs ajp13
    JkMount /tomcat-docs/* ajp13

    JkMount /webdav ajp13
    JkMount /webdav/* ajp13
    jkMount /docs ajp13
    jkMount /docs/* ajp13    

Depending on the context in your server.xml, with this I have a problem
cos everytime I start Tomcat it opens
{tomcat-folder}/conf/auto/mod_jk.conf for appending instead of rewriting
it, so Apache find duplicate virtual hosts. I cooment this line:

# Include "{tomcat folder}/conf/auto/mod_jk.conf

In httpd.conf and when I deploy something I have to add it in httpd.conf
too, like:

    jkMount /myapps ajp13
    jkMount /myapps/* ajp13

In virtualHost directive in httpd.conf. Where myapps is the new context
deployed with tomcat.

After this I'm able to access my jsps and my servlets with


http://myhost:80/myapps (managed by apache).

It works for me, hope te be of some help for U.

For advanced tuning I did nothing... I just make it works a couple of
day ago, now I haver to study for an exam :-((((

Good Luck and let me know!


> -----Messaggio originale-----
> Da: Caswell, Jeffrey non Unisys [] 
> Inviato: giovedì 9 maggio 2002 15.08
> A: 'Tomcat Users List'
> Oggetto: RE: new thread for Jeffrey Caswell
> Windows... Yes please!

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message