You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jerry Ford <je...@katzenjammer.us> on 2002/12/27 22:57:25 UTC

How I got mod_jk running (Was: Re: Yes!!! It works!!!)

Well, I could not make auto-conf work, and the system does work without 
it.  

If anybody is interested in my experience, go here:

http://www.katzenjammer.us/~jford/apache/tomcat/connectors/mod_jk_setup.shtml

And, again, thanks to everybody for helping me out.

Jerry

Turner, John wrote:

>My guess is the virtual hosting configuration was messed up somehow.
>Couldn't say more without trying the problem config files on one of my
>systems, but I don't have the time right now to do it.
>
>The auto-generation works like a charm, I can attest to that as can others.
>
>AFAIK, the only way using auto-gen would cause JK NOT to work is if the
>auto-gen was generating Apache VirtualHost containers and JkMount statements
>that didn't apply, weren't used, or were overridden somehow with other
>configuration directives in httpd.conf.
>
>John
>
>
>-----Original Message-----
>From: Denise Mangano [mailto:DeniseM@complusdata.com] 
>Sent: Friday, December 27, 2002 10:09 AM
>To: 'Tomcat Users List'
>Subject: RE: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting c
>loser)
>
>Justin - 
>
>Any thoughts on why that did the trick?  As I mentioned, those directives
>are not commented out on my config, but it works?? Just curious is all...
>
>Thanks!
>
>Denise 
>
>
>-----Original Message-----
>From: Justin L. Spies [mailto:jspies@pantek.com] 
>Sent: Friday, December 27, 2002 10:01 AM
>To: 'Tomcat Users List'
>Subject: RE: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting
>closer)
>
>
>This was a message I thought I had sent to the list, but I somehow managed
>to send it to Jerry directly...
>
>
>
>Congratulations Jerry!  Glad to hear that you've got a working system now!
>
>Just for the benefit of the other list members out there, the pieces we
>commented out were the following:
>  <!-- This listener was immediately 
>	 after the <Server port=...> directive. -->
>  <!-- Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" 
>              modJk="/usr/local/webserver/apache/libexec/mod_jk.so" 
>              jkDebug="debug" 
> 
>workersConfig="/usr/local/webserver/tomcat/conf/jk/workers.properties" 
>              jkLog="/usr/local/webserver/tomcat/logs/mod_jk.log"/ -->
>
>  ---   AND   ---
>        <!-- This listener was immediately after the <Host name=...> 
>		 directive inside of the <Server port=...> directive.
>-->
>        <!-- Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
>append="true" 
>              forwardAll="false"/ -->
>
>
>Has anyone else out there had good experience setting up the Apache auto
>configuration?
>
>
>Sincerely,
>Pantek Incorporated
>Justin L. Spies
>
>URI: http://www.pantek.com
>Ph   440.519.1802
>Fax  440.248.5274
>Cell 440.336.3317 
>
>-----Original Message-----
>From: Jerry Ford [mailto:jford@katzenjammer.us] 
>Sent: Thursday, December 26, 2002 5:31 PM
>To: Justin L. Spies
>Cc: 'Tomcat Users List'; jerry@katzenjammer.us
>Subject: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting
>closer)
>
>
>Justin, I owe you a beer...
>
>I removed the two listener statements that you commented out in my  
>server.xml file and now servlets work from Apache without a port setting.  
>
>Thank you thank you thank you.  
>
>(And thanks to everyone else who put up with my whining over the past 
>few days and offered help---especially Denise, John, and Jeff :)
>
>(BTW, it's academic now, but, yes, on my box tomcat is a symbolic link 
>to jakarta-tomcat-4.1.12-LE-jdk14.)
>
>Jerry
>
>Justin L. Spies wrote:
>
>  
>
>>Jerry,
>>I've updated and simplified the configuration files that you supplied
>>previously.  Any changes I made are denoted by the following:
>> NOTE NOTE NOTE NOTE
>>
>>These changes cause your system to have the same config that I first
>>used to get my system working.  I'm not sure about your directory 
>>structure and whether or not you have symlinks setup, however I did 
>>notice that in some of the configuration files you were using two 
>>different directories that should point to the same directories.  Here 
>>is an example from httpd.conf:
>>
>>You had the following for the JkWorkersFile:
>>JkWorkersFile
>>"/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.pr
>>o
>>perties"
>>
>>But just below that you had the following apache directive:
>>   <Directory "/usr/local/webserver/tomcat/webapps/examples">
>>
>>These should be the same directory above the /conf directory and above
>>the /webapps directory.  On my system, I have tomcat installed in 
>>/var/tomcat4, so I have the following directives:
>>
>>JkWorkersFile "/var/tomcat4/conf/jk/workers.properties"
>> --  and  --
>>   <Directory "/var/tomcat4/webapps/examples">
>>
>>
>>See how they are the same first two?  /conf and /webapps should be a
>>subdirectory of /tomcat4 (in my case) or /tomcat (in your case), unless
>>    
>>
>
>  
>
>>you have a symlink (in your case) from
>>/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14 to 
>>/usr/local/webserver/tomcat.  Does that make sense, or did I just 
>>completely confuse everyone?
>>
>>Jerry, when you restart Apache and Tomcat, could you send us copies of
>>the apache error log and the tomcat catalina.out files?  Also, if you 
>>could confirm the directory structure, that would be a big help.
>>
>>Sincerely,
>>Pantek Incorporated
>>Justin L. Spies
>>
>>URI: http://www.pantek.com
>>Ph   440.519.1802
>>Fax  440.248.5274
>>Cell 440.336.3317
>>
>>
>>
>>
>>-----Original Message-----
>>From: Jerry Ford [mailto:jerry@katzenjammer.us]
>>Sent: Thursday, December 26, 2002 2:00 PM
>>To: Tomcat Users List
>>Subject: Re: mod_jk---still trying, getting closer
>>
>>
>>I use the mod_jk binary obtained from John Turner's how-to page, and
>>the
>>
>>httpd.conf and server.xml statements are the same as the statements in 
>>the configurations several other people here have provided as examples,
>>    
>>
>
>  
>
>>I think.  I have also tried to follow John Turner's suggested
>>confuguration statements.  
>>
>>I've tried just about every combination of configurations that have
>>been
>>
>>suggested. It's possible that by now I have mixed up different people's 
>>advice, but I don't know what needs to be changed.
>>
>>I don't know why JK2 is in there, other than the coyote packages that 
>>are referenced in sever.xml.  But if I don't use those, what do I use?
>>
>>I'm beginning to think mod_webapp.so is looking like my only hope of 
>>getting Tomcat and Apache to work together.
>>
>>Jerry
>>
>>Jerry
>>
>>Milt Epstein wrote:
>>
>> 
>>
>>    
>>
>>>On Wed, 25 Dec 2002, Jerry Ford wrote:
>>>
>>>
>>>
>>>   
>>>
>>>      
>>>
>>>>John:
>>>>
>>>>Sorry, I had changed ajp13 to worker1 in trying to emulate Denise's 
>>>>working setup, but that didn't do any good so I changed it back and 
>>>>inadvertently put the dot in. But it doesn't matter, it doesn't work 
>>>>either way.
>>>>  
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>One things I don't understand, it seems like you have JK2 running on 
>>>the Tomcat side, but you refer to workers.properties, which is a JK 
>>>file, JK2 doesn't use it, I don't believe.  Could that be related to 
>>>the problem?
>>>
>>>
>>>
>>>
>>>   
>>>
>>>      
>>>
>>>>As noted in earlier e-mails, I can get the Tomcat example servlets to 
>>>>work, as well as my own j_tools HelloWorld, when I specify port 8080,
>>>>        
>>>>
>
>  
>
>>>>but not through Apache:
>>>>
>>>>http://localhost opens Apache's index page http://localhost:8080
>>>>opens
>>>>     
>>>>
>>>>        
>>>>
>> 
>>
>>    
>>
>>>>Tomcat's index page, and servlets work 
>>>>http://localhost/examples/servlets opens the servlets index page, but
>>>>        
>>>>
>
>  
>
>>>>servlets don't work
>>>>
>>>>Catalina.out in Tomcat's logs directory says mod_jk is running:
>>>>
>>>>Dec 25, 2002 8:50:51 PM org.apache.coyote.http11.Http11Protocol init
>>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
>>>>Starting service Tomcat-Standalone
>>>>Apache Tomcat/4.1.12-LE-jdk14
>>>>Dec 25, 2002 8:50:57 PM org.apache.coyote.http11.Http11Protocol start
>>>>INFO: Starting Coyote HTTP/1.1 on port 8080
>>>>Dec 25, 2002 8:50:57 PM org.apache.jk.common.ChannelSocket init
>>>>INFO: JK2: ajp13 listening on tcp port 8009
>>>>Dec 25, 2002 8:50:57 PM org.apache.jk.server.JkMain start
>>>>INFO: Jk running ID=0 time=2/121 
>>>>config=/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk2.p
>>>>        
>>>>
>r
>  
>
>>>>operties
>>>>Stopping service Tomcat-Standalone
>>>>Dec 25, 2002 11:26:13 PM org.apache.coyote.http11.Http11Protocol init
>>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
>>>>Starting service Tomcat-Standalone
>>>>Apache Tomcat/4.1.12-LE-jdk14
>>>>Dec 25, 2002 11:26:18 PM org.apache.coyote.http11.Http11Protocol
>>>>        
>>>>
>start
>  
>
>>>>INFO: Starting Coyote HTTP/1.1 on port 8080
>>>>Dec 25, 2002 11:26:18 PM org.apache.jk.common.ChannelSocket init
>>>>INFO: JK2: ajp13 listening on tcp port 8009
>>>>Dec 25, 2002 11:26:19 PM org.apache.jk.server.JkMain start
>>>>INFO: Jk running ID=0 time=1/277 
>>>>config=/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk2.p
>>>>        
>>>>
>r
>  
>
>>>>     
>>>>
>>>>        
>>>>
>>operties
>> 
>>
>>    
>>
>>>>But the Apache error log says Apache cannot open the workers file, 
>>>>even though the path specified is correct and permissions to the file
>>>>        
>>>>
>
>  
>
>>>>are
>>>>-rw-rw-r-- and to all directories drwxrwxr-x:
>>>>
>>>>[Wed Dec 25 15:14:36 2002] [error] (2)No such file or directory:
>>>>Error
>>>>     
>>>>
>>>>        
>>>>
>> 
>>
>>    
>>
>>>>while opening the workers, jk will not work
>>>>
>>>>[Wed Dec 25 15:14:36 2002] [error] (2)No such file or directory:
>>>>Error
>>>>     
>>>>
>>>>        
>>>>
>> 
>>
>>    
>>
>>>>while opening the workers, jk will not work
>>>>
>>>>[Wed Dec 25 15:14:36 2002] [notice] Apache/1.3.27 (Unix) mod_jk/1.2.0 
>>>>configured -- resuming normal operations [Wed Dec 25 15:14:36 2002] 
>>>>[notice] Accept mutex: sysvsem (Default: sysvsem)
>>>>  
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>[ ... ]
>>>
>>>Milt Epstein
>>>Research Programmer
>>>Integration and Software Engineering (ISE)
>>>Campus Information Technologies and Educational Services (CITES) 
>>>University of Illinois at Urbana-Champaign (UIUC) mepstein@uiuc.edu
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>   
>>>
>>>      
>>>
>><ma...@jakarta.apache.org>
>> 
>>
>>    
>>
>>>For additional commands, e-mail: 
>>><ma...@jakarta.apache.org>
>>>
>>>
>>>   
>>>
>>>      
>>>
>>--
>>To unsubscribe, e-mail:
>><ma...@jakarta.apache.org>
>>For additional commands, e-mail: 
>><ma...@jakarta.apache.org>
>> 
>>
>>-----------------------------------------------------------------------
>>-
>>
>><Server port="8005" shutdown="SHUTDOWN" debug="0">
>> <!-- NOTE NOTE NOTE NOTE -->
>> <!-- I couldn't get this to work, so I am commenting it out.  -->
>>
>> <!-- Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" 
>>             modJk="/usr/local/webserver/apache/libexec/mod_jk.so" 
>>             jkDebug="debug"
>>
>>    
>>
>workersConfig="/usr/local/webserver/tomcat/conf/jk/workers.properties" 
>  
>
>>             jkLog="/usr/local/webserver/tomcat/logs/mod_jk.log"/ -->
>>
>>
>> <Service name="Tomcat-Standalone">
>>   <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>>             port="8080" minProcessors="5" maxProcessors="75"
>>             enableLookups="true" redirectPort="8443"
>>             acceptCount="10" debug="0" connectionTimeout="20000"
>>             useURIValidationHack="false" />
>><!--
>>   <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
>>             port="8009" minProcessors="5" maxProcessors="75"
>>             acceptCount="10" debug="0"/>
>>-->
>>   <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>>             port="8009" minProcessors="5" maxProcessors="75"
>>             enableLookups="true" redirectPort="8443"
>>             acceptCount="10" debut="0" connectionTimeout="0"
>>             useURIValidationHack="false"
>>             
>>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>>
>>   <Engine name="Standalone" defaultHost="localhost" debug="0">
>>     <Valve
>>    
>>
>className="org.apache.catalina.valves.RequestDumperValve"/>
>  
>
>>     <Logger className="org.apache.catalina.logger.FileLogger"
>>             prefix="catalina_log." suffix=".txt"
>>             timestamp="true"/>
>>     <Realm className="org.apache.catalina.realm.MemoryRealm" />
>>     <Host name="localhost" debug="0" appBase="webapps" 
>>             unpackWARs="true" autoDeploy="true">
>>
>>       <!-- NOTE NOTE NOTE NOTE -->
>>       <!-- I couldn't get this to work, so I am commenting it out.
>>    
>>
>-->
>  
>
>>       <!-- Listener
>>    
>>
>className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true" 
>  
>
>>             forwardAll="false"/ -->
>>
>>       <Valve className="org.apache.catalina.valves.AccessLogValve"
>>             directory="logs"  prefix="localhost_access_log."
>>    
>>
>suffix=".txt"
>  
>
>>             pattern="common"/>
>>       <Logger className="org.apache.catalina.logger.FileLogger"
>>             directory="logs"  prefix="localhost_log." suffix=".txt"
>>	      timestamp="true"/>
>>         <Context path="" docBase="ROOT" debug="0"/>
>>     </Host>
>>   </Engine>
>> </Service>
>></Server>
>>
>>
>> 
>>
>>    
>>
>
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail:
><ma...@jakarta.apache.org>
>
>
>
>--
>To unsubscribe, e-mail:
><ma...@jakarta.apache.org>
>For additional commands, e-mail:
><ma...@jakarta.apache.org>
>
>--
>To unsubscribe, e-mail:
><ma...@jakarta.apache.org>
>For additional commands, e-mail:
><ma...@jakarta.apache.org>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
> 
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
> 
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>  
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: How I got mod_jk running (Was: Re: Yes!!! It works!!!)

