Does your server.xml have a line that looks like this:

    <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" />

If it does, is that line commented out or otherwise disabled?

In any case, if you have Apache setup, you don't need to access Tomcat on
8080.  You should be able to access http://localhost/examples.  That's the
test to see if mod_jk is installed and working.

John


> -----Original Message-----
> From: Denise Mangano [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 12:08 PM
> To: 'Tomcat Users List'
> Subject: RE: Apache-Tomcat mod_jk
> 
> 
> I think I am  confused : ) I originally set up my website in 
> Apache, and it
> is listening to port 80.  I could access my website through
> http://localhost.  I installed Tomcat (did not make any 
> config changes).
> After the installation I still had access to http://localhost and to
> Tomcat's index page at http://localhost:8080.  (At that point 
> I could also
> access http://localhost:8080/examples/jsp/index.html.  Now I still can
> access http://localhost but I can NOTaccess 
> http://localhost:8080.  Nor can
> I access the examples directory through either.  I have made no port
> changes.
> 
> The only change I made to the httpd.conf file was to add, at 
> the very end,
> Include /usr/local/tomcat/conf/jk/mod_jk.conf  (I changed a path to my
> mod_jk.so file in the generated mod_jk.conf file so I copied 
> the custom conf
> file to the jk directory and pointed there (read that in 
> another how-to)).
> I have ServerName defined as www.mydomain.com
> 
> In my server.xml file:
> <Server port="8005" shutdown="SHUTDOWN" debug="0">
> <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" />
> 
> <Host name="www.mydomain.com" debug="0" appBase="webapps" 
> unpackWARs="true"
> autoDeploy="true">
>         <Listener 
> className="org.apache.ajp.tomcat4.config.ApacheConfig"
> append="true" forwardAll="false" />
> 
> workers.properties:
> # BEGIN workers.properties
> #
> # Setup for apache system
> #
> # (optional) make this equal to CATALINA_HOME
> workers.tomcat_home=/var/jakarta-tomcat-4.1.12
> #
> # (optional) make this equal to JAVA_HOME
> workers.java_home=/usr/local/j2sdk1.4.1
> #
> ps=/
> worker.list=ajp13
> 
> # Definition for Ajp13 worker
> #
> worker.ajp13.port=8009
> 
> # change this line to match apache ServerName and Host name 
> in server.xml
> worker.ajp13.host=www.parkingticketpayment.com
> 
> worker.ajp13.type=ajp13
> #
> # END workers.properties
> 
> I think I did everything right....
> 
> Denise Mangano
> Help Desk Analyst
> Complus Data Innovations, Inc.
> 
> 
> -----Original Message-----
> From: Ben Ricker [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, December 12, 2002 11:44 AM
> To: 'Tomcat Users List'
> Subject: RE: Apache-Tomcat mod_jk
> 
> 
> You seem to be confused here. I believe you said you were 
> accessing port
> 8080 when it was working. Now, unless you setup Apache to 
> listen on port
> 8080, you were talking directly to Tomcat's web server. Now 
> that you have
> moved to Apache, you want to drop the 8080 and use port 80, 
> which Apache
> listens to by default (again, unless you changed it).
> 
> I would suggest that you post all the lines you added to 
> httpd.conf, your
> workers.properties conf file, and your server.xml file. 
> 
> The JkMount directive tells Apache what path gets mapped to 
> Tomcat; see
> http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.h
> tml for more
> information about the directive.
> 
> HTH,
> 
> Ben Ricker
> 
> On Thu, 2002-12-12 at 10:41, Denise Mangano wrote:
> > I do have a workers.properties file.  I checked that, my 
> server.xml, 
> > and my httpd.conf and all server names are the same.
> > 
> > I thought the mod_jk.conf file took care of the LoadModule 
> directive 
> > that I would have had to place in my httpd.conf file.  I tried 
> > searching for info on the JkMount directive but could not 
> find any.  
> > Do I place JkMount path/to/modules/mod_jk-1.3-eapi.so?  And where 
> > would I place that in the httpd.conf file?  I just don't get why it 
> > was working before, but now it isn't....
> > 
> > Thanks again.
> > 
> > Denise Mangano
> > Help Desk Analyst
> > Complus Data Innovations, Inc.
> > 
> > 
> > -----Original Message-----
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, December 12, 2002 10:52 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Apache-Tomcat mod_jk
> > 
> > 
> > 
> > Do you have a workers.properties file?  Creating one is 
> explained in 
> > my HOWTO...JK needs one to understand how to get to Tomcat.
> > 
> > Do you have the JkMount statements in httpd.conf?  Apache 
> needs those 
> > to understand what to send to JK.
> > 
> > John
> > 
> > 
> > > -----Original Message-----
> > > From: Denise Mangano [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, December 12, 2002 10:38 AM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Apache-Tomcat mod_jk
> > > 
> > > 
> > > Thank you very much for your help.  The instructions were easy 
> > > enough
> > > to follow, with a few exceptions.  I downloaded the
> > > mod_jk-1.3-eapi.so because
> > > as per the site, that was the module to use if I am running 
> > > Apache 1.3 with
> > > mod_ssl.  After doing all the steps I tried to restart Apache 
> > > and got the
> > > following error message:
> > > 
> > > Starting httpd: Syntax error on line 4 of
> > > /var/jakarta-tomcat-4.1.12/conf/auto/mod_jk.conf:
> > > Cannot load /etc/httpd/libexec/mod_jk.so into server:
> > > /etc/httpd/libexec/mod_jk.so: cannot open shared object file: No 
> > > such
> > > file or directory
> > > 
> > > I changed the path in the mod_jk.conf file to  LoadModule 
> jk_module 
> > > /the/exact/path/to/mod_jk-1.3-eapi.so
> > > 
> > > When I tried to restart Apache it restarted no problem.  But now I
> > > cannot get to http://localhost:8080 when before I could.
> > > (http://localhost still
> > > works though)  Any thoughts?  In the meantime I am going back 
> > > to double
> > > check everything.
> > > 
> > > Denise Mangano
> > > Help Desk Analyst
> > > Complus Data Innovations, Inc.
> > > 
> > > 
> > > -----Original Message-----
> > > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, December 12, 2002 9:14 AM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Apache-Tomcat HOWTO
> > > 
> > > 
> > > 
> > > #1: Yes.
> > > 
> > > #2: No. :)
> > > 
> > > You don't need ant.  When I originally wrote the HOWTO, I thought 
> > > you
> > > did, so I hacked through getting it to work and put that in my
> > > HOWTO.  Then,
> > > based on a tip from someone on the list I learned that I 
> > > didn't need to go
> > > through all that, all I needed to do was follow connector 
> > > build option #2,
> > > which is using the standard ./configure method.
> > > 
> > > So, basically, if you want to build the connector from 
> source, all 
> > > you
> > > have to do is (assuming a GNU-ready build environment):
> > > 
> > > NOTE: the ./configure method assumes you have a sane build
> > > environment:
> > > libtool, GNU make, autoconf, m4
> > > 
> > > a) cd to CONNECTOR_HOME/jk/native.
> > > 
> > > b) check README and README.configure.
> > > 
> > > c) run buildconf.sh: ./buildconf.sh. This will create a 
> file called 
> > > "configure" in CONNECTOR_HOME/jk/native.
> > > 
> > > d) run configure: ./configure
> > > --with-apxs=/some/path/to/apache/bin/apxs
> > > --with-java-home=${JAVA_HOME}
> > > 
> > > e) run make: make
> > > 
> > > g) You should end up with a mod_jk.so file in 
> > > CONNECTOR_HOME/jk/native/apache-1.3. Copy that mod_jk.so file to 
> > > /path/to/apache/libexec/.
> > > 
> > > John
> > > 
> > > 
> > > > -----Original Message-----
> > > > From: Denise Mangano [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, December 12, 2002 9:04 AM
> > > > To: 'Tomcat Users List'
> > > > Subject: Apache-Tomcat HOWTO
> > > > 
> > > > 
> > > > Another trivial question... I am looking at John Turner's
> > > how-to's for
> > > > setting up Apache 1.3.26 + Tomcat 4.0.4.  There was a post
> > > that when
> > > > reading the how-to's version numbers are not that critical.
> > > Will this
> > > > document help
> > > > me for my Apache 1.3.27/Tomcat 4.1.12 set up?  If so, then does 
> > > > that
> > > > mean I have to install ant?
> > > > 
> > > > Thanks!
> > > > 
> > > > Denise Mangano
> > > > Complus Data Innovations, Inc.
> > > > 
> > > > --
> > > > 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]>
> > > 
> > > --
> > > 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]>
> > 
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> > <mailto:[EMAIL PROTECTED]>
> -- 
> Ben Ricker <[EMAIL PROTECTED]>
> Wellinx.com
> 
> 
> --
> 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]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to