RE: Remote debugging with tomcat windows

2005-03-07 Thread Ramu, Vinod
This is what I found in the documentation
 
"If using a J2SE 1.4 JRE, the compatibility package must be downloaded and 
expanded inside the folder where Tomcat was installed"
 
I am using tomcat 5.5
 
I was not able to get my debugger join the server until I ran the tomcat on the 
command using "java.exe" directly.
 
I am using "java 
-Xrunjdwp:transport=dt_socket,server=y,address=9000..." command (just 
for development) :-). Yeah there are other ways by which you could set these 
values. I am using jdk1.5XX
 
Again, as I said earlier make sure that you have set all the -D options that 
the server needs.
 
Vinod


From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Mon 3/7/2005 5:25 PM
To: Tomcat Users List
Subject: RE: Remote debugging with tomcat windows



> From: Randy Paries [mailto:[EMAIL PROTECTED]
> Subject: RE: Remote debugging with tomcat windows
>
> If I only do  -Xdebug I still get the error messages

Have you tried running it from the command line rather than as a service?

> Is 1.5 a requirement for windoze???

No; have no idea why anyone would think that.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Remote debugging with tomcat windows

2005-03-07 Thread Caldarale, Charles R
> From: Randy Paries [mailto:[EMAIL PROTECTED]
> Subject: RE: Remote debugging with tomcat windows
> 
> If I only do  -Xdebug I still get the error messages

Have you tried running it from the command line rather than as a service?

> Is 1.5 a requirement for windoze???

No; have no idea why anyone would think that.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Remote debugging with tomcat windows

2005-03-07 Thread Randy Paries
If I only do  -Xdebug I still get the error messages

Is 1.5 a requirement for windoze??? I have remote debugged before with way
earlier versions on linux

Thanks

-Original Message-
From: Ramu, Vinod [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 4:07 PM
To: Tomcat Users List; Will Norris
Subject: RE: Remote debugging with tomcat windows

Hi, 

This could be because Tomcat uses other -D option, which I am not exactly
sure of (refer the doc).
 
Besides, you need jdk 1.5XXX and you have to start the server from the
TOMCAT_HOME directory. 

Also try to set the "suspend=n" option to "suspend=y" this will make the
debuggee to wait till the debugger joins the debuggee.

Hope this helps u

Vinod

-Original Message-
From: Randy Paries [mailto:[EMAIL PROTECTED]
Sent: Monday, March 07, 2005 4:56 PM
To: 'Tomcat Users List'; 'Will Norris'
Subject: Remote debugging with tomcat windows


Hello I am running tomcat 5 on windoze xp and trying to get remote
debugging to work. I can do it fine when the server is linux but can not
get it to work with windoze.

In the java options (in the tomcat properties dialog) I put the
following

-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005

In my log file I get ::: (even if all I add is -Xdebug)

Thanks for any help

[2005-03-07 15:54:16] [415  javajni.c] [error] CreateJavaVM Failed
[2005-03-07 15:54:16] [770  prunsrv.c] [error] Failed initializing java
C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin\bootstrap.jar
[2005-03-07 15:54:16] [982  prunsrv.c] [error] ServiceStart returned 2




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Remote debugging with tomcat windows

2005-03-07 Thread Ramu, Vinod
Hi, 

This could be because Tomcat uses other -D option, which I am not
exactly sure of (refer the doc).
 
Besides, you need jdk 1.5XXX and you have to start the server from the
TOMCAT_HOME directory. 

Also try to set the "suspend=n" option to "suspend=y" this will make the
debuggee to wait till the debugger joins the debuggee.

Hope this helps u

Vinod

-Original Message-
From: Randy Paries [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 4:56 PM
To: 'Tomcat Users List'; 'Will Norris'
Subject: Remote debugging with tomcat windows


Hello I am running tomcat 5 on windoze xp and trying to get remote
debugging to work. I can do it fine when the server is linux but can not
get it to work with windoze.

In the java options (in the tomcat properties dialog) I put the
following

-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005

In my log file I get ::: (even if all I add is -Xdebug)

Thanks for any help

[2005-03-07 15:54:16] [415  javajni.c] [error] CreateJavaVM Failed
[2005-03-07 15:54:16] [770  prunsrv.c] [error] Failed initializing java
C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin\bootstrap.jar
[2005-03-07 15:54:16] [982  prunsrv.c] [error] ServiceStart returned 2




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Remote debugging a web app with Eclipse?

2004-11-14 Thread Michael Schuerig
On Sunday 14 November 2004 17:16, George Sexton wrote:
> Here is a wrapper that I use to start tomcat for remote debugging
> with Eclipse. Note that the indented CATALINA_OPTS is actually one
> long line in the batch file.

Thanks! that was easier than I expected.

I'm starting Tomcat from an ant file like this:

  

  

  

  

Michael

-- 
Michael Schuerig   Face reality and stare it down
mailto:[EMAIL PROTECTED]--Jethro Tull, Silver River Turning
http://www.schuerig.de/michael/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Remote debugging a web app with Eclipse?

2004-11-14 Thread George Sexton
Here is a wrapper that I use to start tomcat for remote debugging with
Eclipse. Note that the indented CATALINA_OPTS is actually one long line in
the batch file.

REM @ECHO OFF
SET CATALINA_VER=5.0.28
SET CATALINA_BASE=M:\cdaily
SET CATALINA_HOME=C:\SERVLET\Jakarta-Tomcat-%CATALINA_VER%
SET CATALINA_OPTS=-Xdebug -Xnoagent 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7100 
-Djava.compiler=NONE 
-Dfile.encoding=ISO-8859-1
SET JAVA_HOME=C:\J2SDK1.4.2_04
%CATALINA_HOME%\bin\catalina.bat %1 %2 %3 %4 %5 %6 %7 %8 %9



George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -Original Message-
> From: Michael Schuerig [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, November 14, 2004 9:06 AM
> To: [EMAIL PROTECTED]
> Subject: Remote debugging a web app with Eclipse?
> 
> 
> I've tried to remote debug a web app with Eclipse, but didn't 
> make the 
> first hurdle. Apparently, Eclipse can't connect to Tomcat's JVM. I'm 
> using Tomcat 5.5.1, J2SE 5.0 and Eclipse 3.1M3.
> 
> I take it, that in some way I need to tell the JVM that it's 
> running in 
> debug mode and what port it ought to listen on. All I found out, 
> though, is that there's a deprecated -Xdebug option. Is there a short 
> tutorial somewhere on remote debugging?
> 
> Michael
> 
> -- 
> Michael Schuerig  Failures to use one's frontal lobes
> mailto:[EMAIL PROTECTED]can result in the loss of them.
> http://www.schuerig.de/michael/   --William H. Calvin
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: remote debugging

2004-01-11 Thread Mark Thomas
I do this with Eclipse all the time. The steps to reproduce my configuration are
shown below.

1. Configure the following environment variables:
JPDA_ADDRESS=8999
JPDA_TRANSPORT=dt_socket

2. Start tomcat from the command line with:
catalina jpda start
or
catalina jpda run

3. In Eclipse configure a "Remote Java Application" with the following settings:
Connection type   Standard (socket attach)
Host  localhost
Port  8999

This assumes you have the correct tomcat source code setup in an Eclipse
project. Don't worry if you Eclipse shows build errors, it will still let you
debug.

Mark

-Original Message-
From: Afshartous, Nick [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 10, 2004 3:54 AM
To: '[EMAIL PROTECTED]'
Subject: remote debugging


Hi,

Could someone please advise on the steps
to enable remote debugging on Tomcat 4.1, thanks.


--
Nick
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: remote debugging

2004-01-10 Thread Mark Thomas
Resending from the right account...

I do this with Eclipse all the time. The steps to reproduce my configuration are
shown below.

1. Configure the following environment variables:
JPDA_ADDRESS=8999
JPDA_TRANSPORT=dt_socket

2. Start tomcat from the command line with:
catalina jpda start
or
catalina jpda run

3. In Eclipse configure a "Remote Java Application" with the following settings:
Connection type   Standard (socket attach)
Host  localhost
Port  8999

This assumes you have the correct tomcat source code setup in an Eclipse
project. Don't worry if you Eclipse shows build errors, it will still let you
debug.

Mark

-Original Message-
From: Afshartous, Nick [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 10, 2004 3:54 AM
To: '[EMAIL PROTECTED]'
Subject: remote debugging


Hi,

Could someone please advise on the steps
to enable remote debugging on Tomcat 4.1, thanks.


--
Nick
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Remote debugging on linux for TOMCAT 4.1.24

2003-07-15 Thread Norris Shelton
This works if you want to use the defaults.  I usually connect
via a socket via IntelliJ for remote debugging.  I run on
windows and have a startup_debug.bat file with the following
contents:

set JPDA_TRANSPORT=dt_socket
set JPDA_ADDRESS=5005
call catalina.bat jpda start





--- Larry Meadors <[EMAIL PROTECTED]> wrote:
> I use './catalana.sh jpda run' fron the $CATALINA_HOME/bin
> directory.
> 
> Larry
> 
> >>> [EMAIL PROTECTED] 07/15/03 8:20 AM >>>
> The documentation states add 
> "SET CATALINA_OPTS=-server -Xdebug -Xnoagent
> -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"
> to catalina.bat.  
> 
> Does anyone know what the correct procedure for linux is?
> 
> 
> Regards
> 
> John Gustavson
> Enterprise Central Software Services (ECSS)
> 570 Washington Street - 2nd floor
> New York, New York, 10080-6802
> 
> Telephone: 1-212-647-3793
> Fax: 1-212-647-3321
> Email: [EMAIL PROTECTED]
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Remote debugging on linux for TOMCAT 4.1.24

2003-07-15 Thread Larry Meadors
I use './catalana.sh jpda run' fron the $CATALINA_HOME/bin directory.

Larry

>>> [EMAIL PROTECTED] 07/15/03 8:20 AM >>>
The documentation states add 
"SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"
to catalina.bat.  

Does anyone know what the correct procedure for linux is?


Regards

John Gustavson
Enterprise Central Software Services (ECSS)
570 Washington Street - 2nd floor
New York, New York, 10080-6802

Telephone: 1-212-647-3793
Fax: 1-212-647-3321
Email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Remote debugging throught network

2003-03-07 Thread Edson Alves Pereira
Hey dudes, i got an example from "Debugging Midlets", and it shows
me how i could debug Tomcat in other machine: here is the command to do so

D:\home\edson>jdb -sourcepath %SOURCEPATH% -connect
com.sun.jdi.SocketAttach:hostname=172.17.2.200,port=8000

As you can see i´m using a WinNT and the machine that i must test is
a Linux besides me, the hostname is an address for the JVM. That´s all!

> --
> De:   pcampaigne[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  sexta-feira, 7 de março de 2003 15:08
> Para: Tomcat Users List
> Assunto:  Re: Remote debugging throught network
> 
> To All.
> Has anyone got remote debugging working with tomcat 4.1.X?  It is my
> understanding that it only works with 4.0.X?
> Phil Campaigne
> 
> - Original Message -
> From: "Karr, David" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, March 07, 2003 8:31 AM
> Subject: RE: Remote debugging throught network
> 
> 
> Any JPDA-compliant debugger can do this.  NetBeans is one example.  You
> simply specify the "Attach to remote server" option (different debuggers
> will name this differently), and specify the host where your JVM is
> running
> on, "dt_socket" connections, and the address.  You'll probably want to
> have
> your application source code and/or Tomcat's source code mounted in the
> project (so you'll have something to set breakpoints on).
> 
> > -Original Message-
> > From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> > Sent: Friday, March 07, 2003 5:55 AM
> > To: 'Tomcat-User List'
> > Subject: Remote debugging throught network
> >
> > Hello folks, i´m trying to debug my application in a special machine
> > throught network, that machine is a Linux with Tomcat-4.1.18 as it´s
> > server.
> > I´m already have a development environment in my personal machine, but
> > there
> > are some error with my application that happen only in Linux.
> >
> > My Linux´s Tomcat is running with remote debugging using this
> > parameters:
> > JAVA_OPTS="-Xdebug
> > -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
> >
> > The problems is, i don´t known how to reach this VM from my own
> > machine, how i could do that?
> >
> > With best wishes,
> > Edson Alves Pereira
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Re: Remote debugging throught network

2003-03-07 Thread Mark
If you don't have an IDE with built in JPDA debugger, a nice (free) 
standalone one is JSwat:

http://www.bluemarsh.com/java/jswat/

At 3/7/2003 10:54 AM, you wrote:
Hello folks, i´m trying to debug my application in a special machine
throught network, that machine is a Linux with Tomcat-4.1.18 as it´s server.
I´m already have a development environment in my personal machine, but there
are some error with my application that happen only in Linux.
My Linux´s Tomcat is running with remote debugging using this
parameters:
JAVA_OPTS="-Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
The problems is, i don´t known how to reach this VM from my own
machine, how i could do that?
With best wishes,
Edson Alves Pereira


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Remote debugging throught network

2003-03-07 Thread pcampaigne
To All.
Has anyone got remote debugging working with tomcat 4.1.X?  It is my
understanding that it only works with 4.0.X?
Phil Campaigne

- Original Message -
From: "Karr, David" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 8:31 AM
Subject: RE: Remote debugging throught network


Any JPDA-compliant debugger can do this.  NetBeans is one example.  You
simply specify the "Attach to remote server" option (different debuggers
will name this differently), and specify the host where your JVM is running
on, "dt_socket" connections, and the address.  You'll probably want to have
your application source code and/or Tomcat's source code mounted in the
project (so you'll have something to set breakpoints on).

> -Original Message-
> From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 5:55 AM
> To: 'Tomcat-User List'
> Subject: Remote debugging throught network
>
> Hello folks, i´m trying to debug my application in a special machine
> throught network, that machine is a Linux with Tomcat-4.1.18 as it´s
> server.
> I´m already have a development environment in my personal machine, but
> there
> are some error with my application that happen only in Linux.
>
> My Linux´s Tomcat is running with remote debugging using this
> parameters:
> JAVA_OPTS="-Xdebug
> -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
>
> The problems is, i don´t known how to reach this VM from my own
> machine, how i could do that?
>
> With best wishes,
> Edson Alves Pereira

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Remote debugging throught network

2003-03-07 Thread Karr, David
Any JPDA-compliant debugger can do this.  NetBeans is one example.  You simply specify 
the "Attach to remote server" option (different debuggers will name this differently), 
and specify the host where your JVM is running on, "dt_socket" connections, and the 
address.  You'll probably want to have your application source code and/or Tomcat's 
source code mounted in the project (so you'll have something to set breakpoints on).

> -Original Message-
> From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 5:55 AM
> To: 'Tomcat-User List'
> Subject: Remote debugging throught network
> 
>   Hello folks, i´m trying to debug my application in a special machine
> throught network, that machine is a Linux with Tomcat-4.1.18 as it´s
> server.
> I´m already have a development environment in my personal machine, but
> there
> are some error with my application that happen only in Linux.
> 
>   My Linux´s Tomcat is running with remote debugging using this
> parameters:
>   JAVA_OPTS="-Xdebug
> -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
> 
>   The problems is, i don´t known how to reach this VM from my own
> machine, how i could do that?
> 
>   With best wishes,
>   Edson Alves Pereira

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Remote debugging throught network

2003-03-07 Thread Wendy Smoak
> My Linux´s Tomcat is running with remote debugging using this
> parameters:
>   JAVA_OPTS="-Xdebug
> -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
>   The problems is, i don´t known how to reach this VM from my own
> machine, how i could do that?

What debugger are you using and what have you tried?  With JSwat, when you
connect you have the option of shared memory, or hostname and port.  It
seems like if you'd put the ip address or hostname of the linux server in
that box, and port 8000, it would connect.  I only use it with localhost,
though.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management