  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | JK2: Cannot configure to use port other than 8009 | JK2: Cannot configure to use port other than 8009 2004-01-20 - By jmorace@(protected)
Back 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: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|
 |