  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | workers.properties file - connecting Tomcat to Apache | workers.properties file - connecting Tomcat to Apache 2003-12-30 - By annimandary
Back I'm trying to connect Tomcat and Apache. Initially, I didn't have the workers.properties file and got the following error when I started Tomcat:
Can't find workers.properties at C:\jakarta-tomcat\conf\jk\workers.properties Please install it in the default location or set the config location Using <ApacheConfig workersConfig="FULL_PATH" /> Starting service Tomcat-Standalone Apache Tomcat/4.0.2 Starting service Tomcat-Apache Apache Tomcat/4.0.2
So, I created the workers.properties file and saved it as a CONF file. Is that how it should be saved? I placed it in the folder jk but I'm still getting the same error as before. Can anyone please advise?
Here is what's written in the server.xml file: <Server port="8005" shutdown="SHUTDOWN" debug="0"> <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig " modJk="C:\Program Files\Apache Group\Apache\modules\mod_jk.dll" workersConfig="C:\jakarta-tomcat\conf\jk\workers.properties" />
The workers.properties file is as follows: # Define some properties workers.apache_log=C:\Program Files\Apache Group\Apache\logs workers.tomcat_home=C:\jakarta-tomcat workers.java_home=C:\j2sdk1.4.2 ps=/
# Define 4 workers, 3 real workers using ajp12, ajp13, jni, the last one being a loadbalancing worker worker.list=worker1, worker2, worker3, worker4
# Set properties for worker1 (ajp12) worker.worker1.type=ajp12 worker.worker1.host=locahost worker.worker1.port=8007 worker.worker1.lbfactor=5
# Set properties for worker2 (ajp13) worker.worker2.type=ajp13 worker.worker2.host=locahost worker.worker2.port=8009 worker.worker2.lbfactor=50 worker.worker2.cachesize=10 worker.worker2.cache_timeout=600 worker.worker2.socket_keepalive=1 worker.worker2.socket_timeout=300
# Set properties for worker3 (jni) worker.worker3.type=jni
# Set worker3 bridge type, here Tomcat 3.3 worker.worker3.bridge=tomcat33
# Set worker3 classpath worker.worker3.class_path=$(workers.tomcat_home)$(ps)classes worker.worker3.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
# Set worker3 tomcat command line worker.worker3.cmd_line=-home worker.worker3.cmd_line=$(workers.tomcat_home)
# Set worker3 Tomcat/JVM settings worker.worker3.stdout=$(workers.apache_log)$(ps)inprocess.stdout worker.worker3.stderr=$(workers.apache_log)$(ps)inprocess.stderr worker.worker3.sysprops=tomcat.home=$(workers.tomcat_home)
# Set properties for worker4 (lb) which use worker1 and worker2 worker.worker4.balanced_workers=worker1,worker2 worker.worker3.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps )libjvm.so
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|
 |