Posted by "Noel J. Bergman" <no...@devtech.com>.
> I was asking because the 4.x ApacheConfig is my baby (even if it won't
have
> a long life :).  I take an interest in bugs related to it.

Why not update it for mod_jk2?  Is there a reason for it to be temporary?

	--- Noel


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How I got mod_jk running (Was: Re: Yes!!! It works!!!)

Posted by Bill Barker <wb...@wilshire.com>.
"Jerry" <je...@katzenjammer.us> wrote in message
news:3E0DDEAD.5030405@katzenjammer.us...
> Bill Barker wrote:
>
> >I'm as mystified as John on why ApacheConfig doesn't work (unless it's a
> >timing problem between Tomcat and Apache starting up).
> >
>
> I suppose.  But...it works, so no harm no foul, right?  Or is there a
> functional reason other than convenience and reduction of clutter in
> httpd.conf to prefer auto config over manual config?
>

No harm no foul.  Personally, I pass the auto-config to an obscenely
complicated 'sed' script that I then Include in httpd.conf (I have a lot of
servlet-mappings :).  Otherwise, I'd probably do manual config myself.

I was asking because the 4.x ApacheConfig is my baby (even if it won't have
a long life :).  I take an interest in bugs related to it.

> >
> >To answer one of the points in your link below:  At the moment you can
> >freely mix-and-match the native Jk(2) code and the Java Connectors.  By
> >default, Tomcat 4.1.x enables the Jk2 Java connector in 'server.xml'.  If
> >you are also using the Jk2 Apache code, then you have some extra features
> >exposed.  However, I've personally got one system happily running using
TC
> >4.1.x with the Jk2 Java connector, and Apache/httpd using mod_jk 1.1.0
(the
> >one that ships with Tomcat 3.3).  In theory, even more extreme splits are
> >possible, however I'm guessing that you won't see many of them :-).
> >
> >"Jerry Ford" <je...@katzenjammer.us> wrote in message
> >news:3E0CCCC5.80801@katzenjammer.us...
> >
> >
> >>Well, I could not make auto-conf work, and the system does work without
> >>it.
> >>
> >>If anybody is interested in my experience, go here:
> >>
> >>
> >>
> >>
>
>http://www.katzenjammer.us/~jford/apache/tomcat/connectors/mod_jk_setup.sht
m
> >l
> >
> >
> >>And, again, thanks to everybody for helping me out.
> >>
> >>Jerry
> >>
> >>Turner, John wrote:
> >>
> >>
> >>
> >>>My guess is the virtual hosting configuration was messed up somehow.
> >>>Couldn't say more without trying the problem config files on one of my
> >>>systems, but I don't have the time right now to do it.
> >>>
> >>>The auto-generation works like a charm, I can attest to that as can
> >>>
> >>>
> >others.
> >
> >
> >>>AFAIK, the only way using auto-gen would cause JK NOT to work is if the
> >>>auto-gen was generating Apache VirtualHost containers and JkMount
> >>>
> >>>
> >statements
> >
> >
> >>>that didn't apply, weren't used, or were overridden somehow with other
> >>>configuration directives in httpd.conf.
> >>>
> >>>John
> >>>
> >>>
> >>>-----Original Message-----
> >>>From: Denise Mangano [mailto:DeniseM@complusdata.com]
> >>>Sent: Friday, December 27, 2002 10:09 AM
> >>>To: 'Tomcat Users List'
> >>>Subject: RE: Yes!!! It works!!! (was: Re: mod_jk---still trying,
getting
> >>>
> >>>
> >c
> >
> >
> >>>loser)
> >>>
> >>>Justin -
> >>>
> >>>Any thoughts on why that did the trick?  As I mentioned, those
directives
> >>>are not commented out on my config, but it works?? Just curious is
all...
> >>>
> >>>Thanks!
> >>>
> >>>Denise
> >>>
> >>>
> >>>-----Original Message-----
> >>>From: Justin L. Spies [mailto:jspies@pantek.com]
> >>>Sent: Friday, December 27, 2002 10:01 AM
> >>>To: 'Tomcat Users List'
> >>>Subject: RE: Yes!!! It works!!! (was: Re: mod_jk---still trying,
getting
> >>>closer)
> >>>
> >>>
> >>>This was a message I thought I had sent to the list, but I somehow
> >>>
> >>>
> >managed
> >
> >
> >>>to send it to Jerry directly...
> >>>
> >>>
> >>>
> >>>Congratulations Jerry!  Glad to hear that you've got a working system
> >>>
> >>>
> >now!
> >
> >
> >>>Just for the benefit of the other list members out there, the pieces we
> >>>commented out were the following:
> >>> <!-- This listener was immediately
> >>>after the <Server port=...> directive. -->
> >>> <!-- Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
> >>>             modJk="/usr/local/webserver/apache/libexec/mod_jk.so"
> >>>             jkDebug="debug"
> >>>
> >>>workersConfig="/usr/local/webserver/tomcat/conf/jk/workers.properties"
> >>>             jkLog="/usr/local/webserver/tomcat/logs/mod_jk.log"/ -->
> >>>
> >>> ---   AND   ---
> >>>       <!-- This listener was immediately after the <Host name=...>
> >>>directive inside of the <Server port=...> directive.
> >>>-->
> >>>       <!-- Listener
> >>>
> >>>
> >className="org.apache.ajp.tomcat4.config.ApacheConfig"
> >
> >
> >>>append="true"
> >>>             forwardAll="false"/ -->
> >>>
> >>>
> >>>Has anyone else out there had good experience setting up the Apache
auto
> >>>configuration?
> >>>
> >>>
> >>>Sincerely,
> >>>Pantek Incorporated
> >>>Justin L. Spies
> >>>
> >>>URI: http://www.pantek.com
> >>>Ph   440.519.1802
> >>>Fax  440.248.5274
> >>>Cell 440.336.3317
> >>>
> >>>-----Original Message-----
> >>>From: Jerry Ford [mailto:jford@katzenjammer.us]
> >>>Sent: Thursday, December 26, 2002 5:31 PM
> >>>To: Justin L. Spies
> >>>Cc: 'Tomcat Users List'; jerry@katzenjammer.us
> >>>Subject: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting
> >>>closer)
> >>>
> >>>
> >>>Justin, I owe you a beer...
> >>>
> >>>I removed the two listener statements that you commented out in my
> >>>server.xml file and now servlets work from Apache without a port
setting.
> >>>
> >>>Thank you thank you thank you.
> >>>
> >>>(And thanks to everyone else who put up with my whining over the past
> >>>few days and offered help---especially Denise, John, and Jeff :)
> >>>
> >>>(BTW, it's academic now, but, yes, on my box tomcat is a symbolic link
> >>>to jakarta-tomcat-4.1.12-LE-jdk14.)
> >>>
> >>>Jerry
> >>>
> >>>Justin L. Spies wrote:
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>Jerry,
> >>>>I've updated and simplified the configuration files that you supplied
> >>>>previously.  Any changes I made are denoted by the following:
> >>>>NOTE NOTE NOTE NOTE
> >>>>
> >>>>These changes cause your system to have the same config that I first
> >>>>used to get my system working.  I'm not sure about your directory
> >>>>structure and whether or not you have symlinks setup, however I did
> >>>>notice that in some of the configuration files you were using two
> >>>>different directories that should point to the same directories.  Here
> >>>>is an example from httpd.conf:
> >>>>
> >>>>You had the following for the JkWorkersFile:
> >>>>JkWorkersFile
>
>>>>"/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.pr
> >>>>o
> >>>>perties"
> >>>>
> >>>>But just below that you had the following apache directive:
> >>>>  <Directory "/usr/local/webserver/tomcat/webapps/examples">
> >>>>
> >>>>These should be the same directory above the /conf directory and above
> >>>>the /webapps directory.  On my system, I have tomcat installed in
> >>>>/var/tomcat4, so I have the following directives:
> >>>>
> >>>>JkWorkersFile "/var/tomcat4/conf/jk/workers.properties"
> >>>>--  and  --
> >>>>  <Directory "/var/tomcat4/webapps/examples">
> >>>>
> >>>>
> >>>>See how they are the same first two?  /conf and /webapps should be a
> >>>>subdirectory of /tomcat4 (in my case) or /tomcat (in your case),
unless
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>>you have a symlink (in your case) from
> >>>>/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14 to
> >>>>/usr/local/webserver/tomcat.  Does that make sense, or did I just
> >>>>completely confuse everyone?
> >>>>
> >>>>Jerry, when you restart Apache and Tomcat, could you send us copies of
> >>>>the apache error log and the tomcat catalina.out files?  Also, if you
> >>>>could confirm the directory structure, that would be a big help.
> >>>>
> >>>>Sincerely,
> >>>>Pantek Incorporated
> >>>>Justin L. Spies
> >>>>
> >>>>URI: http://www.pantek.com
> >>>>Ph   440.519.1802
> >>>>Fax  440.248.5274
> >>>>Cell 440.336.3317
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>-----Original Message-----
> >>>>From: Jerry Ford [mailto:jerry@katzenjammer.us]
> >>>>Sent: Thursday, December 26, 2002 2:00 PM
> >>>>To: Tomcat Users List
> >>>>Subject: Re: mod_jk---still trying, getting closer
> >>>>
> >>>>
> >>>>I use the mod_jk binary obtained from John Turner's how-to page, and
> >>>>the
> >>>>
> >>>>httpd.conf and server.xml statements are the same as the statements in
> >>>>the configurations several other people here have provided as
examples,
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>>I think.  I have also tried to follow John Turner's suggested
> >>>>confuguration statements.
> >>>>
> >>>>I've tried just about every combination of configurations that have
> >>>>been
> >>>>
> >>>>suggested. It's possible that by now I have mixed up different
people's
> >>>>advice, but I don't know what needs to be changed.
> >>>>
> >>>>I don't know why JK2 is in there, other than the coyote packages that
> >>>>are referenced in sever.xml.  But if I don't use those, what do I use?
> >>>>
> >>>>I'm beginning to think mod_webapp.so is looking like my only hope of
> >>>>getting Tomcat and Apache to work together.
> >>>>
> >>>>Jerry
> >>>>
> >>>>Jerry
> >>>>
> >>>>Milt Epstein wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>On Wed, 25 Dec 2002, Jerry Ford wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>John:
> >>>>>>
> >>>>>>Sorry, I had changed ajp13 to worker1 in trying to emulate Denise's
> >>>>>>working setup, but that didn't do any good so I changed it back and
> >>>>>>inadvertently put the dot in. But it doesn't matter, it doesn't work
> >>>>>>either way.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>One things I don't understand, it seems like you have JK2 running on
> >>>>>the Tomcat side, but you refer to workers.properties, which is a JK
> >>>>>file, JK2 doesn't use it, I don't believe.  Could that be related to
> >>>>>the problem?
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>As noted in earlier e-mails, I can get the Tomcat example servlets
to
> >>>>>>work, as well as my own j_tools HelloWorld, when I specify port
8080,
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>
> >>>
> >>>
> >>>>>>but not through Apache:
> >>>>>>
> >>>>>>http://localhost opens Apache's index page http://localhost:8080
> >>>>>>opens
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>>Tomcat's index page, and servlets work
> >>>>>>http://localhost/examples/servlets opens the servlets index page,
but
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>
> >>>
> >>>
> >>>>>>servlets don't work
> >>>>>>
> >>>>>>Catalina.out in Tomcat's logs directory says mod_jk is running:
> >>>>>>
> >>>>>>Dec 25, 2002 8:50:51 PM org.apache.coyote.http11.Http11Protocol init
> >>>>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
> >>>>>>Starting service Tomcat-Standalone
> >>>>>>Apache Tomcat/4.1.12-LE-jdk14
> >>>>>>Dec 25, 2002 8:50:57 PM org.apache.coyote.http11.Http11Protocol
start
> >>>>>>INFO: Starting Coyote HTTP/1.1 on port 8080
> >>>>>>Dec 25, 2002 8:50:57 PM org.apache.jk.common.ChannelSocket init
> >>>>>>INFO: JK2: ajp13 listening on tcp port 8009
> >>>>>>Dec 25, 2002 8:50:57 PM org.apache.jk.server.JkMain start
> >>>>>>INFO: Jk running ID=0 time=2/121
>
>>>>>>config=/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk2.p
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>r
> >>>
> >>>
> >>>
> >>>
> >>>>>>operties
> >>>>>>Stopping service Tomcat-Standalone
> >>>>>>Dec 25, 2002 11:26:13 PM org.apache.coyote.http11.Http11Protocol
init
> >>>>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
> >>>>>>Starting service Tomcat-Standalone
> >>>>>>Apache Tomcat/4.1.12-LE-jdk14
> >>>>>>Dec 25, 2002 11:26:18 PM org.apache.coyote.http11.Http11Protocol
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>start
> >>>
> >>>
> >>>
> >>>
> >>>>>>INFO: Starting Coyote HTTP/1.1 on port 8080
> >>>>>>Dec 25, 2002 11:26:18 PM org.apache.jk.common.ChannelSocket init
> >>>>>>INFO: JK2: ajp13 listening on tcp port 8009
> >>>>>>Dec 25, 2002 11:26:19 PM org.apache.jk.server.JkMain start
> >>>>>>INFO: Jk running ID=0 time=1/277
>
>>>>>>config=/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk2.p
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>r
> >>>
> >>>
> >>>
> >>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>operties
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>>But the Apache error log says Apache cannot open the workers file,
> >>>>>>even though the path specified is correct and permissions to the
file
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>
> >>>
> >>>
> >>>>>>are
> >>>>>>-rw-rw-r-- and to all directories drwxrwxr-x:
> >>>>>>
> >>>>>>[Wed Dec 25 15:14:36 2002] [error] (2)No such file or directory:
> >>>>>>Error
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>>while opening the workers, jk will not work
> >>>>>>
> >>>>>>[Wed Dec 25 15:14:36 2002] [error] (2)No such file or directory:
> >>>>>>Error
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>>while opening the workers, jk will not work
> >>>>>>
> >>>>>>[Wed Dec 25 15:14:36 2002] [notice] Apache/1.3.27 (Unix)
mod_jk/1.2.0
> >>>>>>configured -- resuming normal operations [Wed Dec 25 15:14:36 2002]
> >>>>>>[notice] Accept mutex: sysvsem (Default: sysvsem)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>[ ... ]
> >>>>>
> >>>>>Milt Epstein
> >>>>>Research Programmer
> >>>>>Integration and Software Engineering (ISE)
> >>>>>Campus Information Technologies and Educational Services (CITES)
> >>>>>University of Illinois at Urbana-Champaign (UIUC) mepstein@uiuc.edu
> >>>>>
> >>>>>
> >>>>>--
> >>>>>To unsubscribe, e-mail:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>><ma...@jakarta.apache.org>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>For additional commands, e-mail:
> >>>>><ma...@jakarta.apache.org>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>--
> >>>>To unsubscribe, e-mail:
> >>>><ma...@jakarta.apache.org>
> >>>>For additional commands, e-mail:
> >>>><ma...@jakarta.apache.org>
> >>>>
> >>>>
>
>>>>-----------------------------------------------------------------------
> >>>>-
> >>>>
> >>>><Server port="8005" shutdown="SHUTDOWN" debug="0">
> >>>><!-- NOTE NOTE NOTE NOTE -->
> >>>><!-- I couldn't get this to work, so I am commenting it out.  -->
> >>>>
> >>>><!-- Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
> >>>>            modJk="/usr/local/webserver/apache/libexec/mod_jk.so"
> >>>>            jkDebug="debug"
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>workersConfig="/usr/local/webserver/tomcat/conf/jk/workers.properties"
> >>>
> >>>
> >>>
> >>>
> >>>>            jkLog="/usr/local/webserver/tomcat/logs/mod_jk.log"/ -->
> >>>>
> >>>>
> >>>><Service name="Tomcat-Standalone">
> >>>>  <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
> >>>>            port="8080" minProcessors="5" maxProcessors="75"
> >>>>            enableLookups="true" redirectPort="8443"
> >>>>            acceptCount="10" debug="0" connectionTimeout="20000"
> >>>>            useURIValidationHack="false" />
> >>>><!--
> >>>>  <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
> >>>>            port="8009" minProcessors="5" maxProcessors="75"
> >>>>            acceptCount="10" debug="0"/>
> >>>>-->
> >>>>  <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
> >>>>            port="8009" minProcessors="5" maxProcessors="75"
> >>>>            enableLookups="true" redirectPort="8443"
> >>>>            acceptCount="10" debut="0" connectionTimeout="0"
> >>>>            useURIValidationHack="false"
> >>>>
> >>>>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
> >>>>
> >>>>  <Engine name="Standalone" defaultHost="localhost" debug="0">
> >>>>    <Valve
> >>>>
> >>>>
> >>>>
> >>>>
> >>>className="org.apache.catalina.valves.RequestDumperValve"/>
> >>>
> >>>
> >>>
> >>>
> >>>>    <Logger className="org.apache.catalina.logger.FileLogger"
> >>>>            prefix="catalina_log." suffix=".txt"
> >>>>            timestamp="true"/>
> >>>>    <Realm className="org.apache.catalina.realm.MemoryRealm" />
> >>>>    <Host name="localhost" debug="0" appBase="webapps"
> >>>>            unpackWARs="true" autoDeploy="true">
> >>>>
> >>>>      <!-- NOTE NOTE NOTE NOTE -->
> >>>>      <!-- I couldn't get this to work, so I am commenting it out.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>-->
> >>>
> >>>
> >>>
> >>>
> >>>>      <!-- Listener
> >>>>
> >>>>
> >>>>
> >>>>
> >>>className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true"
> >>>
> >>>
> >>>
> >>>
> >>>>            forwardAll="false"/ -->
> >>>>
> >>>>      <Valve className="org.apache.catalina.valves.AccessLogValve"
> >>>>            directory="logs"  prefix="localhost_access_log."
> >>>>
> >>>>
> >>>>
> >>>>
> >>>suffix=".txt"
> >>>
> >>>
> >>>
> >>>
> >>>>            pattern="common"/>
> >>>>      <Logger className="org.apache.catalina.logger.FileLogger"
> >>>>            directory="logs"  prefix="localhost_log." suffix=".txt"
> >>>>      timestamp="true"/>
> >>>>        <Context path="" docBase="ROOT" debug="0"/>
> >>>>    </Host>
> >>>>  </Engine>
> >>>></Service>
> >>>></Server>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>--
> >>>To unsubscribe, e-mail:
> >>>
> >>>
> ><ma...@jakarta.apache.org>
> >
> >
> >>>For additional commands, e-mail:
> >>><ma...@jakarta.apache.org>
> >>>
> >>>
> >>>
> >>>--
> >>>To unsubscribe, e-mail:
> >>><ma...@jakarta.apache.org>
> >>>For additional commands, e-mail:
> >>><ma...@jakarta.apache.org>
> >>>
> >>>--
> >>>To unsubscribe, e-mail:
> >>><ma...@jakarta.apache.org>
> >>>For additional commands, e-mail:
> >>><ma...@jakarta.apache.org>
> >>>
> >>>---
> >>>Incoming mail is certified Virus Free.
> >>>Checked by AVG anti-virus system (http://www.grisoft.com).
> >>>Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
> >>>
> >>>
> >>>---
> >>>Outgoing mail is certified Virus Free.
> >>>Checked by AVG anti-virus system (http://www.grisoft.com).
> >>>Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
> >>>
> >>>
> >>>--
> >>>To unsubscribe, e-mail:
> >>>
> >>>
> ><ma...@jakarta.apache.org>
> >
> >
> >>>For additional commands, e-mail:
> >>>
> >>>
> ><ma...@jakarta.apache.org>
> >
> >
> >>>
> >>>
> >
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> >For additional commands, e-mail:
<ma...@jakarta.apache.org>
> >
> >





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How I got mod_jk running (Was: Re: Yes!!! It works!!!)

Posted by Jerry <je...@katzenjammer.us>.
Bill Barker wrote:

>I'm as mystified as John on why ApacheConfig doesn't work (unless it's a
>timing problem between Tomcat and Apache starting up).
>

I suppose.  But...it works, so no harm no foul, right?  Or is there a 
functional reason other than convenience and reduction of clutter in 
httpd.conf to prefer auto config over manual config?

>
>To answer one of the points in your link below:  At the moment you can
>freely mix-and-match the native Jk(2) code and the Java Connectors.  By
>default, Tomcat 4.1.x enables the Jk2 Java connector in 'server.xml'.  If
>you are also using the Jk2 Apache code, then you have some extra features
>exposed.  However, I've personally got one system happily running using TC
>4.1.x with the Jk2 Java connector, and Apache/httpd using mod_jk 1.1.0 (the
>one that ships with Tomcat 3.3).  In theory, even more extreme splits are
>possible, however I'm guessing that you won't see many of them :-).
>
>"Jerry Ford" <je...@katzenjammer.us> wrote in message
>news:3E0CCCC5.80801@katzenjammer.us...
>  
>
>>Well, I could not make auto-conf work, and the system does work without
>>it.
>>
>>If anybody is interested in my experience, go here:
>>
>>
>>    
>>
>http://www.katzenjammer.us/~jford/apache/tomcat/connectors/mod_jk_setup.shtm
>l
>  
>
>>And, again, thanks to everybody for helping me out.
>>
>>Jerry
>>
>>Turner, John wrote:
>>
>>    
>>
>>>My guess is the virtual hosting configuration was messed up somehow.
>>>Couldn't say more without trying the problem config files on one of my
>>>systems, but I don't have the time right now to do it.
>>>
>>>The auto-generation works like a charm, I can attest to that as can
>>>      
>>>
>others.
>  
>
>>>AFAIK, the only way using auto-gen would cause JK NOT to work is if the
>>>auto-gen was generating Apache VirtualHost containers and JkMount
>>>      
>>>
>statements
>  
>
>>>that didn't apply, weren't used, or were overridden somehow with other
>>>configuration directives in httpd.conf.
>>>
>>>John
>>>
>>>
>>>-----Original Message-----
>>>From: Denise Mangano [mailto:DeniseM@complusdata.com]
>>>Sent: Friday, December 27, 2002 10:09 AM
>>>To: 'Tomcat Users List'
>>>Subject: RE: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting
>>>      
>>>
>c
>  
>
>>>loser)
>>>
>>>Justin -
>>>
>>>Any thoughts on why that did the trick?  As I mentioned, those directives
>>>are not commented out on my config, but it works?? Just curious is all...
>>>
>>>Thanks!
>>>
>>>Denise
>>>
>>>
>>>-----Original Message-----
>>>From: Justin L. Spies [mailto:jspies@pantek.com]
>>>Sent: Friday, December 27, 2002 10:01 AM
>>>To: 'Tomcat Users List'
>>>Subject: RE: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting
>>>closer)
>>>
>>>
>>>This was a message I thought I had sent to the list, but I somehow
>>>      
>>>
>managed
>  
>
>>>to send it to Jerry directly...
>>>
>>>
>>>
>>>Congratulations Jerry!  Glad to hear that you've got a working system
>>>      
>>>
>now!
>  
>
>>>Just for the benefit of the other list members out there, the pieces we
>>>commented out were the following:
>>> <!-- This listener was immediately
>>>after the <Server port=...> directive. -->
>>> <!-- Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
>>>             modJk="/usr/local/webserver/apache/libexec/mod_jk.so"
>>>             jkDebug="debug"
>>>
>>>workersConfig="/usr/local/webserver/tomcat/conf/jk/workers.properties"
>>>             jkLog="/usr/local/webserver/tomcat/logs/mod_jk.log"/ -->
>>>
>>> ---   AND   ---
>>>       <!-- This listener was immediately after the <Host name=...>
>>>directive inside of the <Server port=...> directive.
>>>-->
>>>       <!-- Listener
>>>      
>>>
>className="org.apache.ajp.tomcat4.config.ApacheConfig"
>  
>
>>>append="true"
>>>             forwardAll="false"/ -->
>>>
>>>
>>>Has anyone else out there had good experience setting up the Apache auto
>>>configuration?
>>>
>>>
>>>Sincerely,
>>>Pantek Incorporated
>>>Justin L. Spies
>>>
>>>URI: http://www.pantek.com
>>>Ph   440.519.1802
>>>Fax  440.248.5274
>>>Cell 440.336.3317
>>>
>>>-----Original Message-----
>>>From: Jerry Ford [mailto:jford@katzenjammer.us]
>>>Sent: Thursday, December 26, 2002 5:31 PM
>>>To: Justin L. Spies
>>>Cc: 'Tomcat Users List'; jerry@katzenjammer.us
>>>Subject: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting
>>>closer)
>>>
>>>
>>>Justin, I owe you a beer...
>>>
>>>I removed the two listener statements that you commented out in my
>>>server.xml file and now servlets work from Apache without a port setting.
>>>
>>>Thank you thank you thank you.
>>>
>>>(And thanks to everyone else who put up with my whining over the past
>>>few days and offered help---especially Denise, John, and Jeff :)
>>>
>>>(BTW, it's academic now, but, yes, on my box tomcat is a symbolic link
>>>to jakarta-tomcat-4.1.12-LE-jdk14.)
>>>
>>>Jerry
>>>
>>>Justin L. Spies wrote:
>>>
>>>
>>>
>>>      
>>>
>>>>Jerry,
>>>>I've updated and simplified the configuration files that you supplied
>>>>previously.  Any changes I made are denoted by the following:
>>>>NOTE NOTE NOTE NOTE
>>>>
>>>>These changes cause your system to have the same config that I first
>>>>used to get my system working.  I'm not sure about your directory
>>>>structure and whether or not you have symlinks setup, however I did
>>>>notice that in some of the configuration files you were using two
>>>>different directories that should point to the same directories.  Here
>>>>is an example from httpd.conf:
>>>>
>>>>You had the following for the JkWorkersFile:
>>>>JkWorkersFile
>>>>"/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.pr
>>>>o
>>>>perties"
>>>>
>>>>But just below that you had the following apache directive:
>>>>  <Directory "/usr/local/webserver/tomcat/webapps/examples">
>>>>
>>>>These should be the same directory above the /conf directory and above
>>>>the /webapps directory.  On my system, I have tomcat installed in
>>>>/var/tomcat4, so I have the following directives:
>>>>
>>>>JkWorkersFile "/var/tomcat4/conf/jk/workers.properties"
>>>>--  and  --
>>>>  <Directory "/var/tomcat4/webapps/examples">
>>>>
>>>>
>>>>See how they are the same first two?  /conf and /webapps should be a
>>>>subdirectory of /tomcat4 (in my case) or /tomcat (in your case), unless
>>>>
>>>>
>>>>        
>>>>
>>>
>>>      
>>>
>>>>you have a symlink (in your case) from
>>>>/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14 to
>>>>/usr/local/webserver/tomcat.  Does that make sense, or did I just
>>>>completely confuse everyone?
>>>>
>>>>Jerry, when you restart Apache and Tomcat, could you send us copies of
>>>>the apache error log and the tomcat catalina.out files?  Also, if you
>>>>could confirm the directory structure, that would be a big help.
>>>>
>>>>Sincerely,
>>>>Pantek Incorporated
>>>>Justin L. Spies
>>>>
>>>>URI: http://www.pantek.com
>>>>Ph   440.519.1802
>>>>Fax  440.248.5274
>>>>Cell 440.336.3317
>>>>
>>>>
>>>>
>>>>
>>>>-----Original Message-----
>>>>From: Jerry Ford [mailto:jerry@katzenjammer.us]
>>>>Sent: Thursday, December 26, 2002 2:00 PM
>>>>To: Tomcat Users List
>>>>Subject: Re: mod_jk---still trying, getting closer
>>>>
>>>>
>>>>I use the mod_jk binary obtained from John Turner's how-to page, and
>>>>the
>>>>
>>>>httpd.conf and server.xml statements are the same as the statements in
>>>>the configurations several other people here have provided as examples,
>>>>
>>>>
>>>>        
>>>>
>>>
>>>      
>>>
>>>>I think.  I have also tried to follow John Turner's suggested
>>>>confuguration statements.
>>>>
>>>>I've tried just about every combination of configurations that have
>>>>been
>>>>
>>>>suggested. It's possible that by now I have mixed up different people's
>>>>advice, but I don't know what needs to be changed.
>>>>
>>>>I don't know why JK2 is in there, other than the coyote packages that
>>>>are referenced in sever.xml.  But if I don't use those, what do I use?
>>>>
>>>>I'm beginning to think mod_webapp.so is looking like my only hope of
>>>>getting Tomcat and Apache to work together.
>>>>
>>>>Jerry
>>>>
>>>>Jerry
>>>>
>>>>Milt Epstein wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>On Wed, 25 Dec 2002, Jerry Ford wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>John:
>>>>>>
>>>>>>Sorry, I had changed ajp13 to worker1 in trying to emulate Denise's
>>>>>>working setup, but that didn't do any good so I changed it back and
>>>>>>inadvertently put the dot in. But it doesn't matter, it doesn't work
>>>>>>either way.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>One things I don't understand, it seems like you have JK2 running on
>>>>>the Tomcat side, but you refer to workers.properties, which is a JK
>>>>>file, JK2 doesn't use it, I don't believe.  Could that be related to
>>>>>the problem?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>As noted in earlier e-mails, I can get the Tomcat example servlets to
>>>>>>work, as well as my own j_tools HelloWorld, when I specify port 8080,
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>
>>>      
>>>
>>>>>>but not through Apache:
>>>>>>
>>>>>>http://localhost opens Apache's index page http://localhost:8080
>>>>>>opens
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>>Tomcat's index page, and servlets work
>>>>>>http://localhost/examples/servlets opens the servlets index page, but
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>
>>>      
>>>
>>>>>>servlets don't work
>>>>>>
>>>>>>Catalina.out in Tomcat's logs directory says mod_jk is running:
>>>>>>
>>>>>>Dec 25, 2002 8:50:51 PM org.apache.coyote.http11.Http11Protocol init
>>>>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
>>>>>>Starting service Tomcat-Standalone
>>>>>>Apache Tomcat/4.1.12-LE-jdk14
>>>>>>Dec 25, 2002 8:50:57 PM org.apache.coyote.http11.Http11Protocol start
>>>>>>INFO: Starting Coyote HTTP/1.1 on port 8080
>>>>>>Dec 25, 2002 8:50:57 PM org.apache.jk.common.ChannelSocket init
>>>>>>INFO: JK2: ajp13 listening on tcp port 8009
>>>>>>Dec 25, 2002 8:50:57 PM org.apache.jk.server.JkMain start
>>>>>>INFO: Jk running ID=0 time=2/121
>>>>>>config=/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk2.p
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>r
>>>
>>>
>>>      
>>>
>>>>>>operties
>>>>>>Stopping service Tomcat-Standalone
>>>>>>Dec 25, 2002 11:26:13 PM org.apache.coyote.http11.Http11Protocol init
>>>>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
>>>>>>Starting service Tomcat-Standalone
>>>>>>Apache Tomcat/4.1.12-LE-jdk14
>>>>>>Dec 25, 2002 11:26:18 PM org.apache.coyote.http11.Http11Protocol
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>start
>>>
>>>
>>>      
>>>
>>>>>>INFO: Starting Coyote HTTP/1.1 on port 8080
>>>>>>Dec 25, 2002 11:26:18 PM org.apache.jk.common.ChannelSocket init
>>>>>>INFO: JK2: ajp13 listening on tcp port 8009
>>>>>>Dec 25, 2002 11:26:19 PM org.apache.jk.server.JkMain start
>>>>>>INFO: Jk running ID=0 time=1/277
>>>>>>config=/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk2.p
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>r
>>>
>>>
>>>      
>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>operties
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>>But the Apache error log says Apache cannot open the workers file,
>>>>>>even though the path specified is correct and permissions to the file
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>
>>>      
>>>
>>>>>>are
>>>>>>-rw-rw-r-- and to all directories drwxrwxr-x:
>>>>>>
>>>>>>[Wed Dec 25 15:14:36 2002] [error] (2)No such file or directory:
>>>>>>Error
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>>while opening the workers, jk will not work
>>>>>>
>>>>>>[Wed Dec 25 15:14:36 2002] [error] (2)No such file or directory:
>>>>>>Error
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>>while opening the workers, jk will not work
>>>>>>
>>>>>>[Wed Dec 25 15:14:36 2002] [notice] Apache/1.3.27 (Unix) mod_jk/1.2.0
>>>>>>configured -- resuming normal operations [Wed Dec 25 15:14:36 2002]
>>>>>>[notice] Accept mutex: sysvsem (Default: sysvsem)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>[ ... ]
>>>>>
>>>>>Milt Epstein
>>>>>Research Programmer
>>>>>Integration and Software Engineering (ISE)
>>>>>Campus Information Technologies and Educational Services (CITES)
>>>>>University of Illinois at Urbana-Champaign (UIUC) mepstein@uiuc.edu
>>>>>
>>>>>
>>>>>--
>>>>>To unsubscribe, e-mail:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>><ma...@jakarta.apache.org>
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>For additional commands, e-mail:
>>>>><ma...@jakarta.apache.org>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>--
>>>>To unsubscribe, e-mail:
>>>><ma...@jakarta.apache.org>
>>>>For additional commands, e-mail:
>>>><ma...@jakarta.apache.org>
>>>>
>>>>
>>>>-----------------------------------------------------------------------
>>>>-
>>>>
>>>><Server port="8005" shutdown="SHUTDOWN" debug="0">
>>>><!-- NOTE NOTE NOTE NOTE -->
>>>><!-- I couldn't get this to work, so I am commenting it out.  -->
>>>>
>>>><!-- Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
>>>>            modJk="/usr/local/webserver/apache/libexec/mod_jk.so"
>>>>            jkDebug="debug"
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>workersConfig="/usr/local/webserver/tomcat/conf/jk/workers.properties"
>>>
>>>
>>>      
>>>
>>>>            jkLog="/usr/local/webserver/tomcat/logs/mod_jk.log"/ -->
>>>>
>>>>
>>>><Service name="Tomcat-Standalone">
>>>>  <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>>>>            port="8080" minProcessors="5" maxProcessors="75"
>>>>            enableLookups="true" redirectPort="8443"
>>>>            acceptCount="10" debug="0" connectionTimeout="20000"
>>>>            useURIValidationHack="false" />
>>>><!--
>>>>  <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
>>>>            port="8009" minProcessors="5" maxProcessors="75"
>>>>            acceptCount="10" debug="0"/>
>>>>-->
>>>>  <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>>>>            port="8009" minProcessors="5" maxProcessors="75"
>>>>            enableLookups="true" redirectPort="8443"
>>>>            acceptCount="10" debut="0" connectionTimeout="0"
>>>>            useURIValidationHack="false"
>>>>
>>>>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>>>>
>>>>  <Engine name="Standalone" defaultHost="localhost" debug="0">
>>>>    <Valve
>>>>
>>>>
>>>>        
>>>>
>>>className="org.apache.catalina.valves.RequestDumperValve"/>
>>>
>>>
>>>      
>>>
>>>>    <Logger className="org.apache.catalina.logger.FileLogger"
>>>>            prefix="catalina_log." suffix=".txt"
>>>>            timestamp="true"/>
>>>>    <Realm className="org.apache.catalina.realm.MemoryRealm" />
>>>>    <Host name="localhost" debug="0" appBase="webapps"
>>>>            unpackWARs="true" autoDeploy="true">
>>>>
>>>>      <!-- NOTE NOTE NOTE NOTE -->
>>>>      <!-- I couldn't get this to work, so I am commenting it out.
>>>>
>>>>
>>>>        
>>>>
>>>-->
>>>
>>>
>>>      
>>>
>>>>      <!-- Listener
>>>>
>>>>
>>>>        
>>>>
>>>className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true"
>>>
>>>
>>>      
>>>
>>>>            forwardAll="false"/ -->
>>>>
>>>>      <Valve className="org.apache.catalina.valves.AccessLogValve"
>>>>            directory="logs"  prefix="localhost_access_log."
>>>>
>>>>
>>>>        
>>>>
>>>suffix=".txt"
>>>
>>>
>>>      
>>>
>>>>            pattern="common"/>
>>>>      <Logger className="org.apache.catalina.logger.FileLogger"
>>>>            directory="logs"  prefix="localhost_log." suffix=".txt"
>>>>      timestamp="true"/>
>>>>        <Context path="" docBase="ROOT" debug="0"/>
>>>>    </Host>
>>>>  </Engine>
>>>></Service>
>>>></Server>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>--
>>>To unsubscribe, e-mail:
>>>      
>>>
><ma...@jakarta.apache.org>
>  
>
>>>For additional commands, e-mail:
>>><ma...@jakarta.apache.org>
>>>
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>><ma...@jakarta.apache.org>
>>>For additional commands, e-mail:
>>><ma...@jakarta.apache.org>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>><ma...@jakarta.apache.org>
>>>For additional commands, e-mail:
>>><ma...@jakarta.apache.org>
>>>
>>>---
>>>Incoming mail is certified Virus Free.
>>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>>Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
>>>
>>>
>>>---
>>>Outgoing mail is certified Virus Free.
>>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>>Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>      
>>>
><ma...@jakarta.apache.org>
>  
>
>>>For additional commands, e-mail:
>>>      
>>>
><ma...@jakarta.apache.org>
>  
>
>>>      
>>>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>  
>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How I got mod_jk running (Was: Re: Yes!!! It works!!!)

