Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 13022 invoked from network); 3 Jan 2007 07:40:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jan 2007 07:40:55 -0000 Received: (qmail 32015 invoked by uid 500); 3 Jan 2007 07:40:48 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 31984 invoked by uid 500); 3 Jan 2007 07:40:48 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 31973 invoked by uid 99); 3 Jan 2007 07:40:47 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2007 23:40:47 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [64.34.173.90] (HELO vhs1.asianetindia.com) (64.34.173.90) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2007 23:40:35 -0800 Received: (qmail 25909 invoked from network); 3 Jan 2007 07:43:48 -0000 Received: by simscan 1.2.0 ppid: 25867, pid: 25886, t: 5.8880s scanners: clamav: 0.88.7/m:41/d:2367 spam: 3.1.4 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-26) on vhs2.linuxense.com X-Spam-Level: Received: from static-61.17.42.35.ip-dsl-tvm.eth.net (HELO xmlaptop05) (jagadeesh@x-minds.org@[61.17.42.35]) (envelope-sender ) by vhs1.asianetindia.com (qmail-ldap-1.03) with SMTP for ; 3 Jan 2007 07:43:42 -0000 From: "Jagadeesh" To: "'Tomcat Users List'" Subject: RE: MOD_JK Redirection issues Date: Wed, 3 Jan 2007 13:11:18 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AccvCEi9lOsGBTGTTSO1vtyo59nRxgAAFF7A X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 In-Reply-To: <459B594F.405@kippdata.de> X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=0.2 required=7.0 tests=AWL autolearn=disabled version=3.1.4 Message-Id: <20070103074040.79EF010FB038@herse.apache.org> Thanks for the reply Rainer. I am using tomcat-connectors-1.2.19 and jBoss 4.0.5GA in Fedora Core 5. Since the binary I downloaded was throwing errors, I build the shared library mod_jk.so from the source and copied it to the /usr/lib/httpd/modules/ directory. Please find below the configuration file (mod-jk.conf) I am using #========================================================================= #Loads the module LoadModule jk_module modules/mod_jk.so # The workers file JkWorkersFile conf/worker.properties # Set the jk log level [debug/error/info] JkLogLevel debug # Select the log format JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" # JkOptions indicates to send SSK KEY SIZE JkOptions +ForwardKeySize +ForwardURIEscaped -ForwardDirectories # JkRequestLogFormat JkRequestLogFormat "%w %V %T" # Mount your applications JkMount /* loadbalancer # You can use external file for mount points. # It will be checked for updates each 60 seconds. # The format of the file is: /url=worker # /examples/*=loadbalancer # JkMountFile conf/uriworkermap.properties # Add shared memory. # This directive is present with 1.2.10 and # later versions of mod_jk, and is needed for # for load balancing to work properly JkShmFile logs/jk.shm # Add jkstatus for managing runtime data JkMount status Order deny,allow Deny from all Allow from 192.168.0.2 #========================================================================= Please find below worker.properties. #========================================================================= # Define list of workers that will be used # for mapping requests worker.list=loadbalancer,status # Define Node1 # modify the host as your host IP or DNS name. worker.node1.port=8009 worker.node1.host=xxx.xxx.xxx.xxx worker.node1.type=ajp13 worker.node1.lbfactor=1 worker.node1.cachesize=10 # Define Node2 # modify the host as your host IP or DNS name. worker.node2.port=8009 worker.node2.host= xxx.xxx.xxx.xxx worker.node2.type=ajp13 worker.node2.lbfactor=1 worker.node2.cachesize=10 # Load-balancing behaviour worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=node1,node2 worker.loadbalancer.sticky_session=1 worker.list=loadbalancer # Status worker for managing load balancer worker.status.type=status #===================================================================== I am not using uriworkermap.properties. Thanks Jagadeesh -----Original Message----- From: Rainer Jung [mailto:rainer.jung@kippdata.de] Sent: Wednesday, January 03, 2007 12:51 PM To: Tomcat Users List Subject: Re: MOD_JK Redirection issues Please give detailed information on the version and type of web server and mod_jk you are using and include mod_jk config and the relevant parts of the web server config. You can increase the log level of mod_jk to debug or even trace to follow, how mod_jk tries to match your requests against the configured URL maps. Regards, Rainer Jagadeesh wrote: > Hi All, > > > > Happy New Year!!! > > > > I am having a few problems when using MOD JK with jBoss application server. > > > > I am hosting an application in jBoss which uses REST protocol to serve the > contents. So the GET requests that reach MOD JK can be an encoded string > like http://loadbalancer.xxx.com/authenticate/user%2fjagadeesh?key=123456789 > > > > > Here the actual request is > > > > http://loadbalancer.xxx.com/authenticate/user/jagadeesh?key=123456789 where > %2f is the encoded string for '/'. Whenever MOD JK gets a request like this, > it seems to be ignoring it rather than passing it to the application server > and I am getting HTTP 404. > > > > I tried accessing the server directly with the request > > > > http://node1.xxx.com/authenticate/user%2fjagadeesh?key=123456789 and it's > working fine. > > > > Any help to resolve this is greatly appreciated. > > > > Thanks > > Jagadeesh --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org