> -----Original Message----- > From: Kyle Adams [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 22, 2004 5:49 PM > To: [EMAIL PROTECTED] > Subject: jk2 over non-default port > > I've been able to get jk2 running if I use the default port; however, I > get these error messages if I try to switch to a non-default port: > > [Wed Sep 22 09:26:07 2004] [error] channelSocket.open() connect failed > localhost:8009 146 Connection refused > [Wed Sep 22 09:26:07 2004] [error] ajp13.connect() failed > ajp13:localhost:60002 > [Wed Sep 22 09:26:07 2004] [error] ajp13.service() failed to connect > endpoint errno=146 Connection refused > [Wed Sep 22 09:26:07 2004] [error] ajp13.service() Error forwarding > ajp13:localhost:60002 1 1 > [Wed Sep 22 09:26:07 2004] [error] lb.service() worker failed 120000 > for ajp13:localhost:60002 > > The odd thing above is that the initial channelSocket.open() is the > only thing using the default 8009. Everything else is using the correct > 60002 (see below for all relevant log and config file snippets). All of > the examples/forum posts/mailing lists I've google'd over show the same > port throughout the error messages. > > I'm just trying to setup a single apache instance connecting to a > single tomcat instance. No load balancing, clustering, failover or > anything fancy like that. I'm using the jsp-examples that came with > Tomcat as my test URI. > > Here's my environment: > > Solaris 8 > JDK 1.4.2_05 > Apache 2.0.51 > Tomcat 5.0.28 > > I had problems building the connector from source, so I downloaded the > binary at > http://apache.cs.utah.edu/jakarta/tomcat-connectors/jk2/binaries/solaris/ > ; even though it says it's for apache 2.0.43, it appears to work fine > with 2.0.51 when using default ports. > > Here are all relevant config files, in their current state (I've tried > a myriad of variations): > > * My jk2.properties has everything commented out. I've also tried it > with channelSocket.port uncommented and set to 60002. > > * server.xml snippet > > <Service name="Catalina"> > <!-- This is here for compatibility only, not required --> > <Connector port="60002" protocol="AJP/1.3"/> > > <Engine name="Catalina" defaultHost="localhost" > jvmRoute="localhost:60002"> > <Logger className="org.apache.catalina.logger.FileLogger" /> > > <Realm className="org.apache.catalina.realm.UserDatabaseRealm" > resourceName="UserDatabase" /> > > <Host name="localhost" appBase="webapps" /> > </Engine> > </Service> > > * workers2.properties (taken from > http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat- > connectors/jk/conf/workers2.properties.minimal?rev=1.1&view=auto > with only minor modifications to make URIs work under default port): > > # > # This is the minimal JK2 connector configuration file. > # > > [logger] > info=Native logger > level=ERROR > > [config:] > file=${serverRoot}/conf/workers2.properties > debug=0 > debugEnv=0 > > [uriMap:] > info=Maps the requests. > debug=0 > > [shm:] > info=Scoreboard. Required for reconfiguration and status with > multiprocess servers > file=${serverRoot}/logs/jk2.shm > debug=0 > > [workerEnv:] > info=Global server options > timing=0 > debug=0 > > [lb:lb] > info=Default load balancer. > debug=0 > > [channel.socket:localhost:60002] > info=Ajp13 forwarding over socket > debug=0 > tomcatId=localhost:60002
add under your [channel.socket:localhost:60002] host=localhost port=60002 Charlie > > [uri:/admin/*] > info=Tomcat HTML based administration web application. > debug=0 > > [uri:/manager/*] > info=A scriptable management web application for the Tomcat Web > Server. > debug=0 > > [uri:/jsp-examples/*] > info=JSP 2.0 Examples. > debug=0 > > [uri:/servlets-examples/*] > info=Servlet 2.4 Examples. > debug=0 > > [uri:/*.jsp] > info=JSP Extension mapping. > debug=0 > > * catalina.out, a snippet from the startup sequence: > > Sep 22, 2004 9:25:33 AM org.apache.jk.common.ChannelSocket init > INFO: JK2: ajp13 listening on /0.0.0.0:60002 > Sep 22, 2004 9:25:33 AM org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=1/173 > config=/lcl/apps/tomcat/conf/jk2.properties > Sep 22, 2004 9:25:33 AM org.apache.catalina.startup.Catalina start > INFO: Server startup in 7307 ms > > * error_log, the startup sequence: > > [Wed Sep 22 09:25:49 2004] [error] jk2_init() Can't find child 3965 in > scoreboard > [Wed Sep 22 09:25:49 2004] [error] mod_jk child init 1 0 > [Wed Sep 22 09:25:49 2004] [error] mod_jk child init 1 -2 > [Wed Sep 22 09:25:49 2004] [error] jk2_init() Can't find child 3967 in > scoreboard > [Wed Sep 22 09:25:49 2004] [error] mod_jk child init 1 -2 > [Wed Sep 22 09:25:49 2004] [notice] Apache/2.0.51 (Unix) DAV/2 > mod_jk2/2.0.2 configured -- resuming normal operations > > Any ideas? > > Thanks, > Kyle > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
