Home > Default > Help with Apache plugin for Tomcat

Help with Apache plugin for Tomcat

December 10Hits:5
Advertisement
I downloaded jakarta-tomcat-connectors-jk2-src-current.tar.gz from apache.org. I am trying to install this without any progress. The web page http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html gives lots of info on how to install the plug in called JK. I believe the unix section applies to linux as well. Can anyone help me with this? Please copy your message if at all possible to [email protected] Thanks Murthy

Answers

I know what mod_jk is, I was just trying to understand your situation.
You have two choices, mod_jk and mod_jk2 with different configurations files.
In both cases, you need 3 parts:
1- apache
2- the mod_jk(2) module (.so) for your apache version (1.3.x or 2.x)
3- tomcat
You obviously have 1 and 3, and probably 2 also.
Config is twofold:
1) In httpd.conf (Apache 2.0) you need:LoadModule jk2_module modules/mod_jk2.so
<IfModule mod_jk2.c>
  JkSet config:file "/path/to/workers2.properties"
</IfModule>
# And for each context:
   <Location "/contextname/*">
      JkUriSet worker ajp13:localhost:8001
   </Location>2) workers2.properties:[logger]
level=WARN
#INFO
#/web_ci/
[config:]
file=/path/to/workers2.properties
debug=0
debugEnv=0
[uriMap:]
info=Maps the requests. Options: debug
debug=0
# Alternate file logger
[logger.file:0]
level=WARN
file=/path/to/logs/jk2.log
# Cache for activity
# Must point to a writeable path
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=/path/to/jk2.shm
size=1000000
debug=0
disabled=0
[workerEnv:]
info=Global server options
timing=1
debug=99
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
logger=logger.file:0
# Communication channel to use
[channel.socket:localhost:8001]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8001
# Connector as in conf/server.xml
[ajp13:localhost:8001]
channel=channel.socket:localhost:8001
# Tomcat load balancing
[lb:lb]
info=Default load balancer.
debug=0
[status:status]
info=Status worker, displays runtime informations
# Monitor for requests and config http://server:port/jkstatus
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:status3) Finally, you need to set the connector (port number) in server.xml    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8001 -->
    <Connector className="org.apache.coyote.tomcat5.CoyoteConnector"
               port="8001" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="10" debug="3" connectionTimeout="2000"
               useURIValidationHack="false"
               protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>This is the setup I use on Win2K, but should work pretty much the same on Linux. I also have a similar setup on Linux, but with mod_jk instead of mod_jk2.
Hope this helps!

Read other 15 answers

Tags:

Related Articles

  • Help with Apache plugin for TomcatDecember 10

    I downloaded jakarta-tomcat-connectors-jk2-src-current.tar.gz from apache.org. I am trying to install this without any progress. The web page http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html gives lots of info on how to install the plug

  • Weblogic Http Apache Plugin not workingOctober 11

    Hi, I have installed weblogic server 10.3 on WindowsXP Professional and Http Apache 2.2 is running on port 80. I followed the following document to configure the Apache plugin: http://e-docs.bea.com/wls/docs103/plugins/apache.html but when I go and t

  • Apache Plugin is not working with Cluster Entry in httpd.confOctober 11

    Hi Guys, We have a very particular issue that is happening here in our production environments. Before explaining the issue to you, I will just give a brief of our architecture. We are using Weblogic Portal Platform SP4. Our current Production Domain

  • Setup issues: Apache plugin for WeblogicOctober 11

    Hi, I've spent couple of days without success trying to configure apache plugin for weblogic. I've configured in accordance with bea documentation and it works fine in windows environment but fails in Solaris 9. Plugin log file says it's processed th

  • WL 7 apache pluginOctober 11

    I'm running Weblogic 7 sp2 server on a RedHat Linux 7.3 as the backend server and a Redhat 7.3 server with Apache 1.327 as the frontend. At first I had only one site to configure with the Bea Apache plugin. But there will be at least 3 sites more. I

  • JMX with apache plugin and weblogicOctober 11

    Hy every body I use weblogic 9.1, throw apache plugin I try to get mbean with JMX, i have this error on the log of the server when I try to acces to a server by passing apache url into jmxConnector: java.lang.AssertionError: Assertion violated      a

  • Weblogic Apache Plugin - Load BalancingDecember 8

    Hi, I have two Apache servers each with the WLS Apache Plugin installed. These sit in front of two WL servers each having two managed servers. Each plugin is setup with the list of servers as follows: <IfModule mod_weblogic.c>           WebLogicClus

  • Apache Plugin in linux for WLS6.0 sp1 and (?sp2?)November 30

    This message is a little long, The following message is arranged in 4 parts where: 1. Conclusion and Sugestions. 2. Tests Environment 3. Simple plugin environment 4. Virtual Hosting with apache Any comment and help will be welcome Conclusion The plug

  • WL Apache plugin Bug: ServletRequest.getServerPort returns wrong port number.November 30

    When using apache plugin with weblogic51 on solaris           ServletRequest.getServerPort returns 7001 when it should return 80.           request URL: http://servername/weblogic/SnoopServlet.jsp           Request information           Request Metho

  • WL Apache plugin Bug: HttpServletResponce unable to send more the 1 cookie.November 30

    When using apache plugin with weblogic51 on solaris we run into problem when           trying to send several cookies; only first cookie makes it through Apache           plugin to the browser.           public void doGet(HttpServletRequest req, Http

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.696 s.