Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
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
Reply:     1     2  

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)




©2008 junlu.com - Jax Systems, LLC, U.S.A.