Discussion:
Debugging Axis2 in Tomcat
Ho, Wen Yue
2007-01-24 21:05:34 UTC
Permalink
Hi,

Any pointers on how to debug Axis2 WebService Application in Tomcat?

Sysdeo turns out to be not working anymore,... with the following error
message:
ERROR: JDWP unable to get necessary JVMTI capabilities.
["debugInit.c",L279]

Thanks in advance,
wen


********************
NOTICE OF CONFIDENTIALITY
This communication including any information transmitted with it is
intended only for the use of the addressees and is confidential.
If you are not an intended recipient or responsible for delivering
the message to an intended recipient, any review, disclosure,
conversion to hard copy, dissemination, reproduction or other use
of any part of this communication is strictly prohibited, as is the
taking or omitting of any action in reliance upon this communication.
If you receive this communication in error or without authorization
please notify us immediately by return e-mail or otherwise and
permanently delete the entire communication from any computer,
disk drive, or other storage medium.

If the above disclaimer is not properly readable, it can be found at
www.td.com/legal

AVERTISSEMENT DE CONFIDENTIALITE
Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement
aux destinataires susmentionnés, est confidentiel. Si vous
n’êtes pas le destinataire prévu ou un agent responsable de la
livraison de ce courriel, tout examen, divulgation, copie, impression,
reproduction, distribution, ou autre utilisation d’une partie de ce
courriel est strictement interdit de même que toute intervention ou
abstraction à cet égard. Si vous avez reçu ce message par erreur ou
sans autorisation, veuillez en aviser immédiatement l’expéditeur par
retour de courriel ou par un autre moyen et supprimer immédiatement
cette communication entière de tout système électronique.

Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous
pouvez le consulter à www.td.com/franc
Jeff Greif
2007-01-24 22:27:01 UTC
Permalink
Post by Ho, Wen Yue
Hi,
Any pointers on how to debug Axis2 WebService Application in Tomcat?
In Eclipse, you can launch Tomcat for debugging or attach to a running
Tomcat. Then you debug the Axis code in the normal way.

Google for "eclipse launch tomcat debug"

Jeff
Ajith Ranabahu
2007-01-25 01:16:05 UTC
Permalink
Perhaps this could be useful
http://wso2.org/library/225
Post by Jeff Greif
Post by Ho, Wen Yue
Hi,
Any pointers on how to debug Axis2 WebService Application in Tomcat?
In Eclipse, you can launch Tomcat for debugging or attach to a running
Tomcat. Then you debug the Axis code in the normal way.
Google for "eclipse launch tomcat debug"
Jeff
---------------------------------------------------------------------
--
Ajith Ranabahu
sumedha rubasinghe
2007-01-25 04:36:34 UTC
Permalink
Hi;
Following article [1] provides step-by-step guide on how to debug a web
service using either eclipse or idea.

[1] https://www.wso2.org/library/225

/sumedha
Post by Ho, Wen Yue
Hi,
Any pointers on how to debug Axis2 WebService Application in Tomcat?
Sysdeo turns out to be not working anymore,... with the following error
ERROR: JDWP unable to get necessary JVMTI capabilities.
["debugInit.c",L279]
Thanks in advance,
wen
********************
NOTICE OF CONFIDENTIALITY
This communication including any information transmitted with it is
intended only for the use of the addressees and is confidential.
If you are not an intended recipient or responsible for delivering
the message to an intended recipient, any review, disclosure,
conversion to hard copy, dissemination, reproduction or other use
of any part of this communication is strictly prohibited, as is the
taking or omitting of any action in reliance upon this communication.
If you receive this communication in error or without authorization
please notify us immediately by return e-mail or otherwise and
permanently delete the entire communication from any computer,
disk drive, or other storage medium.
If the above disclaimer is not properly readable, it can be found at
www.td.com/legal
AVERTISSEMENT DE CONFIDENTIALITE
Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement
aux destinataires susmentionnés, est confidentiel. Si vous
n’êtes pas le destinataire prévu ou un agent responsable de la
livraison de ce courriel, tout examen, divulgation, copie, impression,
reproduction, distribution, ou autre utilisation d’une partie de ce
courriel est strictement interdit de même que toute intervention ou
abstraction à cet égard. Si vous avez reçu ce message par erreur ou
sans autorisation, veuillez en aviser immédiatement l’expéditeur par
retour de courriel ou par un autre moyen et supprimer immédiatement
cette communication entière de tout système électronique.
Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous
pouvez le consulter à www.td.com/francais/legale
Ho, Wen Yue
2007-01-25 17:36:45 UTC
Permalink
Jeff,

Thanks for the tips.

I manage debug my Axis2 WS in Tomcat using eclipse now.
But I still am having a problem though. When the debugger stopping at
the server side code it doesn't highlight the line where it is stopping.
The Debug Call stacks is saying "line: not available [local variables
unavailable]".

Any experience on this issue?

Thanks again,
Wen


-----Original Message-----
From: Jeff Greif [mailto:***@gmail.com]
Sent: January 24, 2007 5:27 PM
To: axis-***@ws.apache.org
Subject: Re: Debugging Axis2 in Tomcat
Post by Ho, Wen Yue
Hi,
Any pointers on how to debug Axis2 WebService Application in Tomcat?
In Eclipse, you can launch Tomcat for debugging or attach to a running
Tomcat. Then you debug the Axis code in the normal way.

Google for "eclipse launch tomcat debug"

Jeff

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-***@ws.apache.org
For additional commands, e-mail: axis-user-***@ws.apache.org


