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 <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
