...
- First, create a simple GreetingService.
- Create a Composite Application Project to group it.
- Add a WSO2 Application Server instance to your Eclipse workspace. Steps to add For information on adding a Carbon Server is described in the , see Deploy a C-App to a running Server inside Eclipse section. After adding the server, start the server in the debug modethe Debug mode as shown below.
- After the server is has successfully started, add the GreetingServiceCApp project.
- When your application has deployed successfully, you will see the following messages in your console.
- Now go to your web browser and check whether your application is has being deployed under the Web Services Listing page.
- Click the Try This Service option at in the right hand corner of the respective service. A separate page appears with a list of all the operations related to the web service you choosechose.
- Before you invoke the service, go back to your Eclipse Workspace and put a debug point inside your method.
Now go back to your web console and invoke the service. Once you invoke the service, you are asked whether to switch to change into the Debug Perspective in Eclipse. Click Yes. If your Eclipse instance could not find the relevant source for the class, it will show a blank page is displayed as shown below.
- Click Edit Source Lookup Path.
- Click Add and select the Java Project.
Select the GreetingService project from the list and click OK. Now you will see the source being attached and you will see the debug point being hit.
In a similar manner, you can debug any application
...
associated with Java Sources.