Yes, I have set that line. 

I can even make some of the breakpoints to work... the problem is that I have 
already mined the classes 
org.apache.servicemix.http.processors.ConsumerProcessor and 
org.apache.servicemix.http.processors.ProviderProcessor with breakpoints, and 
wasn't able to debug. I suppose that this are the classes used to process my 
request...

João Simas


-----Original Message-----
From: David Kaspar [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 19 de Julho de 2006 12:53
To: [email protected]
Subject: RE: How to debug service mix

Have you started ServiceMix in debug mode? I have added a single line in the 
servicemix.bat to force debug mode (by uncommenting/commenting it). 

rem set SERVICEMIX_DEBUG=1
if "%SERVICEMIX_DEBUG%" == "" goto :SERVICEMIX_DEBUG_END
    rem Use the defaults if JAVA_DEBUG_OPTS was not set
    if "%JAVA_DEBUG_OPTS%" == "" set JAVA_DEBUG_OPTS=%DEFAULT_JAVA_DEBUG_OPTS%
    
    set "JAVA_OPTS=%JAVA_DEBUG_OPTS% %JAVA_OPTS%"
    call :warn Enabling Java debug options: %JAVA_DEBUG_OPTS%
:SERVICEMIX_DEBUG_END 

In the default debug options I set suspend=y which makes ServiceMix halt the 
startup until a remote debugger is attached. This will also tell you whether 
you are connecting correctly to ServiceMix.

set DEFAULT_JAVA_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005

Maybe others can comment on the correctness of your servicemix.xml.

David Kaspar

-----Original Message-----
From: Joao Simas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 19, 2006 12:29 PM
To: [email protected]
Subject: 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

Reply via email to