Could not init service for worker

2005-04-11 Thread Spencer
Hi,
Goal: To have apache forward connections for a name based virtual host to  
a Tomcat instance. No load balancing is fine for now.

Current state: Both Apache and Tomcat work separatly. When I request a  
page that uses the connector I get a Internal Server Error (from  
Apache). I also get the following error messages in the JkLogFile:

  ..
  [debug] wc_get_worker_for_name::jk_worker.c (94): did not find a worker  
ajp13w
  [error] jk_handler::mod_jk.c (1813): Could not init service for  
worker=ajp13w

I get the same message when Tomcat is running as well as when it is _not_  
running.

Can someone point me to why the service for my worker could not be  
initialized?

Thanks,
Spencer


My setup: Linux, Apache 1.3, Tomcat 5.0.28, jk-1.2.10 (also tried jk-1.2.8)
 server.xml - Begin 

Connector port=8009 enableLookups=false redirectPort=8443 debug=2  
protocol=AJP/1.3 /

 server.xml - End 

 httpd.conf - Begin 
...
LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so
...
NameVirtualHost 192.168.1.9
...
VirtualHost 192.168.1.9
ServerName www.foo.com
DocumentRoot /home/tomcat/jakarta-tomcat-5.0.28/webapps/ROOT
ServerAdmin [EMAIL PROTECTED]
# Log Set-Up
ErrorLog  /var/log/apache/www.foo.com-error_log
LogFormat %h %l %u %t \%r\ %s %b common
CustomLog /var/log/apache/www.foo.com-access.log common
JkLogFile /var/log/apache/mod_jk.log
JkLogLeveltrace
JkRequestLogFormat %w %U %r
JkMount /* ajp13w
#   JkWorkersFile /etc/httpd/conf/workers.properties
JkWorkerProperty worker.list=ajp13w
JkWorkerProperty worker.ajp13w.type=ajp13
JkWorkerProperty worker.ajp13w.host=192.168.1.9
JkWorkerProperty worker.ajp13w.port=8009
Location /WEB-INF
  Options None
  AllowOverride None
  order deny,allow
  deny from all
   /Location
   Directory /home/tomcat/jakarta-tomcat-5.0.28/webapps/ROOT
 Options None
 AllowOverride None
 order deny,allow
 allow from all
   /Directory
/VirtualHost
VirtualHost 192.168.1.9
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /var/www/
  ErrorLog /var/log/apache/default-error.log
  CustomLog /var/log/apache/default-access.log common
/VirtualHost
 httpd.conf - End 
 jk2.properties - Start 
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.
## COMMENTS WILL BE _LOST_
## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm
# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
 jk2.properties - End 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Could not init service for worker

2005-04-11 Thread Raghupathy,Gurumoorthy
Send me the httpd.conf worker.properties and server.xml 

Regards
Guru 

-Original Message-
From: Spencer [mailto:[EMAIL PROTECTED] 
Sent: 11 April 2005 12:02
To: tomcat-user@jakarta.apache.org
Subject: Could not init service for worker


Hi,

Goal: To have apache forward connections for a name based virtual host to  
a Tomcat instance. No load balancing is fine for now.

Current state: Both Apache and Tomcat work separatly. When I request a  
page that uses the connector I get a Internal Server Error (from  
Apache). I also get the following error messages in the JkLogFile:

   ..
   [debug] wc_get_worker_for_name::jk_worker.c (94): did not find a worker  
ajp13w
   [error] jk_handler::mod_jk.c (1813): Could not init service for  
worker=ajp13w

I get the same message when Tomcat is running as well as when it is _not_  
running.


Can someone point me to why the service for my worker could not be  
initialized?

Thanks,

Spencer





My setup: Linux, Apache 1.3, Tomcat 5.0.28, jk-1.2.10 (also tried jk-1.2.8)

 server.xml - Begin 

Connector port=8009 enableLookups=false redirectPort=8443 debug=2  
protocol=AJP/1.3 /

 server.xml - End 

 httpd.conf - Begin 
...
LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so
...
NameVirtualHost 192.168.1.9
...
VirtualHost 192.168.1.9
 ServerName www.foo.com
 DocumentRoot /home/tomcat/jakarta-tomcat-5.0.28/webapps/ROOT

 ServerAdmin [EMAIL PROTECTED]

 # Log Set-Up
 ErrorLog  /var/log/apache/www.foo.com-error_log
 LogFormat %h %l %u %t \%r\ %s %b common
 CustomLog /var/log/apache/www.foo.com-access.log common


 JkLogFile /var/log/apache/mod_jk.log
 JkLogLeveltrace
 JkRequestLogFormat %w %U %r

 JkMount /* ajp13w
#   JkWorkersFile /etc/httpd/conf/workers.properties
 JkWorkerProperty worker.list=ajp13w
 JkWorkerProperty worker.ajp13w.type=ajp13
 JkWorkerProperty worker.ajp13w.host=192.168.1.9
 JkWorkerProperty worker.ajp13w.port=8009

 Location /WEB-INF
   Options None
   AllowOverride None
   order deny,allow
   deny from all
/Location

Directory /home/tomcat/jakarta-tomcat-5.0.28/webapps/ROOT
  Options None
  AllowOverride None
  order deny,allow
  allow from all
/Directory
/VirtualHost


VirtualHost 192.168.1.9
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /var/www/
   ErrorLog /var/log/apache/default-error.log
   CustomLog /var/log/apache/default-access.log common
/VirtualHost
 httpd.conf - End 

 jk2.properties - Start 
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
 jk2.properties - End 


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

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