From owner-freebsd-java@FreeBSD.ORG Mon Oct 20 07:41:06 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76A3B16A4B3 for ; Mon, 20 Oct 2003 07:41:06 -0700 (PDT) Received: from smtp101.mail.sc5.yahoo.com (smtp101.mail.sc5.yahoo.com [216.136.174.139]) by mx1.FreeBSD.org (Postfix) with SMTP id D30CF43F93 for ; Mon, 20 Oct 2003 07:41:05 -0700 (PDT) (envelope-from newbeb@yahoo.com) Received: from alb-24-25-148-156.nycap.rr.com (HELO yahoo.com) (newbeb@24.25.148.156 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 20 Oct 2003 14:41:04 -0000 Message-ID: <3F93F3CC.8090003@yahoo.com> Date: Mon, 20 Oct 2003 10:40:12 -0400 From: Brian Lloyd-Newberry User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Josef Pospisil References: <3F93B29D.6000905@pef.czu.cz> In-Reply-To: <3F93B29D.6000905@pef.czu.cz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: Tomcat remote debug X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: newbeb@yahoo.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2003 14:41:06 -0000 Josepf, Included inline below are the environment variables defined in the catalina.sh startup script that comes with 4.1.24. I don't use the port so I don't know what tomcat41ctl calls, but I hope this will help. Please note the JDPA_ options. -Brian # Start/Stop Script for the CATALINA Server # # Environment Variable Prequisites # # CATALINA_HOME May point at your Catalina "build" directory. # # CATALINA_BASE (Optional) Base directory for resolving dynamic # portions of a Catalina installation. If not # present, resolves to the same directory that # CATALINA_HOME points to. # # CATALINA_OPTS (Optional) Java runtime options used when the # "start", "stop", or "run" command is executed. # # CATALINA_TMPDIR (Optional) Directory path location of # temporary directory the JVM should use # (java.io.tmpdir). Defaults to $CATALINA_BASE/temp. # # JAVA_HOME Must point at your Java Development Kit # installation. # # JAVA_OPTS (Optional) Java runtime options used when the # "start", "stop", or "run" command is executed. # # JPDA_TRANSPORT (Optional) JPDA transport used when the "jpda start" # command is executed. The default is "dt_socket". # # JPDA_ADDRESS (Optional) Java runtime options used when the # "jpda start" command is executed. The default is # 8000. # # JSSE_HOME (Optional) May point at your Java Secure Sockets # Extension (JSSE) installation, whose JAR files will # be added to the system class path used to start # Tomcat. # # CATALINA_PID (Optional) Path of the file which should contains # the pid of catalina startup java process, when start # (fork) is used # Josef Pospisil wrote: > Hi, > I wanna use Tomcat41 (or even Tomcat5) remote debugging with IntelliJ > Idea, but I didn't find any posibility to pass any parameter (-Xdebug > Xagent and so) to JavaVM through the tomcat41ctl command, which is > usually used to start and stop Tomcat on freebsd. > I've tried some other process to achieve this (setting JAVA_OPTS > enviroment var. which leads to strange errors, when stoping Tomcat. > Editing starting scripts in rc.d), but noone looks clean enough. > Can anybody help me, or just direct me to some beautiful and functional > solution :-).