Hi, Why do I get these errors? I look at the 'work' directory under tomcat and I didn't see the jk2.socket file. Which process is responsible for generating that file? I am running tomcat as root user, and there is no reaso it couldn't write to that folder. Below you will find the error messages and also the jk2.properties and workers2.properties in my enviroment. My system: ---------------- Tomcat5.0.28 Apache2.0.50 (build from source) Mod_jk2 (JK2 2.0.4 Source Release tar.gz, built from source) Redhat Linux 7.2 Apache2's error log ---------------------------- [Fri Sep 03 19:31:48 2004] [notice] Digest: generating secret for digest authentication ... [Fri Sep 03 19:31:48 2004] [notice] Digest: done [Fri Sep 03 19:31:49 2004] [notice] Apache/2.0.50 (Unix) DAV/2 mod_jk2/2.0.4 configured -- resuming normal operations [Fri Sep 03 19:32:21 2004] [error] channelUn.connect() connect failed 2 No such file or directory [Fri Sep 03 19:32:21 2004] [error] ajp13.connect() failed ajp13:/usr/local/tomcat/work/jk2.socket [Fri Sep 03 19:32:21 2004] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory [Fri Sep 03 19:32:21 2004] [error] ajp13.service() Error forwarding ajp13:/usr/local/tomcat/work/jk2.socket 1 1 [Fri Sep 03 19:32:21 2004] [error] lb.service() worker failed 120000 for ajp13:/usr/local/tomcat/work/jk2.socket [Fri Sep 03 19:32:21 2004] [error] lb_worker.service() all workers in error or disabled state [Fri Sep 03 19:32:21 2004] [error] mod_jk2.handler() Error connecting to tomcat 120000, status 503 [Fri Sep 03 19:32:25 2004] [error] channelUn.connect() connect failed 2 No such file or directory [Fri Sep 03 19:32:25 2004] [error] ajp13.connect() failed ajp13:/usr/local/tomcat/work/jk2.socket [Fri Sep 03 19:32:25 2004] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory [Fri Sep 03 19:32:25 2004] [error] ajp13.service() Error forwarding ajp13:/usr/local/tomcat/work/jk2.socket 1 1 [Fri Sep 03 19:32:25 2004] [error] lb.service() worker failed 120000 for ajp13:/usr/local/tomcat/work/jk2.socket [Fri Sep 03 19:32:25 2004] [error] lb_worker.service() all workers in error or disabled state [Fri Sep 03 19:32:25 2004] [error] mod_jk2.handler() Error connecting to tomcat 120000, status 503 Jk2.properties ---------------------- # jk2.properties # Configured for channel UNIX # Set the desired handler list handler.list=apr,request,channelUnix # UNIX Domain socket location channelUnix.file=/usr/local/tomcat/work/jk2.socket # Dynamic Library serverRoot=/etc/httpd apr.NativeSo=/etc/httpd/modules/jkjni.so
workers2.properties --------------------------- # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/usr/local/tomcat/logs/jk2.shm size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:/usr/local/tomcat/work/jk2.socket] tomcatId=localhost:8009 debug=0 # define the worker [ajp13:/usr/local/tomcat/work/jk2.socket] channel=channel.un:/usr/local/tomcat/work/jk2.socket #[channel.socket:localhost:8009] #info=Ajp13 forwarding over socket #tomcatId=localhost:8009 # Announce a "status" worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/jsp-examples/*] and in my httpd.conf, I have ----------------------------- LoadModule jk2_module modules/mod_jk2.so JkSet config.file /etc/httpd/conf/workers2.properties __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com