You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Joao Simas <js...@sinfic.pt> on 2006/07/19 13:28:47 UTC

How to debug service mix

Hello.

I'm having a very strange error using service mix like a proxy to a webservice (I already send several mails with the errors). Since I still haven't corrected the problem, I've tried to debug the service mix application. These were my steps:
	1. Downloaded the service mix snapshot src.
	2. Compiled using maven.
   	3. Start using the compiled service mix like a standalone application.
	4. Configured the project (from step 1) in Eclipse
	5. Set some breakpoint in the classes org.apache.servicemix.http.processors.ConsumerProcessor and org.apache.servicemix.http.processors.ProviderProcessor.

Launch the service mix, launch the remote application debug process and try to use service mix. When I send a request to service mix (see xbean.xml below) nothing happens! It seems that the code I'm debbuging it's not the same of the application! Why??? Does anyone debug service mix with no problems? If so, please tell me what's your strategy.

Thanks for your help.

(xbean.xml):
<beans xmlns:http="http://servicemix.apache.org/http/1.0" xmlns:htest="http://www.sinfic.pt/hellotest">
  <http:endpoint service="htest:Consumer"
               endpoint="ConsumerEndpoint"
               targetService="htest:Provider" 
               targetEndpoint="ProviderEndpoint"
               role="consumer" 
               locationURI="http://localhost:4044/Consumer/"
	           wsdlResource="url:http://localhost:3001/DRCIEWeb/xservices/HelloWorld?wsdl"               
               defaultMep="http://www.w3.org/2004/08/wsdl/in-out" /> 
	<http:endpoint service="htest:Provider"
               endpoint="ProviderEndpoint"
               role="provider" 
             locationURI="http://localhost:3001/DRCIEWeb/xservices/HelloWorld"
             wsdlResource="url:http://localhost:3001/DRCIEWeb/xservices/HelloWorld?wsdl"
               />
</beans>


João Simas

Re: How to debug service mix

Posted by Sandra Schweighart <Sa...@Innovations.de>.
Hi,

you can also just activate the debug-messages of servicemix by setting
everything from "info" to "debug" in the file conf/log4j.xml. Maybe that
helps too.

Sandra

Joao Simas wrote:

>Hello.
>
>I'm having a very strange error using service mix like a proxy to a webservice (I already send several mails with the errors). Since I still haven't corrected the problem, I've tried to debug the service mix application. These were my steps:
>	1. Downloaded the service mix snapshot src.
>	2. Compiled using maven.
>   	3. Start using the compiled service mix like a standalone application.
>	4. Configured the project (from step 1) in Eclipse
>	5. Set some breakpoint in the classes org.apache.servicemix.http.processors.ConsumerProcessor and org.apache.servicemix.http.processors.ProviderProcessor.
>
>Launch the service mix, launch the remote application debug process and try to use service mix. When I send a request to service mix (see xbean.xml below) nothing happens! It seems that the code I'm debbuging it's not the same of the application! Why??? Does anyone debug service mix with no problems? If so, please tell me what's your strategy.
>
>Thanks for your help.
>
>(xbean.xml):
><beans xmlns:http="http://servicemix.apache.org/http/1.0" xmlns:htest="http://www.sinfic.pt/hellotest">
>  <http:endpoint service="htest:Consumer"
>               endpoint="ConsumerEndpoint"
>               targetService="htest:Provider" 
>               targetEndpoint="ProviderEndpoint"
>               role="consumer" 
>               locationURI="http://localhost:4044/Consumer/"
>	           wsdlResource="url:http://localhost:3001/DRCIEWeb/xservices/HelloWorld?wsdl"               
>               defaultMep="http://www.w3.org/2004/08/wsdl/in-out" /> 
>	<http:endpoint service="htest:Provider"
>               endpoint="ProviderEndpoint"
>               role="provider" 
>             locationURI="http://localhost:3001/DRCIEWeb/xservices/HelloWorld"
>             wsdlResource="url:http://localhost:3001/DRCIEWeb/xservices/HelloWorld?wsdl"
>               />
></beans>
>
>
>João Simas
>  
>