You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Michael Sailer <mi...@gmx.net> on 2010/12/05 18:53:11 UTC

How can I debug SimpleHttpServer in Eclipse

Hello,

how can I debug service code in Eclipse using the SimpleHttpServer.

I modified the script axis2server.sh:

JAVA_OPTS="-Xdebug 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8500"
java "$JAVA_OPTS"  -classpath "$AXIS2_CLASSPATH" 
org.apache.axis2.transport.SimpleAxis2Server \
     -repo "$AXIS2_HOME"/repository -conf "$AXIS2_HOME"/conf/axis2.xml $*



First I start the SimpleHttpServer through modified axis2server.sh script.
Then I create a debug configuration "Remote Java Application" in eclipse 
with host localhost and port 8500.

When I try to start the debug session, I get the following error message:
"Failed to connect to remote VM. Connection refused. Connection refused"

I use the axis2 version 1.5.3.

Kind regards
Michael Sailer

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


Re: How can I debug SimpleHttpServer in Eclipse

Posted by Michael Sailer <mi...@gmx.net>.
Hello Andreas,

thank you for the script.
Now it works.
In my own script I had a typing error, which I saw as I made a diff on 
my debug options and yours.

Kind regards
Michael Sailer

On 05.12.2010 22:07, Andreas Veithen wrote:
> On the trunk, the scripts accept an -xdebug option to put the server
> in debug mode (see AXIS2-4261). I've merged that to the 1.5 branch,
> and it should be available in the 1.5.4-SNAPSHOT build #107:
>
> https://hudson.apache.org/hudson/job/axis2-1.5/lastBuild/org.apache.axis2$distribution/
>
> Once the build is available, can you test with that? Note that the
> port is 8000 and it uses suspend=y.
>
> Andreas
>
> On Sun, Dec 5, 2010 at 18:53, Michael Sailer<mi...@gmx.net>  wrote:
>    
>> Hello,
>>
>> how can I debug service code in Eclipse using the SimpleHttpServer.
>>
>> I modified the script axis2server.sh:
>>
>> JAVA_OPTS="-Xdebug
>> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8500"
>> java "$JAVA_OPTS"  -classpath "$AXIS2_CLASSPATH"
>> org.apache.axis2.transport.SimpleAxis2Server \
>>     -repo "$AXIS2_HOME"/repository -conf "$AXIS2_HOME"/conf/axis2.xml $*
>>
>>
>>
>> First I start the SimpleHttpServer through modified axis2server.sh script.
>> Then I create a debug configuration "Remote Java Application" in eclipse
>> with host localhost and port 8500.
>>
>> When I try to start the debug session, I get the following error message:
>> "Failed to connect to remote VM. Connection refused. Connection refused"
>>
>> I use the axis2 version 1.5.3.
>>
>> Kind regards
>> Michael Sailer
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-user-help@axis.apache.org
>>
>>
>>      
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>
>    

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


Re: How can I debug SimpleHttpServer in Eclipse

Posted by Andreas Veithen <an...@gmail.com>.
On the trunk, the scripts accept an -xdebug option to put the server
in debug mode (see AXIS2-4261). I've merged that to the 1.5 branch,
and it should be available in the 1.5.4-SNAPSHOT build #107:

https://hudson.apache.org/hudson/job/axis2-1.5/lastBuild/org.apache.axis2$distribution/

Once the build is available, can you test with that? Note that the
port is 8000 and it uses suspend=y.

Andreas

On Sun, Dec 5, 2010 at 18:53, Michael Sailer <mi...@gmx.net> wrote:
> Hello,
>
> how can I debug service code in Eclipse using the SimpleHttpServer.
>
> I modified the script axis2server.sh:
>
> JAVA_OPTS="-Xdebug
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8500"
> java "$JAVA_OPTS"  -classpath "$AXIS2_CLASSPATH"
> org.apache.axis2.transport.SimpleAxis2Server \
>    -repo "$AXIS2_HOME"/repository -conf "$AXIS2_HOME"/conf/axis2.xml $*
>
>
>
> First I start the SimpleHttpServer through modified axis2server.sh script.
> Then I create a debug configuration "Remote Java Application" in eclipse
> with host localhost and port 8500.
>
> When I try to start the debug session, I get the following error message:
> "Failed to connect to remote VM. Connection refused. Connection refused"
>
> I use the axis2 version 1.5.3.
>
> Kind regards
> Michael Sailer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>

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