axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suran Jayathilaka <>
Subject Re: How to Debug Axis2 Engine
Date Fri, 06 Jun 2008 09:48:04 GMT

If you're running the Axis2 standalone server (i.e. by invoking the 
AXIS2_HOME/bin/ you can do this to debug axis2 code.
Edit the file as follows.

Before the "java" invocation, declare an environment variable

export JAVA_OPTS="-Xdebug 

Now insert $JAVA_OPTS to the execution line, as follows.

java $JAVA_OPTS -classpath "$AXIS2_CLASSPATH" 
org.apache.axis2.transport.SimpleAxis2Server \
-repo "$AXIS2_HOME"/repository -conf "$AXIS2_HOME"/conf/axis2.xml $*

Now, when you invoke this script, execution will pause, listening at 
port 8000.

"Listening for transport dt_socket at address: 8000"

Set your IDE to remote debug at 8000. You can of course change the debug 
port number to a preferred one.

The * class in the axis2-kernel module and hence 
in the axis2-kernel-1.4.jar file.


adisesha wrote:
> Hi,
> How can I debug 
> axis2-1.4\modules\kernel\src\org\apache\axis2\transport\jms\*

> *(axis2 engine)?
> will helps us to debug web service & not 
> axis2 code. And which jar file has this class? I feel this is part of 
> module which cant be debugged?
> Thanks in advance
> Disclaimer
> The information contained in this communication is intended solely for 
> the use of the individual or entity to whom it is addressed and others 
> authorized to receive it. It may contain confidential or legally 
> privileged information. If you are not the intended recipient you are 
> hereby notified that any disclosure, copying, distribution or taking 
> any action in reliance on the contents of this information is strictly 
> prohibited and may be unlawful. If you have received this 
> communication in error, please notify us immediately by forwarding 
> this email to and then delete it from your system. 
> Ness technologies is neither liable for the proper and complete 
> transmission of the information contained in this communication nor 
> for any delay in its receipt.

U. Suran Jayathilaka
WSO2, Inc. -

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message