I would change "ajp12" to "ajp13", especially in .type.  JK = ajp13.  Like
this:

worker.list = one
worker.one.type = ajp13
worker.one.host = localhost
worker.one.port = 8009

Take out the load balance line (lbfactor)...with only one Tomcat there is no
need for any load-balancing configuration.

Change default.worker in the URI properties file to match whatever
worker.list is in your workers.properties file.

In server.xml, make sure that the element with a class of "Ajp13Connector"
is enabled (remove the comment tags) and is set to run on port 8009, the
same port listed in your workers.properties file.

Think of JK as a chain.  All you have to do is make sure each link in the
chain matches the next one.  I think someone else suggested changing things
to ajp12, I'm not sure why, but if I were you I would avoid anything but
"ajp13" and use my own names for things like "worker.list", etc.  AJP12,
AJP13, and AJP14 designate a particular protocol.  

John


> -----Original Message-----
> From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 15, 2002 2:04 PM
> To: Tomcat Users List
> Subject: RE: Tomcat IIS Worker problem
> 
> 
> 
> Here we go. The files' contents are below.
> workers.p :
> workers.tomcat_home=c:\tomcat
> workers.java_home=c:\jdk1.3.1_04
> ps=\
> worker.list = ajp12
> worker.ajp12.type = ajp12
> worker.ajp12.host = localhost
> worker.ajp12.port = 8009
> worker.ajp12.lbfactor=1
> 
> uriworkermap.p:
> default.worker=ajp12
> /*.jsp=$(default.worker)
> /refcoapp/*.jsp=$(default.worker)
> /examples/*.jsp=$(default.worker)
> /examples/servlet/*=$(default.worker)
> I'm not certain what other files would be necessary since 
> I've only touched these in the whole process. I changed all 
> ajp13 to 12s and got the error that you saw. Where would I 
> change the listening port for tomcat...I didn't change any of 
> the server.xml properties.
> Thanks,
> Lior
>  "Turner, John" <[EMAIL PROTECTED]> wrote:
> Looks to me like your Tomcat is either not running, or listening on a
> different port:
> 
> [Tue Oct 15 13:48:24 2002] [jk_connect.c (115)]: 
> jk_open_socket, try to
> connect socket = 632
> [Tue Oct 15 13:48:25 2002] [jk_connect.c (124)]: jk_open_socket, after
> connect ret = -1
> [Tue Oct 15 13:48:25 2002] [jk_connect.c (143)]: 
> jk_open_socket, connect()
> failed errno = 61
> 
> FYI -
> 
> It would be A LOT easier for people to help you if you would post some
> config files (as I've already suggested twice...maybe 3 times 
> is the charm).
> Probably could have saved the last 2 or 3 iterations of "OK, 
> I tried X and
> got Y, now what?". But hey, if you want to draw this out, that's cool.
> 
> John
> 
> 
> > -----Original Message-----
> > From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 15, 2002 1:53 PM
> > To: Tomcat Users List
> > Subject: RE: Tomcat IIS Worker problem
> > 
> > 
> > 
> > Ok, so now that I changed the service to ajp12 I get the 
> > following in the log file:
> > [Tue Oct 15 13:48:24 2002] [jk_isapi_plugin.c (679)]: 
> > HttpExtensionProc started
> > [Tue Oct 15 13:48:24 2002] [jk_worker.c (123)]: Into 
> > wc_get_worker_for_name ajp12
> > [Tue Oct 15 13:48:24 2002] [jk_worker.c (127)]: 
> > wc_get_worker_for_name, done found a worker
> > [Tue Oct 15 13:48:24 2002] [jk_isapi_plugin.c (701)]: 
> > HttpExtensionProc got a worker for name ajp12
> > [Tue Oct 15 13:48:24 2002] [jk_ajp12_worker.c (223)]: Into 
> > jk_worker_t::get_endpoint
> > [Tue Oct 15 13:48:24 2002] [jk_ajp12_worker.c (121)]: Into 
> > jk_endpoint_t::service
> > [Tue Oct 15 13:48:24 2002] [jk_connect.c (108)]: Into jk_open_socket
> > [Tue Oct 15 13:48:24 2002] [jk_connect.c (115)]: 
> > jk_open_socket, try to connect socket = 632
> > [Tue Oct 15 13:48:25 2002] [jk_connect.c (124)]: 
> > jk_open_socket, after connect ret = -1
> > [Tue Oct 15 13:48:25 2002] [jk_connect.c (143)]: 
> > jk_open_socket, connect() failed errno = 61
> > [Tue Oct 15 13:48:25 2002] [jk_ajp12_worker.c (134)]: In 
> > jk_endpoint_t::service, sd = -1
> > [Tue Oct 15 13:48:25 2002] [jk_ajp12_worker.c (152)]: In 
> > jk_endpoint_t::service, Error sd = -1
> > [Tue Oct 15 13:48:25 2002] [jk_isapi_plugin.c (716)]: 
> > HttpExtensionProc error, service() failed
> > [Tue Oct 15 13:48:25 2002] [jk_ajp12_worker.c (163)]: Into 
> > jk_endpoint_t::done
> > 
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos, & more
> faith.yahoo.com
> 

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

Reply via email to