Date: Mon, 20 Oct 2003 10:40:12 -0400 From: Brian Lloyd-Newberry <newbeb@yahoo.com> To: Josef Pospisil <pepe@pef.czu.cz> Cc: freebsd-java@freebsd.org Subject: Re: Tomcat remote debug Message-ID: <3F93F3CC.8090003@yahoo.com> In-Reply-To: <3F93B29D.6000905@pef.czu.cz> References: <3F93B29D.6000905@pef.czu.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
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 :-).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F93F3CC.8090003>