servicemix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Jack <smbabu2...@yahoo.com>
Subject CXF-BC consumer not working with custom jetty engine
Date Wed, 31 Dec 2008 18:34:45 GMT
Hi 
 I am using servicemix 3.2.2 and trying to set the custom jetty server for CXF-BC consumer.
  I defined the consumer in light-weight mode in the servicemix.xml as as below.
  
     <sm:component>
       <cxfbc:component> 
        <cxfbc:endpoints> 
            <cxfbc:consumer wsdl="/WEB-INF/wsdl/CircuitIR.wsdl"
                busCfg="jetty.xml"
             service="ckt:FrameRelayCircuit"
             interfaceName="ckt:FrameRelayCircuitPortType"
             targetEndpoint="CircuitPort"
             targetService="ckt:FrameRelayCircuit"
             targetInterface="ckt:FrameRelayCircuitPortType" />
          </cxfbc:endpoints>
      </cxfbc:component>   
      </sm:component>

 And in cxf.xml file, defined the Jetty-factory and jetty engine with the port 8193. And
the same port numebr was specified in the WSDL file also for service address.
 
  Additinally I defined the handlers DefaultHandler,WebAppContext handler in the cxf.xml.

  
  Jetty engine and handles were sepecified as per http://cxf.apache.org/schemas/configuration/http-jetty.xsd
  
  Upon server start up no errors were thrown, but
   1) The web service is not responding. Tried to access WSDL using the URL the http://localhost:8193/services/circuit?wsdl
       The console logs are shown as below.But failed to retrieve the WSDL.
       
       INFO: Setting the server's publish address to be http://0.0.0.0:8193/services/circuit
       ...
       INFO: Started SocketConnector@0.0.0.0:8193
       
       I tried the address in the WSDL file with localhost instead of 0.0.0.0 but the
result is same.
       
    
    2) The org.mortbay.jetty.webapp.WebAppContext handler that I defined in cxf.xml is
working fine.
       Able to access the html pages using the link for example http://0.0.0.0:8193/test/circuit.html
       
       
    The problem is I need to use the same jetty server/engine running on 8193 for both
CXF-BC consumer and webAppContext handler.
    
     I appreciate your help on resolving this issue.

Thanks
Jack     


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message