You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "R. Markham" <ma...@gmx.de> on 2005/11/23 14:40:23 UTC
Debuging Struts Application with Eclipse
Hallo
Since several days I tried to debug my Struts Application with Eclipse. I
set following ENV variables
Set JPDA_TRANSPORT=dt_shmem
Set JPDA_ADRESS=8000
I called Catalina with "jpda start" parameter.
If I try to connect to jvm in Eclipse I always get the message
"Failed to connect to remote VM. Connection refused"
Regards
Richard Markham
Re: Debuging Struts Application with Eclipse
Posted by su mo <su...@gmail.com>.
Hi Richard
Couple of suggestions -
1. Set the following variables in catalina.bat
set JPDA_TRANSPORT=dt_socket
set JPDA_ADDRESS=8000
2. I had this error earlier then pointing eclipse and tomcat to use same
JRE fixed the problem.
3. After running catalina.bat jpda start, try to see if the socket is open
telnet localhost 8000
4. You can try catalina.bat jpda run instead of start. This shows if there
is any error starting JPDA
on the same window.
Best Regards
Su Mo.
On 11/23/05, R. Markham <ma...@gmx.de> wrote:
>
>
>
> Hallo
>
>
>
> Since several days I tried to debug my Struts Application with Eclipse. I
> set following ENV variables
>
> Set JPDA_TRANSPORT=dt_shmem
>
> Set JPDA_ADRESS=8000
>
> I called Catalina with "jpda start" parameter.
>
>
>
> If I try to connect to jvm in Eclipse I always get the message
>
> "Failed to connect to remote VM. Connection refused"
>
>
>
> Regards
>
>
>
> Richard Markham
>
>
>
>
>
AW: Debugging Struts Application with Eclipse
Posted by "R. Markham" <ma...@gmx.de>.
Hallo Martin,
I found the solution:
Create a batch file with the name setenv.bat. In the Batch file set
set JPDA_ADDRESS=8000
set JPDA_TRANSPORT=dt_socket
Stores this file in /CATALINA_HOME/bin directory.
Starts tomcat with
Catalina jpda start
So you don't need additional plugins in Eclipse. I find the less Plug Ins
you the more faster is Eclipse.
Regards
Richard
-----Ursprüngliche Nachricht-----
Von: R. Markham [mailto:markham.r@gmx.de]
Gesendet: Mittwoch, 23. November 2005 15:39
An: 'Struts Users Mailing List'; kindlerm@acm.org
Betreff: AW: Debuging Struts Application with Eclipse
Hallo Martin,
from what I have found it is enough to start the jJVM by
java -Xdebug -Xnoagent
-Xrunjdwp:server=y,transport=dt_shmem,address=8000,suspend=n
-Djava.endorsed.dir="..\common\endorsed"
-classpath
"c:programme\java\j2sdk1.4.2_06\lib\tools.jar;..\bin\bootstrap.jar"
-Dcatalina.base=".."
-Dcatalina.home=".."
-Djava.io.tmpdir="..\temp" org.apache.catalina.startup.Bootstrap start
Because this is what is required by sun.
The Problem with all other Plug Ins is that you must develop your struts
application from the beginning with the IDE.
Regards
Richard Markham
-----Ursprüngliche Nachricht-----
Von: Martin Kindler [mailto:kindlerm@arcor.de]
Gesendet: Mittwoch, 23. November 2005 14:49
An: 'Struts Users Mailing List'
Betreff: AW: Debuging Struts Application with Eclipse
If you are using Tomcat I would suggest you use the Sysdeo Plugin
(www.sysdeo.com). With it one can smoothly debug web apps in Eclipse. I do
it all the time.
Martiin
> -----Ursprüngliche Nachricht-----
> Von: R. Markham [mailto:markham.r@gmx.de]
> Gesendet: Mittwoch, 23. November 2005 14:40
> An: user@struts.apache.org
> Betreff: Debuging Struts Application with Eclipse
>
>
>
>
> Hallo
>
>
>
> Since several days I tried to debug my Struts Application
> with Eclipse. I set following ENV variables
>
> Set JPDA_TRANSPORT=dt_shmem
>
> Set JPDA_ADRESS=8000
>
> I called Catalina with "jpda start" parameter.
>
>
>
> If I try to connect to jvm in Eclipse I always get the message
>
> "Failed to connect to remote VM. Connection refused"
>
>
>
> Regards
>
>
>
> Richard Markham
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
AW: Debuging Struts Application with Eclipse
Posted by "R. Markham" <ma...@gmx.de>.
Hallo Martin,
from what I have found it is enough to start the jJVM by
java -Xdebug -Xnoagent
-Xrunjdwp:server=y,transport=dt_shmem,address=8000,suspend=n
-Djava.endorsed.dir="..\common\endorsed"
-classpath
"c:programme\java\j2sdk1.4.2_06\lib\tools.jar;..\bin\bootstrap.jar"
-Dcatalina.base=".."
-Dcatalina.home=".."
-Djava.io.tmpdir="..\temp" org.apache.catalina.startup.Bootstrap start
Because this is what is required by sun.
The Problem with all other Plug Ins is that you must develop your struts
application from the beginning with the IDE.
Regards
Richard Markham
-----Ursprüngliche Nachricht-----
Von: Martin Kindler [mailto:kindlerm@arcor.de]
Gesendet: Mittwoch, 23. November 2005 14:49
An: 'Struts Users Mailing List'
Betreff: AW: Debuging Struts Application with Eclipse
If you are using Tomcat I would suggest you use the Sysdeo Plugin
(www.sysdeo.com). With it one can smoothly debug web apps in Eclipse. I do
it all the time.
Martiin
> -----Ursprüngliche Nachricht-----
> Von: R. Markham [mailto:markham.r@gmx.de]
> Gesendet: Mittwoch, 23. November 2005 14:40
> An: user@struts.apache.org
> Betreff: Debuging Struts Application with Eclipse
>
>
>
>
> Hallo
>
>
>
> Since several days I tried to debug my Struts Application
> with Eclipse. I set following ENV variables
>
> Set JPDA_TRANSPORT=dt_shmem
>
> Set JPDA_ADRESS=8000
>
> I called Catalina with "jpda start" parameter.
>
>
>
> If I try to connect to jvm in Eclipse I always get the message
>
> "Failed to connect to remote VM. Connection refused"
>
>
>
> Regards
>
>
>
> Richard Markham
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
AW: Debuging Struts Application with Eclipse
Posted by Martin Kindler <ki...@arcor.de>.
If you are using Tomcat I would suggest you use the Sysdeo Plugin
(www.sysdeo.com). With it one can smoothly debug web apps in Eclipse. I do
it all the time.
Martiin
> -----Ursprüngliche Nachricht-----
> Von: R. Markham [mailto:markham.r@gmx.de]
> Gesendet: Mittwoch, 23. November 2005 14:40
> An: user@struts.apache.org
> Betreff: Debuging Struts Application with Eclipse
>
>
>
>
> Hallo
>
>
>
> Since several days I tried to debug my Struts Application
> with Eclipse. I set following ENV variables
>
> Set JPDA_TRANSPORT=dt_shmem
>
> Set JPDA_ADRESS=8000
>
> I called Catalina with "jpda start" parameter.
>
>
>
> If I try to connect to jvm in Eclipse I always get the message
>
> "Failed to connect to remote VM. Connection refused"
>
>
>
> Regards
>
>
>
> Richard Markham
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org