Return-Path: Delivered-To: apmail-openejb-commits-archive@www.apache.org Received: (qmail 72880 invoked from network); 19 Nov 2008 12:06:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Nov 2008 12:06:14 -0000 Received: (qmail 25888 invoked by uid 500); 19 Nov 2008 12:06:22 -0000 Delivered-To: apmail-openejb-commits-archive@openejb.apache.org Received: (qmail 25876 invoked by uid 500); 19 Nov 2008 12:06:22 -0000 Mailing-List: contact commits-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openejb.apache.org Delivered-To: mailing list commits@openejb.apache.org Received: (qmail 25867 invoked by uid 99); 19 Nov 2008 12:06:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Nov 2008 04:06:22 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Nov 2008 12:04:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4DB5B234C297 for ; Wed, 19 Nov 2008 04:05:44 -0800 (PST) Message-ID: <969809823.1227096344317.JavaMail.jira@brutus> Date: Wed, 19 Nov 2008 04:05:44 -0800 (PST) From: "Jonathan Gallimore (JIRA)" To: commits@openejb.apache.org Subject: [jira] Assigned: (OPENEJB-956) Installation of Java Agent fails when used with Tomcat and CATALINA_HOME != CATALINA_BASE In-Reply-To: <566977933.1226692184423.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENEJB-956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Gallimore reassigned OPENEJB-956: ------------------------------------------ Assignee: Jonathan Gallimore > Installation of Java Agent fails when used with Tomcat and CATALINA_HOME != CATALINA_BASE > ----------------------------------------------------------------------------------------- > > Key: OPENEJB-956 > URL: https://issues.apache.org/jira/browse/OPENEJB-956 > Project: OpenEJB > Issue Type: Bug > Components: tomcat > Affects Versions: 3.1 > Environment: All > Reporter: Rainer Jung > Assignee: Jonathan Gallimore > Priority: Minor > Attachments: openejb.patch > > > The war installer for using openejb in Tomcat installs the java agent into CATALINA_HOME/lib. > Then it patches catalina.sh and catalina.bat to add a -javaagent parameter during startup. That code erroneously assumes the agent was installed into CATALINA_BASE (instead of CATALINA_HOME). If both are the same that's fine, if not, it breaks. > I attach the simple patch. > Note: Installing into CATALINA_BASE might actually be nicer, but CATALINA_BASE/lib is not on the default search path of the Tomcat loaders, so one would also have to patch common.loader in CATALINA_BASE/conf/catalina.properties. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.