  | 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
|
|
|
  | | | 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 " /> 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 " 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 " 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 " 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 " 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)
|
|
 |