Posted by Bill Barker <wb...@wilshire.com>.
I'm as mystified as John on why ApacheConfig doesn't work (unless it's a
timing problem between Tomcat and Apache starting up).

To answer one of the points in your link below:  At the moment you can
freely mix-and-match the native Jk(2) code and the Java Connectors.  By
default, Tomcat 4.1.x enables the Jk2 Java connector in 'server.xml'.  If
you are also using the Jk2 Apache code, then you have some extra features
exposed.  However, I've personally got one system happily running using TC
4.1.x with the Jk2 Java connector, and Apache/httpd using mod_jk 1.1.0 (the
one that ships with Tomcat 3.3).  In theory, even more extreme splits are
possible, however I'm guessing that you won't see many of them :-).

"Jerry Ford" <je...@katzenjammer.us> wrote in message
news:3E0CCCC5.80801@katzenjammer.us...
> Well, I could not make auto-conf work, and the system does work without
> it.
>
> If anybody is interested in my experience, go here:
>
>
http://www.katzenjammer.us/~jford/apache/tomcat/connectors/mod_jk_setup.shtm
l
>
> And, again, thanks to everybody for helping me out.
>
> Jerry
>
> Turner, John wrote:
>
> >My guess is the virtual hosting configuration was messed up somehow.
> >Couldn't say more without trying the problem config files on one of my
> >systems, but I don't have the time right now to do it.
> >
> >The auto-generation works like a charm, I can attest to that as can
others.
> >
> >AFAIK, the only way using auto-gen would cause JK NOT to work is if the
> >auto-gen was generating Apache VirtualHost containers and JkMount
statements
> >that didn't apply, weren't used, or were overridden somehow with other
> >configuration directives in httpd.conf.
> >
> >John
> >
> >
> >-----Original Message-----
> >From: Denise Mangano [mailto:DeniseM@complusdata.com]
> >Sent: Friday, December 27, 2002 10:09 AM
> >To: 'Tomcat Users List'
> >Subject: RE: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting
c
> >loser)
> >
> >Justin -
> >
> >Any thoughts on why that did the trick?  As I mentioned, those directives
> >are not commented out on my config, but it works?? Just curious is all...
> >
> >Thanks!
> >
> >Denise
> >
> >
> >-----Original Message-----
> >From: Justin L. Spies [mailto:jspies@pantek.com]
> >Sent: Friday, December 27, 2002 10:01 AM
> >To: 'Tomcat Users List'
> >Subject: RE: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting
> >closer)
> >
> >
> >This was a message I thought I had sent to the list, but I somehow
managed
> >to send it to Jerry directly...
> >
> >
> >
> >Congratulations Jerry!  Glad to hear that you've got a working system
now!
> >
> >Just for the benefit of the other list members out there, the pieces we
> >commented out were the following:
> >  <!-- This listener was immediately
> > after the <Server port=...> directive. -->
> >  <!-- Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
> >              modJk="/usr/local/webserver/apache/libexec/mod_jk.so"
> >              jkDebug="debug"
> >
> >workersConfig="/usr/local/webserver/tomcat/conf/jk/workers.properties"
> >              jkLog="/usr/local/webserver/tomcat/logs/mod_jk.log"/ -->
> >
> >  ---   AND   ---
> >        <!-- This listener was immediately after the <Host name=...>
> > directive inside of the <Server port=...> directive.
> >-->
> >        <!-- Listener
className="org.apache.ajp.tomcat4.config.ApacheConfig"
> >append="true"
> >              forwardAll="false"/ -->
> >
> >
> >Has anyone else out there had good experience setting up the Apache auto
> >configuration?
> >
> >
> >Sincerely,
> >Pantek Incorporated
> >Justin L. Spies
> >
> >URI: http://www.pantek.com
> >Ph   440.519.1802
> >Fax  440.248.5274
> >Cell 440.336.3317
> >
> >-----Original Message-----
> >From: Jerry Ford [mailto:jford@katzenjammer.us]
> >Sent: Thursday, December 26, 2002 5:31 PM
> >To: Justin L. Spies
> >Cc: 'Tomcat Users List'; jerry@katzenjammer.us
> >Subject: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting
> >closer)
> >
> >
> >Justin, I owe you a beer...
> >
> >I removed the two listener statements that you commented out in my
> >server.xml file and now servlets work from Apache without a port setting.
> >
> >Thank you thank you thank you.
> >
> >(And thanks to everyone else who put up with my whining over the past
> >few days and offered help---especially Denise, John, and Jeff :)
> >
> >(BTW, it's academic now, but, yes, on my box tomcat is a symbolic link
> >to jakarta-tomcat-4.1.12-LE-jdk14.)
> >
> >Jerry
> >
> >Justin L. Spies wrote:
> >
> >
> >
> >>Jerry,
> >>I've updated and simplified the configuration files that you supplied
> >>previously.  Any changes I made are denoted by the following:
> >> NOTE NOTE NOTE NOTE
> >>
> >>These changes cause your system to have the same config that I first
> >>used to get my system working.  I'm not sure about your directory
> >>structure and whether or not you have symlinks setup, however I did
> >>notice that in some of the configuration files you were using two
> >>different directories that should point to the same directories.  Here
> >>is an example from httpd.conf:
> >>
> >>You had the following for the JkWorkersFile:
> >>JkWorkersFile
> >>"/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.pr
> >>o
> >>perties"
> >>
> >>But just below that you had the following apache directive:
> >>   <Directory "/usr/local/webserver/tomcat/webapps/examples">
> >>
> >>These should be the same directory above the /conf directory and above
> >>the /webapps directory.  On my system, I have tomcat installed in
> >>/var/tomcat4, so I have the following directives:
> >>
> >>JkWorkersFile "/var/tomcat4/conf/jk/workers.properties"
> >> --  and  --
> >>   <Directory "/var/tomcat4/webapps/examples">
> >>
> >>
> >>See how they are the same first two?  /conf and /webapps should be a
> >>subdirectory of /tomcat4 (in my case) or /tomcat (in your case), unless
> >>
> >>
> >
> >
> >
> >>you have a symlink (in your case) from
> >>/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14 to
> >>/usr/local/webserver/tomcat.  Does that make sense, or did I just
> >>completely confuse everyone?
> >>
> >>Jerry, when you restart Apache and Tomcat, could you send us copies of
> >>the apache error log and the tomcat catalina.out files?  Also, if you
> >>could confirm the directory structure, that would be a big help.
> >>
> >>Sincerely,
> >>Pantek Incorporated
> >>Justin L. Spies
> >>
> >>URI: http://www.pantek.com
> >>Ph   440.519.1802
> >>Fax  440.248.5274
> >>Cell 440.336.3317
> >>
> >>
> >>
> >>
> >>-----Original Message-----
> >>From: Jerry Ford [mailto:jerry@katzenjammer.us]
> >>Sent: Thursday, December 26, 2002 2:00 PM
> >>To: Tomcat Users List
> >>Subject: Re: mod_jk---still trying, getting closer
> >>
> >>
> >>I use the mod_jk binary obtained from John Turner's how-to page, and
> >>the
> >>
> >>httpd.conf and server.xml statements are the same as the statements in
> >>the configurations several other people here have provided as examples,
> >>
> >>
> >
> >
> >
> >>I think.  I have also tried to follow John Turner's suggested
> >>confuguration statements.
> >>
> >>I've tried just about every combination of configurations that have
> >>been
> >>
> >>suggested. It's possible that by now I have mixed up different people's
> >>advice, but I don't know what needs to be changed.
> >>
> >>I don't know why JK2 is in there, other than the coyote packages that
> >>are referenced in sever.xml.  But if I don't use those, what do I use?
> >>
> >>I'm beginning to think mod_webapp.so is looking like my only hope of
> >>getting Tomcat and Apache to work together.
> >>
> >>Jerry
> >>
> >>Jerry
> >>
> >>Milt Epstein wrote:
> >>
> >>
> >>
> >>
> >>
> >>>On Wed, 25 Dec 2002, Jerry Ford wrote:
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>John:
> >>>>
> >>>>Sorry, I had changed ajp13 to worker1 in trying to emulate Denise's
> >>>>working setup, but that didn't do any good so I changed it back and
> >>>>inadvertently put the dot in. But it doesn't matter, it doesn't work
> >>>>either way.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>One things I don't understand, it seems like you have JK2 running on
> >>>the Tomcat side, but you refer to workers.properties, which is a JK
> >>>file, JK2 doesn't use it, I don't believe.  Could that be related to
> >>>the problem?
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>As noted in earlier e-mails, I can get the Tomcat example servlets to
> >>>>work, as well as my own j_tools HelloWorld, when I specify port 8080,
> >>>>
> >>>>
> >
> >
> >
> >>>>but not through Apache:
> >>>>
> >>>>http://localhost opens Apache's index page http://localhost:8080
> >>>>opens
> >>>>
> >>>>
> >>>>
> >>>>
> >>
> >>
> >>
> >>
> >>>>Tomcat's index page, and servlets work
> >>>>http://localhost/examples/servlets opens the servlets index page, but
> >>>>
> >>>>
> >
> >
> >
> >>>>servlets don't work
> >>>>
> >>>>Catalina.out in Tomcat's logs directory says mod_jk is running:
> >>>>
> >>>>Dec 25, 2002 8:50:51 PM org.apache.coyote.http11.Http11Protocol init
> >>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
> >>>>Starting service Tomcat-Standalone
> >>>>Apache Tomcat/4.1.12-LE-jdk14
> >>>>Dec 25, 2002 8:50:57 PM org.apache.coyote.http11.Http11Protocol start
> >>>>INFO: Starting Coyote HTTP/1.1 on port 8080
> >>>>Dec 25, 2002 8:50:57 PM org.apache.jk.common.ChannelSocket init
> >>>>INFO: JK2: ajp13 listening on tcp port 8009
> >>>>Dec 25, 2002 8:50:57 PM org.apache.jk.server.JkMain start
> >>>>INFO: Jk running ID=0 time=2/121
> >>>>config=/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk2.p
> >>>>
> >>>>
> >r
> >
> >
> >>>>operties
> >>>>Stopping service Tomcat-Standalone
> >>>>Dec 25, 2002 11:26:13 PM org.apache.coyote.http11.Http11Protocol init
> >>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
> >>>>Starting service Tomcat-Standalone
> >>>>Apache Tomcat/4.1.12-LE-jdk14
> >>>>Dec 25, 2002 11:26:18 PM org.apache.coyote.http11.Http11Protocol
> >>>>
> >>>>
> >start
> >
> >
> >>>>INFO: Starting Coyote HTTP/1.1 on port 8080
> >>>>Dec 25, 2002 11:26:18 PM org.apache.jk.common.ChannelSocket init
> >>>>INFO: JK2: ajp13 listening on tcp port 8009
> >>>>Dec 25, 2002 11:26:19 PM org.apache.jk.server.JkMain start
> >>>>INFO: Jk running ID=0 time=1/277
> >>>>config=/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk2.p
> >>>>
> >>>>
> >r
> >
> >
> >>>>
> >>>>
> >>>>
> >>>>
> >>operties
> >>
> >>
> >>
> >>
> >>>>But the Apache error log says Apache cannot open the workers file,
> >>>>even though the path specified is correct and permissions to the file
> >>>>
> >>>>
> >
> >
> >
> >>>>are
> >>>>-rw-rw-r-- and to all directories drwxrwxr-x:
> >>>>
> >>>>[Wed Dec 25 15:14:36 2002] [error] (2)No such file or directory:
> >>>>Error
> >>>>
> >>>>
> >>>>
> >>>>
> >>
> >>
> >>
> >>
> >>>>while opening the workers, jk will not work
> >>>>
> >>>>[Wed Dec 25 15:14:36 2002] [error] (2)No such file or directory:
> >>>>Error
> >>>>
> >>>>
> >>>>
> >>>>
> >>
> >>
> >>
> >>
> >>>>while opening the workers, jk will not work
> >>>>
> >>>>[Wed Dec 25 15:14:36 2002] [notice] Apache/1.3.27 (Unix) mod_jk/1.2.0
> >>>>configured -- resuming normal operations [Wed Dec 25 15:14:36 2002]
> >>>>[notice] Accept mutex: sysvsem (Default: sysvsem)
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>[ ... ]
> >>>
> >>>Milt Epstein
> >>>Research Programmer
> >>>Integration and Software Engineering (ISE)
> >>>Campus Information Technologies and Educational Services (CITES)
> >>>University of Illinois at Urbana-Champaign (UIUC) mepstein@uiuc.edu
> >>>
> >>>
> >>>--
> >>>To unsubscribe, e-mail:
> >>>
> >>>
> >>>
> >>>
> >><ma...@jakarta.apache.org>
> >>
> >>
> >>
> >>
> >>>For additional commands, e-mail:
> >>><ma...@jakarta.apache.org>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>--
> >>To unsubscribe, e-mail:
> >><ma...@jakarta.apache.org>
> >>For additional commands, e-mail:
> >><ma...@jakarta.apache.org>
> >>
> >>
> >>-----------------------------------------------------------------------
> >>-
> >>
> >><Server port="8005" shutdown="SHUTDOWN" debug="0">
> >> <!-- NOTE NOTE NOTE NOTE -->
> >> <!-- I couldn't get this to work, so I am commenting it out.  -->
> >>
> >> <!-- Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
> >>             modJk="/usr/local/webserver/apache/libexec/mod_jk.so"
> >>             jkDebug="debug"
> >>
> >>
> >>
> >workersConfig="/usr/local/webserver/tomcat/conf/jk/workers.properties"
> >
> >
> >>             jkLog="/usr/local/webserver/tomcat/logs/mod_jk.log"/ -->
> >>
> >>
> >> <Service name="Tomcat-Standalone">
> >>   <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
> >>             port="8080" minProcessors="5" maxProcessors="75"
> >>             enableLookups="true" redirectPort="8443"
> >>             acceptCount="10" debug="0" connectionTimeout="20000"
> >>             useURIValidationHack="false" />
> >><!--
> >>   <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
> >>             port="8009" minProcessors="5" maxProcessors="75"
> >>             acceptCount="10" debug="0"/>
> >>-->
> >>   <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
> >>             port="8009" minProcessors="5" maxProcessors="75"
> >>             enableLookups="true" redirectPort="8443"
> >>             acceptCount="10" debut="0" connectionTimeout="0"
> >>             useURIValidationHack="false"
> >>
> >>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
> >>
> >>   <Engine name="Standalone" defaultHost="localhost" debug="0">
> >>     <Valve
> >>
> >>
> >className="org.apache.catalina.valves.RequestDumperValve"/>
> >
> >
> >>     <Logger className="org.apache.catalina.logger.FileLogger"
> >>             prefix="catalina_log." suffix=".txt"
> >>             timestamp="true"/>
> >>     <Realm className="org.apache.catalina.realm.MemoryRealm" />
> >>     <Host name="localhost" debug="0" appBase="webapps"
> >>             unpackWARs="true" autoDeploy="true">
> >>
> >>       <!-- NOTE NOTE NOTE NOTE -->
> >>       <!-- I couldn't get this to work, so I am commenting it out.
> >>
> >>
> >-->
> >
> >
> >>       <!-- Listener
> >>
> >>
> >className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true"
> >
> >
> >>             forwardAll="false"/ -->
> >>
> >>       <Valve className="org.apache.catalina.valves.AccessLogValve"
> >>             directory="logs"  prefix="localhost_access_log."
> >>
> >>
> >suffix=".txt"
> >
> >
> >>             pattern="common"/>
> >>       <Logger className="org.apache.catalina.logger.FileLogger"
> >>             directory="logs"  prefix="localhost_log." suffix=".txt"
> >>       timestamp="true"/>
> >>         <Context path="" docBase="ROOT" debug="0"/>
> >>     </Host>
> >>   </Engine>
> >> </Service>
> >></Server>
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
> >--
> >To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> >For additional commands, e-mail:
> ><ma...@jakarta.apache.org>
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> ><ma...@jakarta.apache.org>
> >For additional commands, e-mail:
> ><ma...@jakarta.apache.org>
> >
> >--
> >To unsubscribe, e-mail:
> ><ma...@jakarta.apache.org>
> >For additional commands, e-mail:
> ><ma...@jakarta.apache.org>
> >
> >---
> >Incoming mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
> >
> >
> >---
> >Outgoing mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
> >
> >
> >--
> >To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> >For additional commands, e-mail:
<ma...@jakarta.apache.org>
> >
> >





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>