I guess no one is going to take the time to go through all this... I understand. Can someone please tell me why I can start Apache with the default httpd.conf file, but as soon as I add the LoadModule jk_module modules/mod_jk.dll, it no longer starts? Nothing in my appended configuration works. Should I be using mod_webapp instead?
### Section EXTRA: Tomcat-Binding # # Configure mod_jk # # LoadModule webapp_module libexec/mod_webapp.so LoadModule jk_module modules/mod_jk.dll #AddModule mod_jk.c #<IfModule !mod_jk.c> # LoadModule jk_module modules/mod_jk.dll #</IfModule> #Include "../Tomcat4.0/conf/auto/mod_jk.conf" # override what the autoconfig generates #JkLogLevel debug #JkLogStampFormat [%a %b %d %H:%M:%S %Y] -----Original Message----- From: Caswell, Jeffrey non Unisys [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 09, 2002 2: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? 2) Gianluca said to put the workers.properties file under the conf/ folder but the error logs said it should be under conf/jk/. Did I do something wrong? 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/mod_webapp.so AddModule mod_webapp.c <IfModule mod_webapp.c> WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples/ </IfModule> 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. Thanks. -----Original Message----- From: Jamshed Qureshi [mailto:[EMAIL PROTECTED]] 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.. Jamshed -----Original Message----- From: Gianluca Gravina [mailto:[EMAIL PROTECTED]] 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 {apache2Path}/libexec/mod_jk.dll 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"> <Connector className="org.apache.catalina.connector.warp.WarpConnector" 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" timestamp="true"/> <!-- Because this Realm is here, an instance will be shared globally --> <Realm className="org.apache.catalina.realm.MemoryRealm" /> </Engine> </Service> ... ... ************************ 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/workers.properties" // 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 folder}/conf/workers.properties: ****** {tomcat folder}/conf/workers.properties ****** worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 ****************************************************** !!!!! It's enough, next time U start apache, then Tomcat, U have to find something like this in your httpd.conf: <VirtualHost *> ServerName grava.d2g.com 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 </VirtualHost> 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:8080/myapps 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! Gianluca > -----Messaggio originale----- > Da: Caswell, Jeffrey non Unisys [mailto:[EMAIL PROTECTED]] > 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: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