********************
NOTICE OF CONFIDENTIALITY
This communication including any information transmitted with it is
intended only for the use of the addressees and is confidential.
If you are not an intended recipient or responsible for delivering
the message to an intended recipient, any review, disclosure,
conversion to hard copy, dissemination, reproduction or other use
of any part of this communication is strictly prohibited, as is the
taking or omitting of any action in reliance upon this communication.
If you receive this communication in error or without authorization
please notify us immediately by return e-mail or otherwise and
permanently delete the entire communication from any computer,
disk drive, or other storage medium.

If the above disclaimer is not properly readable, it can be found at
www.td.com/legal

AVERTISSEMENT DE CONFIDENTIALITE
Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement
aux destinataires susmentionnés, est confidentiel. Si vous
n’êtes pas le destinataire prévu ou un agent responsable de la
livraison de ce courriel, tout examen, divulgation, copie, impression,
reproduction, distribution, ou autre utilisation d’une partie de ce
courriel est strictement interdit de même que toute intervention ou
abstraction à cet égard. Si vous avez reçu ce message par erreur ou
sans autorisation, veuillez en aviser immédiatement l’expéditeur par
retour de courriel ou par un autre moyen et supprimer immédiatement
cette communication entière de tout système électronique.

Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous
pouvez le consulter à w
Jeff Greif
2007-01-25 18:15:02 UTC
Permalink
Line numbers are available or not depending on the options given to the
java compiler. You can control the appearance of line numbers for your
code, but not for the axis2 code or tomcat container code loaded from
pre-packaged jars, depending on how those jars were built. If you want
line numbers from something in this infrastructure, you might have to
build it yourself with the appropriate compiler options, and install the
results in place of the jars you're using now.

Jeff
Post by Ho, Wen Yue
Jeff,
Thanks for the tips.
I manage debug my Axis2 WS in Tomcat using eclipse now.
But I still am having a problem though. When the debugger stopping at
the server side code it doesn't highlight the line where it is stopping.
The Debug Call stacks is saying "line: not available [local variables
unavailable]".
Stadelmann Josef
2007-01-26 12:29:47 UTC
Permalink
That was not the question of Jeff

Jeff does not say ... to debug in code that comes from jar's ....
But he wants simple see the debugger step through his own lines of code.

I have had the same issue. The issues is shown in NetBeans as well when
the code is on the server and the debugging takes somehow place in conjunction
with a local source code copy on the client. the debugger shows this problem.
After synchronizing the code between client and server and mounting the code/
package at the proper level, this missbehaving has gone away.

Josef

-----Ursprüngliche Nachricht-----
Von: Jeff Greif [mailto:***@gmail.com]
Gesendet: Donnerstag, 25. Januar 2007 19:15
An: axis-***@ws.apache.org
Betreff: Re: Debugging Axis2 in Tomcat


Line numbers are available or not depending on the options given to the
java compiler. You can control the appearance of line numbers for your
code, but not for the axis2 code or tomcat container code loaded from
pre-packaged jars, depending on how those jars were built. If you want
line numbers from something in this infrastructure, you might have to
build it yourself with the appropriate compiler options, and install the
results in place of the jars you're using now.

Jeff
Post by Ho, Wen Yue
Jeff,
Thanks for the tips.
I manage debug my Axis2 WS in Tomcat using eclipse now.
But I still am having a problem though. When the debugger stopping at
the server side code it doesn't highlight the line where it is stopping.
The Debug Call stacks is saying "line: not available [local variables
unavailable]".
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-***@ws.apache.org
For additional commands, e-mail: axis-user-***@ws.apache.org
W.Y. Ho
2007-01-27 01:57:45 UTC
Permalink
Yes, Josef is correct.
That's what was happening to me.

After I synched the jar in the server and client code, re-mounting the Tomcat, the debugging work perfectly well.
Hope this will help others who have same problems.

Thanks btw.

Stadelmann Josef <***@winterthur.ch> wrote: That was not the question of Jeff

Jeff does not say ... to debug in code that comes from jar's ....
But he wants simple see the debugger step through his own lines of code.

I have had the same issue. The issues is shown in NetBeans as well when
the code is on the server and the debugging takes somehow place in conjunction
with a local source code copy on the client. the debugger shows this problem.
After synchronizing the code between client and server and mounting the code/
package at the proper level, this missbehaving has gone away.

Josef

-----Ursprüngliche Nachricht-----
Von: Jeff Greif [mailto:***@gmail.com]
Gesendet: Donnerstag, 25. Januar 2007 19:15
An: axis-***@ws.apache.org
Betreff: Re: Debugging Axis2 in Tomcat


Line numbers are available or not depending on the options given to the
java compiler. You can control the appearance of line numbers for your
code, but not for the axis2 code or tomcat container code loaded from
pre-packaged jars, depending on how those jars were built. If you want
line numbers from something in this infrastructure, you might have to
build it yourself with the appropriate compiler options, and install the
results in place of the jars you're using now.

Jeff
Post by Ho, Wen Yue
Jeff,
Thanks for the tips.
I manage debug my Axis2 WS in Tomcat using eclipse now.
But I still am having a problem though. When the debugger stopping at
the server side code it doesn't highlight the line where it is stopping.
The Debug Call stacks is saying "line: not available [local variables
unavailable]".
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-***@ws.apache.org
For additional commands, e-mail: axis-user-***@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-***@ws.apache.org
For additional commands, e-mail: axis-user-***@ws.apache.org




---------------------------------
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail
W.Y. Ho
2007-01-29 05:00:59 UTC
Permalink
http://www.javaworld.com/javaworld/javaqa/2001-07/01-qa-0706-env.html


---------------------------------
Ask a question on any topic and get answers from real people. Go to Yahoo! Answers.
Loading...