PJ,
>>When they are running does /global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket exist?
I does NOT apear that /global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket does exist.
>>Why not just use a TCP socket as it allows for easier separation later (i.e. just change IP address).
At this point, it really does not matter to me. I just want to figure out how to make it work. I would just presume that a UnixSocket would be faster.
Additionally, I wish I could understand the configuration and property files.
Thanks, Troy
Peter Johnson wrote:
Troy,
When they are running does /global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket exist?
Why not just use a TCP socket as it allows for easier separation later (i.e. just change IP address).
PJ
Troy Simpson wrote:
This appears to be a common problem in the mail archives. I have having this same problem and I have not found my answer yet.
I have installed the following: 1. Apache 2.0.52 2. TomCat 5.5.4 3. jk2 Connector.
Apache and Tomcat runs very well independently, but I can not get them to work together.
Here is what my workers.properties file looks like:
-----------------------------------------------------
# workers2.properties
# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=/global/lunadg/d01/app/apache2/2.0.52/logs/shm.file
size=1048576
debug=0
disabled=0
# UNIX domain socket [channel.un:unixsocket] file=/global/lunadg/d01/tomcat/5.5.4/work/jk2.socket debug=0
# define the worker [ajp13:unixsocket] channel=channel.un:unixsocket
# Announce a "status" worker [status:status] info=Status worker. Displays runtime information.
[uri:/jkstatus/*] group=status:status
# Uri mapping [uri:/jsp-examples/*] worker=ajp13:unixsocket
# Uri mapping for MyFirst [uri:/MyFirst/*] ----------------------------------------------------
Here is what my jk2.properties file looks like: --------------------------------------------------- handler.list=apr,request,channelUnix channelSocket.port=8009 channelUnix.file=/global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket serverRoot=/global/lunadg/d01/app/apache2/2.0.52 apr.NativeSo=/global/lunadg/d01/app/apache2/2.0.52/modules/jkjni.so ---------------------------------------------------
This is what I get in my Apache error_log file:
-------------------------------------------------
[Tue Nov 16 16:08:11 2004] [notice] Digest: generating secret for digest authentication ...
[Tue Nov 16 16:08:11 2004] [notice] Digest: done
[Tue Nov 16 16:08:12 2004] [error] mod_jk child init 1 0
[Tue Nov 16 16:08:12 2004] [notice] Apache/2.0.52 (Unix) mod_jk2/2.0.2 configured -- resuming normal operations
[Tue Nov 16 16:08:34 2004] [error] channelUn.connect() connect failed 2 No such file or directory
[Tue Nov 16 16:08:34 2004] [error] ajp13.connect() failed ajp13:unixsocket
[Tue Nov 16 16:08:34 2004] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory
[Tue Nov 16 16:08:34 2004] [error] ajp13.service() Error forwarding ajp13:unixsocket 1 1
[Tue Nov 16 16:08:34 2004] [error] mod_jk.handler() Error connecting to tomcat 120000
[Tue Nov 16 16:08:37 2004] [error] channelUn.connect() connect failed 2 No such file or directory
[Tue Nov 16 16:08:37 2004] [error] ajp13.connect() failed ajp13:unixsocket
[Tue Nov 16 16:08:37 2004] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory
[Tue Nov 16 16:08:37 2004] [error] ajp13.service() Error forwarding ajp13:unixsocket 1 1
[Tue Nov 16 16:08:37 2004] [error] mod_jk.handler() Error connecting to tomcat 120000
-------------------------------------------------
And this is what I get my Tomcat catalina.out log:
---------------------------------------------------
Nov 16, 2004 4:06:18 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8666
Nov 16, 2004 4:06:18 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2932 ms
Nov 16, 2004 4:06:19 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 16, 2004 4:06:19 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
Nov 16, 2004 4:06:19 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Nov 16, 2004 4:06:23 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
Nov 16, 2004 4:06:24 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 16, 2004 4:06:24 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 16, 2004 4:06:24 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 16, 2004 4:06:24 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 16, 2004 4:06:25 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8666
Nov 16, 2004 4:06:26 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Nov 16, 2004 4:06:26 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/82 config=null
Nov 16, 2004 4:06:26 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 8519 ms
Nov 16, 2004 4:07:08 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: sessionCreated('D175D194CB567259065D17565BB37426')
---------------------------------------------------
I can not figure out what I am missing. Any suggestions?
Thanks, Troy
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]