You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by "Henning P. Schmiedehausen" <ma...@hometree.net> on 2001/08/24 13:12:17 UTC

[PATCH] TDK running with JPDA

Hi, 

with this patch, you can start the catalina in the TDK 2.1
with 

./bin/catalina.sh jpda start

and find a JPDA attachable port on 8000 for debugging the application
(I use netbeans 3.2.1 and the emacs jde for this).

Very useful IMHO.

	Regards
		Henning

diff -u tdk-2.1/bin/catalina.sh.orig tdk-2.1/bin/catalina.sh
--- tdk-2.1/bin/catalina.sh.orig        Fri Aug 24 11:09:25 2001
+++ tdk-2.1/bin/catalina.sh     Fri Aug 24 11:20:28 2001
@@ -70,8 +70,13 @@
 
 # ----- Execute The Requested Command -----------------------------------------
 
-if [ "$1" = "debug" ] ; then
 
+if [ "$1" = "jpda" ] ; then
+  CATALINA_OPTS="${CATALINA_OPTS} -classic -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
+  shift
+fi
+
+if [ "$1" = "debug" ] ; then
   shift
   pushd $CATALINA_HOME
   if [ "$1" = "-security" ] ; then

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     hps@intermeta.de

Am Schwabachgrund 22  Fon.: 09131 / 50654-0   info@intermeta.de
D-91054 Buckenhof     Fax.: 09131 / 50654-20   

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


Re: [PATCH] TDK running with JPDA

Posted by Kasper Nielsen <ne...@kav.dk>.
Perhaps this should be included directly in Catalina instead.
Im not to keen on having patched Cataline files in the Turbine cvs

- Kasper
----- Original Message -----
From: "Henning P. Schmiedehausen" <ma...@hometree.net>
Newsgroups: hometree.jakarta.turbine.dev
To: <tu...@jakarta.apache.org>
Sent: Friday, August 24, 2001 1:12 PM
Subject: [PATCH] TDK running with JPDA


> Hi,
>
> with this patch, you can start the catalina in the TDK 2.1
> with
>
> ./bin/catalina.sh jpda start
>
> and find a JPDA attachable port on 8000 for debugging the application
> (I use netbeans 3.2.1 and the emacs jde for this).
>
> Very useful IMHO.
>
> Regards
> Henning
>
> diff -u tdk-2.1/bin/catalina.sh.orig tdk-2.1/bin/catalina.sh
> --- tdk-2.1/bin/catalina.sh.orig        Fri Aug 24 11:09:25 2001
> +++ tdk-2.1/bin/catalina.sh     Fri Aug 24 11:20:28 2001
> @@ -70,8 +70,13 @@
>
>  # ----- Execute The Requested
Command -----------------------------------------
>
> -if [ "$1" = "debug" ] ; then
>
> +if [ "$1" = "jpda" ] ; then
> +

CATALINA_OPTS="${CATALINA_OPTS} -classic -Xdebug -Xnoagent -Xrunjdwp:transpo
rt=dt_socket,address=8000,server=y,suspend=n"
> +  shift
> +fi
> +
> +if [ "$1" = "debug" ] ; then
>    shift
>    pushd $CATALINA_HOME
>    if [ "$1" = "-security" ] ; then
>
> --
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
> INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     hps@intermeta.de
>
> Am Schwabachgrund 22  Fon.: 09131 / 50654-0   info@intermeta.de
> D-91054 Buckenhof     Fax.: 09131 / 50654-20
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


Re: [PATCH] TDK running with JPDA

Posted by Jon Stevens <jo...@latchkey.com>.
on 8/24/01 4:12 AM, "Henning P. Schmiedehausen" <ma...@hometree.net>
wrote:

> Hi, 
> 
> with this patch, you can start the catalina in the TDK 2.1
> with 
> 
> ./bin/catalina.sh jpda start
> 
> and find a JPDA attachable port on 8000 for debugging the application
> (I use netbeans 3.2.1 and the emacs jde for this).
> 
> Very useful IMHO.
> 
> Regards
> Henning

Next time, please patch the right source file. :-)

-jon

