Search code examples
javaeclipsemavenapache-axis

how do i create a debuggable axis2 project in eclipse using maven?


I followed the tutorial at this link to create a axis2 webservice project using maven and eclipse.

However, this setup doesn't allow me to debug my code. Can someone point me to a link which will allow me to use maven to build my axis2 webservice and debug the code inside eclipse?


Solution

  • If you're using Tomcat within Eclipse, then perhaps it's just a matter of putting the project on the source lookup path. Because you're not deploying it as a .war in Tomcat, it's just deployed as an .aar within the axis2.war deployment. Try this:

    1. Run -> Debug Configurations...
    2. Select your Tomcat instance under Apache Tomcat
    3. Select the Source tab
    4. Click the Add... button
    5. Select Java Project and then HighScoreService

    You should be able to put a breakpoint in the code and debug it. I put a breakpoint on line 21 of HighScoreService.java, invoked getHighScores from SoapUI, and was able to debug.