tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jerry Ford <jf...@katzenjammer.us>
Subject Yes!!! It works!!! (was: Re: mod_jk---still trying, getting closer)
Date Thu, 26 Dec 2002 22:30:37 GMT
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.pro
>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.pr
>>>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.pr
>>>      
>>>
>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:
>>    
>>
><mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>  
>
>>For additional commands, e-mail: 
>><mailto:tomcat-user-help@jakarta.apache.org>
>> 
>>
>>    
>>
>
>
>--
>To unsubscribe, e-mail:
><mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:tomcat-user-help@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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message