------ Forwarded Message
From: craigmcc@apache.org
Reply-To: tomcat-dev@jakarta.apache.org
Date: 24 Aug 2001 19:08:15 -0000
To: jakarta-tomcat-4.0-cvs@apache.org
Subject: cvs commit: jakarta-tomcat-4.0/catalina/src/bin catalina.sh

craigmcc    01/08/24 12:08:15

  Modified:    catalina/src/bin catalina.sh
  Log:
  Make it possible to start Catalina under a JPDA debugging environment.  If
  you execute
  
    $CATALINA_HOME/bin/catalina.sh jpda start
  
  the options in the JPDA_OPTS environment variable are added to those
  specified by CATALINA_OPTS to enable debugging.  A convenient default
  value for JPDA_OPTS is made available if you do not specify it.
  
  Submitted by:  Henning P. Schmiedehausen <ma...@hometree.net>,
   Jon Stevens <jo...@latchkey.com>
  
  Revision  Changes    Path
  1.16      +15 -1     jakarta-tomcat-4.0/catalina/src/bin/catalina.sh
  
  Index: catalina.sh
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/bin/catalina.sh,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- catalina.sh    2001/07/01 22:58:04    1.15
  +++ catalina.sh    2001/08/24 19:08:15    1.16
  @@ -12,7 +12,11 @@
   #
   #   JAVA_HOME     Must point at your Java Development Kit installation.
   #
  -# $Id: catalina.sh,v 1.15 2001/07/01 22:58:04 jon Exp $
  +#   JPDA_OPTS     (Optional) Java runtime options used when the "jpda
start"
  +#                 command is executed.  Defaults to
  +#                 "-classic -Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
  +#
  +# $Id: catalina.sh,v 1.16 2001/08/24 19:08:15 craigmcc Exp $
   # 
----------------------------------------------------------------------------
-
   
   
  @@ -45,6 +49,10 @@
     CATALINA_OPTS=""
   fi
   
  +if [ -z "$JPDA_OPTS" ] ; then
  +  JPDA_OPTS="-classic -Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
  +fi
  +
   if [ -z "$JAVA_HOME" ] ; then
     echo You must set JAVA_HOME to point at your Java Development Kit
installation
     exit 1
  @@ -70,6 +78,11 @@
   
   # ----- Execute The Requested Command
-----------------------------------------
   
  +if [ "$1" = "jpda" ] ; then
  +  CATALINA_OPTS="${CATALINA_OPTS} ${JPDA_OPTS}"
  +  shift
  +fi
  +
   if [ "$1" = "debug" ] ; then
   
     shift
  @@ -160,6 +173,7 @@
     echo "  debug             Start Catalina in a debugger"
     echo "  debug -security   Debug Catalina with a security manager"
     echo "  env               Set up environment variables that would be
used"
  +  echo "  jpda start        Start Catalina under JPDA debugger"
     echo "  run               Start Catalina in the current window"
     echo "  run -security     Start in the current window with security
manager"
     echo "  start             Start Catalina in a separate window"
  
  
  

------ End of Forwarded Message


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


Re: [PATCH] TDK running with JPDA

Posted by Jon Stevens <jo...@latchkey.com>.
on 8/24/01 12:08 PM, "Craig R. McClanahan" <cr...@apache.org> wrote:

> Sounds good.
> 
> I generalized it slightly so that you can set different debug options with
> JPDA_OPTS but it defaults to the value included in this patch.
> 
> Craig

Thanks Craig. I knew you probably had a better patch...

-jon


Re: FW: [PATCH] TDK running with JPDA

Posted by "Craig R. McClanahan" <cr...@apache.org>.
Sounds good.

I generalized it slightly so that you can set different debug options with
JPDA_OPTS but it defaults to the value included in this patch.

Craig


On Fri, 24 Aug 2001, Jon Stevens wrote:

