I'm a Tomcat newbie--I'm trying to set this up for one of my users. I
Googled and searched the list archives, but haven't found the answer.

I'm running jakarta-tomcat-4.1.12, apache_1.3.26, and
jakarta-tomcat-connectors-4.1.12 (installed from source) under Solaris
2.6.

I followed the directions in
http://www.pubbitch.org/jboss/mod_jk2.html for installing Apache and
mod_jk2.

If I go to http://devel.ornl.gov/, I get the standard Apache initial
page. (You won't be able to reach devel.)

If I go to http://devel.ornl.gov/status/, I get a page of tables
starting with:

  Status information for child 5
  ajp13 runtime info
  
  ajp13 information, using getAttribute()
  id name lb_factor lb_value route errorState graceful epCount errorTime
  0 localhost:8009 1 1 null N N 0 0
  1 /usr/local/tomcat/work/jk2.socket 1 1 localhost:8009 Y N 1 0

Which looks OK to me, but I don't understand.

If I go to http://devel.ornl.gov/examples/, I get an error:

  Internal Server Error

  The server encountered an internal error or misconfiguration and was
  unable to complete your request.

Apache's error_log shows:

  [Thu Dec 05 14:07:33 2002] [error] channelUn.connect() connect failed 2 No such file 
or directory
  [Thu Dec 05 14:07:33 2002] [error] ajp13.connect() failed 
ajp13:/usr/local/tomcat/work/jk2.socket
  [Thu Dec 05 14:07:33 2002] [error] ajp13.service() failed to connect endpoint 
errno=2 No such file or directory
  [Thu Dec 05 14:07:33 2002] [error] ajp13.service() Error  forwarding 
ajp13:/usr/local/tomcat/work/jk2.socket
  [Thu Dec 05 14:07:33 2002] [error] mod_jk.handler() Error connecting to tomcat 120000

Sure enough, there's no /usr/local/tomcat/work/jk2.socket.

My /usr/local/apache2/conf/workers.properties contains:

  #---- workers2.properties
  
  # Shared memory handling. Needs to be set.
  [shm]
  file=/usr/local/apache2/logs/shm.file
  size=1048576
  
  # Example socket channel, explicitly set port and host.
  [channel.socket:localhost:8009]
  port=8009
  host=127.0.0.1
  
  # Example UNIX domain socket
  [channel.un:/usr/local/tomcat/work/jk2.socket]
  tomcatId=localhost:8009
  debug=0
  
  # define the worker
  [ajp13:localhost:8009]
  channel=channel.un:/usr/local/tomcat/work/jk2.socket
  
  # To use the TCP/IP socket instead, just comment out the above
  # line, and uncomment the one below
  #channel=channel.socket:localhost:8009
  
  # Announce a "status" worker
  [status:status]
  
  # Uri mapping
  [uri:/examples/*]
  #worker=ajp13:localhost:8009
  worker=ajp13:/usr/local/tomcat/work/jk2.socket
  
  [uri:/status/*]
  worker=status:status
  
  #---- end of workers2.properties

And /usr/local/tomcat/conf/jk2.properties contains:

  #---- jk2.properties
  
  # list of needed handlers.
  handler.list=apr,channelSocket,channelUnix,request
  
  # Set the default port for the channelSocket
  channelSocket.port=8009
  
  # State where the UNIX domain socket is located
  channelUnix.file=/usr/local/tomcat/work/jk2.socket
  
  # Dynamic library
  serverRoot=/usr/local/apache2
  apr.NativeSo=/usr/local/tomcat/common/lib/libjkjni.so
  
  #---- end of jk2.properties

Other config files and logs are available upon request.

Any ideas why this isn't working?

-Dave

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to