Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
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 Source code of 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)




©2008 junlu.com - Jax Systems, LLC, U.S.A.