> Date: Fri, 24 Aug 2001 11:31:06 -0700
> From: Jon Stevens <jo...@latchkey.com>
> Reply-To: tomcat-dev@jakarta.apache.org
> To: tomcat-dev <to...@jakarta.apache.org>
> Subject: FW: [PATCH] TDK running with JPDA
>
> This is more a catalina specific patch...Craig, mind applying it?
>
> thanks,
>
> -jon
>
> ------ Forwarded Message
> From: "Henning P. Schmiedehausen" <ma...@hometree.net>
> Organization: INTERMETA - Gesellschaft fuer Mehrwertdienste mbH
> Reply-To: turbine-dev@jakarta.apache.org
> Newsgroups: hometree.jakarta.turbine.dev
> Date: Fri, 24 Aug 2001 11:12:17 +0000 (UTC)
> To: turbine-dev@jakarta.apache.org
> Subject: [PATCH] TDK running with JPDA
>
> Hi,
>
> with this patch, you can start the catalina in the TDK 2.1
> with
>
> ./bin/catalina.sh jpda start
>
> and find a JPDA attachable port on 8000 for debugging the application
> (I use netbeans 3.2.1 and the emacs jde for this).
>
> Very useful IMHO.
>
>     Regards
>         Henning
>
> diff -u tdk-2.1/bin/catalina.sh.orig tdk-2.1/bin/catalina.sh
> --- tdk-2.1/bin/catalina.sh.orig        Fri Aug 24 11:09:25 2001
> +++ tdk-2.1/bin/catalina.sh     Fri Aug 24 11:20:28 2001
> @@ -70,8 +70,13 @@
>
>  # ----- Execute The Requested Command
> -----------------------------------------
>
> -if [ "$1" = "debug" ] ; then
>
> +if [ "$1" = "jpda" ] ; then
> +  CATALINA_OPTS="${CATALINA_OPTS} -classic -Xdebug -Xnoagent
> -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
> +  shift
> +fi
> +
> +if [ "$1" = "debug" ] ; then
>    shift
>    pushd $CATALINA_HOME
>    if [ "$1" = "-security" ] ; then
>
> --
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
> INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     hps@intermeta.de
>
> Am Schwabachgrund 22  Fon.: 09131 / 50654-0   info@intermeta.de
> D-91054 Buckenhof     Fax.: 09131 / 50654-20
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
>
> ------ End of Forwarded Message
>
>


FW: [PATCH] TDK running with JPDA

Posted by Jon Stevens <jo...@latchkey.com>.
This is more a catalina specific patch...Craig, mind applying it?

thanks,

-jon

------ Forwarded Message
From: "Henning P. Schmiedehausen" <ma...@hometree.net>
Organization: INTERMETA - Gesellschaft fuer Mehrwertdienste mbH
Reply-To: turbine-dev@jakarta.apache.org
Newsgroups: hometree.jakarta.turbine.dev
Date: Fri, 24 Aug 2001 11:12:17 +0000 (UTC)
To: turbine-dev@jakarta.apache.org
Subject: [PATCH] TDK running with JPDA

Hi, 

with this patch, you can start the catalina in the TDK 2.1
with 

./bin/catalina.sh jpda start

and find a JPDA attachable port on 8000 for debugging the application
(I use netbeans 3.2.1 and the emacs jde for this).

Very useful IMHO.

    Regards
        Henning

diff -u tdk-2.1/bin/catalina.sh.orig tdk-2.1/bin/catalina.sh
--- tdk-2.1/bin/catalina.sh.orig        Fri Aug 24 11:09:25 2001
+++ tdk-2.1/bin/catalina.sh     Fri Aug 24 11:20:28 2001
@@ -70,8 +70,13 @@
 
 # ----- Execute The Requested Command
-----------------------------------------
 
-if [ "$1" = "debug" ] ; then
 
+if [ "$1" = "jpda" ] ; then
+  CATALINA_OPTS="${CATALINA_OPTS} -classic -Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
+  shift
+fi
+
+if [ "$1" = "debug" ] ; then
   shift
   pushd $CATALINA_HOME
   if [ "$1" = "-security" ] ; then

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     hps@intermeta.de

Am Schwabachgrund 22  Fon.: 09131 / 50654-0   info@intermeta.de
D-91054 Buckenhof     Fax.: 09131 / 50654-20

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org

------ End of Forwarded Message