There was a bug (that I think was fixed, but I can't be bothered to look,
since I don't use Jk2 :).  Jk2 was using a signed short for the port number,
which means that it can't see half of the port numbers (since it considers
'port < 0 ' to be invalid).  The short-term fix is to use a port < 32K.

<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I've been having trouble configuring JK2 (version 2.0.2) to connect to a
> Jetty server on any port other than 8009.  I'm including the
> workers2.properties file and the jk2.log.  I've had similar results on
> both IIS and Apache 1.3.  Has anyone had any luck running on other ports?
>
> The log below shows that it first tries to connect using port 8009 and
> gets a "Connection refused" even though the configuration file specifies
> another port (50101).  It then shows it trying to connect to the correct
> port and still getting a "Connection refused", but I'm pretty sure that is
> bogus because I can telnet to that port and get a response.  When I start
> Jetty on port 8009 instead (even with the below configuration) everything
> works fine.
>
> Any ideas?  Am I missing some configuration parameters?
>
> Thanks,
>
> Jonathan
>
> ==== workers2.properties ====
>
> [logger:]
> level=INFO
>
> [shm:]
> file=${serverRoot}/logs/jk2.shm
> size=1048576
>
> [lb:load_balancer]
>
> [channel.socket:172.18.1.115:50101]
> port=50101
> host=172.18.1.115
> group=load_balancer
> lb_factor=1
>
> [uri:/test/*]
> group=lb:load_balancer
>
> ==== jk2.log ====
>
> [Tue Jan 20 02:38:40 2004]  (error) [jk_channel_socket.c (335)]:
channelSocket.open() connect failed 172.18.1.115:8009 146 Connection refused
> [Tue Jan 20 02:38:40 2004]  (error) [jk_worker_ajp13.c (247)]:
ajp13.connect() failed ajp13:172.18.1.115:50101
> [Tue Jan 20 02:38:40 2004]  (error) [jk_worker_ajp13.c (322)]:
ajp13.service() failed to connect endpoint errno=146 Connection refused
> [Tue Jan 20 02:38:40 2004]  (error) [jk_worker_ajp13.c (512)]:
ajp13.service() Error  forwarding ajp13:172.18.1.115:50101 1 1
> [Tue Jan 20 02:38:40 2004]  ( info) [jk_worker_ajp13.c (552)]:
ajp13.done() close endpoint ajp13:172.18.1.115:50101 error_state 1
> [Tue Jan 20 02:38:40 2004]  (error) [jk_worker_lb.c (402)]: lb.service()
worker failed 21000 for ajp13:172.18.1.115:50101
> [Tue Jan 20 02:38:40 2004]  ( info) [jk_worker_lb.c (217)]: lb.getWorker()
All workers in error state, use the one with oldest error
> [Tue Jan 20 02:38:40 2004]  (error) [jk_channel_socket.c (335)]:
channelSocket.open() connect failed 172.18.1.115:8009 146 Connection refused
> [Tue Jan 20 02:38:40 2004]  (error) [jk_worker_ajp13.c (247)]:
ajp13.connect() failed ajp13:172.18.1.115:50101
> [Tue Jan 20 02:38:40 2004]  (error) [jk_worker_ajp13.c (322)]:
ajp13.service() failed to connect endpoint errno=146 Connection refused
> [Tue Jan 20 02:38:40 2004]  (error) [jk_worker_ajp13.c (512)]:
ajp13.service() Error  forwarding ajp13:172.18.1.115:50101 1 1
> [Tue Jan 20 02:38:40 2004]  ( info) [jk_worker_ajp13.c (552)]:
ajp13.done() close endpoint ajp13:172.18.1.115:50101 error_state 1
> [Tue Jan 20 02:38:40 2004]  (error) [jk_worker_lb.c (402)]: lb.service()
worker failed 21000 for ajp13:172.18.1.115:50101
> [Tue Jan 20 02:38:40 2004]  ( info) [jk_worker_lb.c (217)]: lb.getWorker()
All workers in error state, use the one with oldest error
> [Tue Jan 20 02:38:40 2004]  ( info) [jk_worker_lb.c (248)]: lb.getWorker()
We tried all possible workers 2
> [Tue Jan 20 02:38:40 2004]  (error) [jk_worker_lb.c (348)]:
lb_worker.service() all workers in error or disabled state
> [Tue Jan 20 02:38:40 2004]  (error) [mod_jk2.c (427)]: mod_jk.handler()
Error connecting to tomcat 21000




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

Reply via email to