• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to debug in Eclipse while testing Webservice request through SoapUI

 
Murali Sridhar
Ranch Hand
Posts: 44
Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Please let me know "how to debug in Eclipse while testing Webservice request through SoapUI".
FYI:
I have put toggle breakpoints in some class,still the control does not comes to Eclipse.
I have setup JAVA_OPTIONS in setEnvDomain.cmd file.

Thanks in advance....


Many regards,
Murali Sripadam.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18226
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SOAP has no effect on this. For a breakpoint to work, you have to have the server connected to Eclipse using Remote Debugging.
 
Murali Sridhar
Ranch Hand
Posts: 44
Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim,

I'm getting "Launching Error:Failed to connect to remote VM.Connection timed out."

I have provided Connection Properties (from Run-->Debug-->Remote Java Applciation-->New_configuration-->Connect tab) in Eclipse3.2.2 as :

Host:localhost
Port:7001(is the port# where Weblogic server9.2 is running).

Please confirm this 7001 is the Remote VM right?

if so I'm not entering into the Debug mode and I tried with the DEBUG_PORT # 8453 as well.
Please help in this.

Thanks and Regards,
Murali d Sripadam

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18226
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, you don't connect to the HTTP port. Remote debugging requires its own dedicated port. There's no standard port number I'm aware of - just has to be one that nothing else is using.

You'll have to start WebLogic with remote debugging enabled and make sure you've set a debug port. It might be a good idea to ask about that in the WebLogic forum - I don't have a copy set up that I can check with right now.
 
Murali Sridhar
Ranch Hand
Posts: 44
Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi TIM,
I have setup the DEBUG_PORT number to 8543,then I tried.Its working fine now.

Notes':Just I ensured that the Source code and the EAR file are in SYNC.
If they are not in sync then breakpoints on the source would be inconsistent with the deployed EAR file.

Many Regards,
Murali d Sripadam.
----------------------------------------------------------------------------------------------------------------------
Little by little, through patience and repeated effort, the mind will become stilled in the Self~Geeta
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18226
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Murali d Sripadam wrote:
Notes':Just I ensured that the Source code and the EAR file are in SYNC.
If they are not in sync then breakpoints on the source would be inconsistent with the deployed EAR file.


Yup. The debugger assumes that the class being debugged matches the the reference source code. It has no way to verify.

It's just as well. I'd rather debug with a badly-matched source and class than none at all!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic