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
 
Help to configure jk2 on Win2003!

Help to configure jk2 on Win2003!

2004-02-14       - By Sergio

 Back
Hello all! I'm confused. Once I did my own configuration
Apache2+Tomcat via jk2. Then I back to my old config with jk1.2.
It works fine now by the way. I want to configure jk2 again and i
cant. I forgot something. I've read the documentation, I have tryed a
big amount of configurations and I cant configure it. I am NOT a
professional so I need your help now. I am running
Win 2003+Apache2.0.48+Tomcat5.0.18. Can you can help me to configure
it? Because this thing is killnig me! I know I am wrong but I am
really tired and confused to find where.
Here is my configuration for two hosts - tell me what I must
change/add/delete to make it work please:

1) server.xml:
 <Connector port="8009" minProcessors="5" maxProcessors="75" acceptCount="10"
debug="0" connectionTimeout="20000" useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler Source code of org.apache.jk.server.JkCoyoteHandler" />
 enableLookups="false" redirectPort="8443" debug="0" protocol="AJP/1.3" />
 <Logger className="org.apache.catalina.logger.FileLogger" directory="logs"
prefix="catalina_log." suffix=".txt" timestamp="true" />
 <Valve className="org.apache.catalina.valves.AccessLogValve Source code of org.apache.catalina.valves.AccessLogValve" directory="D:
/apache_home/Tomcat5.0.18/logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false" />
 <Host name="host.com" debug="0" appBase="D:/apache_home/Apache2/htdocs"
unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware=
"false">
 <Alias>localhost</Alias>
 <Alias>127.0.0.1</Alias>
 <Context path="" docBase="" debug="1" />
 <Valve className="org.apache.catalina.valves.AccessLogValve Source code of org.apache.catalina.valves.AccessLogValve" directory="D:
/apache_home/Tomcat5.0.18/logs" prefix="host_access_log." suffix=".txt" pattern=
"common" resolveHosts="false" />
 </Host>
 <Host name="site.com" debug="0" appBase="D:/apache_home/Apache2/htdocs
/clients/site.com/public_html" unpackWARs="true" autoDeploy="true" xmlValidation
="false" xmlNamespaceAware="false">
 <Context path="" docBase="" debug="1" />
 <Valve className="org.apache.catalina.valves.AccessLogValve Source code of org.apache.catalina.valves.AccessLogValve" directory="D:
/apache_home/Tomcat5.0.18/logs" prefix="site_access_log." suffix=".txt" pattern=
"common" resolveHosts="false" />
 </Host>
 <Realm className="org.apache.catalina.realm.UserDatabaseRealm Source code of org.apache.catalina.realm.UserDatabaseRealm" debug="0"
resourceName="UserDatabase" />

2) jk2.properties:
  handler.list=apr,request,channelJni,channelSocket
  channelSocket.port=8009
  # I dont know if I need jni because i dont use it
  apr.jniModeSo=D:/webexec/apache_home/Apache2/modules/mod_jk2.dll
  apr.jniModeSo=inprocess

3) workers2.properties:
  [logger.apache2]
  level=DEBUG
  [shm:]
  info=Scoreboard.
  file=D:/apache_home/apache2/logs/jk2.shm
  size=1048576
  debug=0
  disabled=0
  [lb:lb]
  info=Default load balancer.
  debug=0
  [ajp13:localhost:8009]
  channel=channel.socket:localhost:8009
  [channel.socket:host.com:8009]
  info=Ajp13 forwarding over socket
  debug=0
  tomcatId=tc1
  lb_factor=1
  group=lb
  [channel.socket:site.com:8009]
  info=A second tomcat instance.
  debug=0
  tomcatId=tc1
  lb_factor=1
  group=lb
  disabled=0
  [uri:host.com/*.jsp]
  worker=ajp13:host.com:8009
  [uri:site.com/*.jsp]
  worker=ajp13:site.com:8009

3) httpd.conf:
  LoadModule jk2_module "D:/apache_home/apache2/modules/mod_jk2.dll"
  #For every Virtual Host:
  <Location "/*.jsp">
      JkUriSet worker ajp13:host.com:8009
  </Location>

Thank God that this list exists and thank you, thank you very-very
much for any help!


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
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.