You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by pascale4 <pa...@inwind.it> on 2007/01/15 12:19:20 UTC

Expose external web service with http-component (very simplified)

Hi,
after a lot of test I learnt how to expose an external web service through
http-component.

Suppose you have a web service with this wsdl :

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://localhost:8080/helloworldws/services/HelloWorldService"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://localhost:8080/helloworldws/services/HelloWorldService"
xmlns:intf="http://localhost:8080/helloworldws/services/HelloWorldService"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types/>
  <wsdl:message name="echoResponse">
    <wsdl:part name="echoReturn" type="xsd:string"/>
  </wsdl:message>
  <wsdl:message name="echoRequest">
  </wsdl:message>
  <wsdl:portType name="HelloWorldService">
    <wsdl:operation name="echo">
      <wsdl:input message="impl:echoRequest" name="echoRequest"/>
      <wsdl:output message="impl:echoResponse" name="echoResponse"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="HelloWorldServiceSoapBinding"
type="impl:HelloWorldService">
    <wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="echo">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="echoRequest">
        <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/helloworldws/services/HelloWorldService"
use="encoded"/>
      </wsdl:input>
      <wsdl:output name="echoResponse">
        <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/helloworldws/services/HelloWorldService"
use="encoded"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="HelloWorldServiceService">
    <wsdl:port binding="impl:HelloWorldServiceSoapBinding"
name="HelloWorldService">
      <wsdlsoap:address
location="http://localhost:8080/helloworldws/services/HelloWorldService"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

Then you have to define an http-component provider with this xbean.xml :

<?xml version="1.0" encoding="UTF-8"?>
<beans
        xmlns:http="http://servicemix.apache.org/http/1.0"
       
xmlns:ns1="http://localhost:8080/helloworldws/services/HelloWorldService"
>
<http:endpoint
        service="ns1:HelloWorldServiceService"
        endpoint="HelloWorldService"
        role="provider"
       
locationURI="http://localhost:8080/helloworldws/services/HelloWorldService"
       
wsdlResource="http://localhost:8080/helloworldws/services/HelloWorldService?wsdl"
/>
</beans>

where
- ns1 : must match namespaces in wsdl
- service : must match value of attribute name of element wsdl:service in
wsdl
  <wsdl:service name="HelloWorldServiceService">
- endpoint : must match value of attribute name of element wsdl:port
    <wsdl:port binding="impl:HelloWorldServiceSoapBinding"
name="HelloWorldService">

Now you have to define http-component consumer with this xbean.xml :

<?xml version="1.0" encoding="UTF-8"?>
<beans
        xmlns:http="http://servicemix.apache.org/http/1.0"
       
xmlns:ns1="http://localhost:8080/helloworldws/services/HelloWorldService"
>
<http:endpoint
        service="ns1:HelloWorldServiceConsumer"
        endpoint="HelloWorldEndpointConsumer"
        role="consumer"
        targetService="ns1:HelloWorldServiceService"
        locationURI="http://localhost:8192/services/HelloWorldService/"
        defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
/>
</beans>

where
- ns1 : must match namespaces in wsdl
- targetService : must match service value in xbean.xml of provider
<http:endpoint
        service="ns1:HelloWorldServiceService"
        endpoint="HelloWorldService"
        role="provider"

And this is the jbi.xml of Service Assembly :
<?xml version="1.0" encoding="UTF-8"?>
<jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
  <service-assembly>
    <identification>
      <name>helloworld-sa</name>
      <description>Codices :: HelloWorld :: SA</description>
    </identification>
    <service-unit>
      <identification>
        <name>http-su-provider</name>
        <description>Http BC provider</description>
      </identification>
      <target>
        <artifacts-zip>http-su-provider.zip</artifacts-zip>
        <component-name>servicemix-http</component-name>
      </target>
    </service-unit>
    <service-unit>
      <identification>
        <name>http-su-consumer</name>
        <description>Http BC consumer</description>
      </identification>
      <target>
        <artifacts-zip>http-su-consumer.zip</artifacts-zip>
        <component-name>servicemix-http</component-name>
      </target>
    </service-unit>
  </service-assembly>
</jbi>

That's all folks

This is the source  http://www.nabble.com/file/5642/helloworld-sa.zip
helloworld-sa.zip 

Massimo
-- 
View this message in context: http://www.nabble.com/Expose-external-web-service-with-http-component-%28very-simplified%29-tf3014055s12049.html#a8370000
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Expose external web service with http-component (very simplified)

Posted by zul <mu...@hotmail.com>.
Hi,
How to call the web service? In which dir to put the stub classes?


pascale4 wrote:
> 
> The web service exposed is deployed in tomcat 4.1.29 with axis.
> To call the web service I have generated stub class (java class) with
> Axis, but unfortunately I have a little problem with WSDL generated by
> service mix. It seems WSDL is not generated correctly. As you can see at
> this link 
> http://www.nabble.com/forum/ViewPost.jtp?post=8369564&framed=y&skin=12049
> http://www.nabble.com/forum/ViewPost.jtp?post=8369564&framed=y&skin=12049 
> 
> I will notice when I solve the problem.
> 
> Massimo
> 
> 
> beyond30lyc wrote:
>> 
>> Thank you very much! I am looking for this method for a whole day,but
>> have you used this method to integrate the .NET external web service?
>> And i think that when we call a web service,we have to generate a proxy
>> first,when we do this, Shall we generate sources first,or this will be
>> done automaticaly when we call the service.
>> Wishing for your help! 
>> 
>> pascale4 wrote:
>>> 
>>> Hi,
>>> after a lot of test I learnt how to expose an external web service
>>> through http-component.
>>> 
>>> Suppose you have a web service with this wsdl :
>>> 
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <wsdl:definitions
>>> targetNamespace="http://localhost:8080/helloworldws/services/HelloWorldService"
>>> xmlns="http://schemas.xmlsoap.org/wsdl/"
>>> xmlns:apachesoap="http://xml.apache.org/xml-soap"
>>> xmlns:impl="http://localhost:8080/helloworldws/services/HelloWorldService"
>>> xmlns:intf="http://localhost:8080/helloworldws/services/HelloWorldService"
>>> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
>>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>>> <wsdl:types/>
>>>   <wsdl:message name="echoResponse">
>>>     <wsdl:part name="echoReturn" type="xsd:string"/>
>>>   </wsdl:message>
>>>   <wsdl:message name="echoRequest">
>>>   </wsdl:message>
>>>   <wsdl:portType name="HelloWorldService">
>>>     <wsdl:operation name="echo">
>>>       <wsdl:input message="impl:echoRequest" name="echoRequest"/>
>>>       <wsdl:output message="impl:echoResponse" name="echoResponse"/>
>>>     </wsdl:operation>
>>>   </wsdl:portType>
>>>   <wsdl:binding name="HelloWorldServiceSoapBinding"
>>> type="impl:HelloWorldService">
>>>     <wsdlsoap:binding style="rpc"
>>> transport="http://schemas.xmlsoap.org/soap/http"/>
>>>     <wsdl:operation name="echo">
>>>       <wsdlsoap:operation soapAction=""/>
>>>       <wsdl:input name="echoRequest">
>>>         <wsdlsoap:body
>>> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>>> namespace="http://localhost:8080/helloworldws/services/HelloWorldService"
>>> use="encoded"/>
>>>       </wsdl:input>
>>>       <wsdl:output name="echoResponse">
>>>         <wsdlsoap:body
>>> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>>> namespace="http://localhost:8080/helloworldws/services/HelloWorldService"
>>> use="encoded"/>
>>>       </wsdl:output>
>>>     </wsdl:operation>
>>>   </wsdl:binding>
>>>   <wsdl:service name="HelloWorldServiceService">
>>>     <wsdl:port binding="impl:HelloWorldServiceSoapBinding"
>>> name="HelloWorldService">
>>>       <wsdlsoap:address
>>> location="http://localhost:8080/helloworldws/services/HelloWorldService"/>
>>>     </wsdl:port>
>>>   </wsdl:service>
>>> </wsdl:definitions>
>>> 
>>> Then you have to define an http-component provider with this xbean.xml :
>>> 
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <beans
>>>         xmlns:http="http://servicemix.apache.org/http/1.0"
>>>        
>>> xmlns:ns1="http://localhost:8080/helloworldws/services/HelloWorldService"
>>>>
>>> <http:endpoint
>>>         service="ns1:HelloWorldServiceService"
>>>         endpoint="HelloWorldService"
>>>         role="provider"
>>>        
>>> locationURI="http://localhost:8080/helloworldws/services/HelloWorldService"
>>>        
>>> wsdlResource="http://localhost:8080/helloworldws/services/HelloWorldService?wsdl"
>>> />
>>> </beans>
>>> 
>>> where
>>> - ns1 : must match namespaces in wsdl
>>> - service : must match value of attribute name of element wsdl:service
>>> in wsdl
>>>   <wsdl:service name="HelloWorldServiceService">
>>> - endpoint : must match value of attribute name of element wsdl:port
>>>     <wsdl:port binding="impl:HelloWorldServiceSoapBinding"
>>> name="HelloWorldService">
>>> 
>>> Now you have to define http-component consumer with this xbean.xml :
>>> 
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <beans
>>>         xmlns:http="http://servicemix.apache.org/http/1.0"
>>>        
>>> xmlns:ns1="http://localhost:8080/helloworldws/services/HelloWorldService"
>>>>
>>> <http:endpoint
>>>         service="ns1:HelloWorldServiceConsumer"
>>>         endpoint="HelloWorldEndpointConsumer"
>>>         role="consumer"
>>>         targetService="ns1:HelloWorldServiceService"
>>>         locationURI="http://localhost:8192/services/HelloWorldService/"
>>>         defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>> />
>>> </beans>
>>> 
>>> where
>>> - ns1 : must match namespaces in wsdl
>>> - targetService : must match service value in xbean.xml of provider
>>> <http:endpoint
>>>         service="ns1:HelloWorldServiceService"
>>>         endpoint="HelloWorldService"
>>>         role="provider"
>>> 
>>> And this is the jbi.xml of Service Assembly :
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
>>>   <service-assembly>
>>>     <identification>
>>>       <name>helloworld-sa</name>
>>>       <description>Codices :: HelloWorld :: SA</description>
>>>     </identification>
>>>     <service-unit>
>>>       <identification>
>>>         <name>http-su-provider</name>
>>>         <description>Http BC provider</description>
>>>       </identification>
>>>       <target>
>>>         <artifacts-zip>http-su-provider.zip</artifacts-zip>
>>>         <component-name>servicemix-http</component-name>
>>>       </target>
>>>     </service-unit>
>>>     <service-unit>
>>>       <identification>
>>>         <name>http-su-consumer</name>
>>>         <description>Http BC consumer</description>
>>>       </identification>
>>>       <target>
>>>         <artifacts-zip>http-su-consumer.zip</artifacts-zip>
>>>         <component-name>servicemix-http</component-name>
>>>       </target>
>>>     </service-unit>
>>>   </service-assembly>
>>> </jbi>
>>> 
>>> That's all folks
>>> 
>>> This is the source  http://www.nabble.com/file/5642/helloworld-sa.zip
>>> helloworld-sa.zip 
>>> 
>>> Massimo
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Expose-external-web-service-with-http-component-%28very-simplified%29-tf3014055s12049.html#a8402872
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Expose external web service with http-component (very simplified)

Posted by zul <mu...@hotmail.com>.
Hi,
How do you call the web service? In which directory do you put the stub
classes?
Thanks in advance.


pascale4 wrote:
> 
> The web service exposed is deployed in tomcat 4.1.29 with axis.
> To call the web service I have generated stub class (java class) with
> Axis, but unfortunately I have a little problem with WSDL generated by
> service mix. It seems WSDL is not generated correctly. As you can see at
> this link 
> http://www.nabble.com/forum/ViewPost.jtp?post=8369564&framed=y&skin=12049
> http://www.nabble.com/forum/ViewPost.jtp?post=8369564&framed=y&skin=12049 
> 
> I will notice when I solve the problem.
> 
> Massimo
> 
> 
> beyond30lyc wrote:
>> 
>> Thank you very much! I am looking for this method for a whole day,but
>> have you used this method to integrate the .NET external web service?
>> And i think that when we call a web service,we have to generate a proxy
>> first,when we do this, Shall we generate sources first,or this will be
>> done automaticaly when we call the service.
>> Wishing for your help! 
>> 
>> pascale4 wrote:
>>> 
>>> Hi,
>>> after a lot of test I learnt how to expose an external web service
>>> through http-component.
>>> 
>>> Suppose you have a web service with this wsdl :
>>> 
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <wsdl:definitions
>>> targetNamespace="http://localhost:8080/helloworldws/services/HelloWorldService"
>>> xmlns="http://schemas.xmlsoap.org/wsdl/"
>>> xmlns:apachesoap="http://xml.apache.org/xml-soap"
>>> xmlns:impl="http://localhost:8080/helloworldws/services/HelloWorldService"
>>> xmlns:intf="http://localhost:8080/helloworldws/services/HelloWorldService"
>>> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
>>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>>> <wsdl:types/>
>>>   <wsdl:message name="echoResponse">
>>>     <wsdl:part name="echoReturn" type="xsd:string"/>
>>>   </wsdl:message>
>>>   <wsdl:message name="echoRequest">
>>>   </wsdl:message>
>>>   <wsdl:portType name="HelloWorldService">
>>>     <wsdl:operation name="echo">
>>>       <wsdl:input message="impl:echoRequest" name="echoRequest"/>
>>>       <wsdl:output message="impl:echoResponse" name="echoResponse"/>
>>>     </wsdl:operation>
>>>   </wsdl:portType>
>>>   <wsdl:binding name="HelloWorldServiceSoapBinding"
>>> type="impl:HelloWorldService">
>>>     <wsdlsoap:binding style="rpc"
>>> transport="http://schemas.xmlsoap.org/soap/http"/>
>>>     <wsdl:operation name="echo">
>>>       <wsdlsoap:operation soapAction=""/>
>>>       <wsdl:input name="echoRequest">
>>>         <wsdlsoap:body
>>> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>>> namespace="http://localhost:8080/helloworldws/services/HelloWorldService"
>>> use="encoded"/>
>>>       </wsdl:input>
>>>       <wsdl:output name="echoResponse">
>>>         <wsdlsoap:body
>>> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>>> namespace="http://localhost:8080/helloworldws/services/HelloWorldService"
>>> use="encoded"/>
>>>       </wsdl:output>
>>>     </wsdl:operation>
>>>   </wsdl:binding>
>>>   <wsdl:service name="HelloWorldServiceService">
>>>     <wsdl:port binding="impl:HelloWorldServiceSoapBinding"
>>> name="HelloWorldService">
>>>       <wsdlsoap:address
>>> location="http://localhost:8080/helloworldws/services/HelloWorldService"/>
>>>     </wsdl:port>
>>>   </wsdl:service>
>>> </wsdl:definitions>
>>> 
>>> Then you have to define an http-component provider with this xbean.xml :
>>> 
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <beans
>>>         xmlns:http="http://servicemix.apache.org/http/1.0"
>>>        
>>> xmlns:ns1="http://localhost:8080/helloworldws/services/HelloWorldService"
>>>>
>>> <http:endpoint
>>>         service="ns1:HelloWorldServiceService"
>>>         endpoint="HelloWorldService"
>>>         role="provider"
>>>        
>>> locationURI="http://localhost:8080/helloworldws/services/HelloWorldService"
>>>        
>>> wsdlResource="http://localhost:8080/helloworldws/services/HelloWorldService?wsdl"
>>> />
>>> </beans>
>>> 
>>> where
>>> - ns1 : must match namespaces in wsdl
>>> - service : must match value of attribute name of element wsdl:service
>>> in wsdl
>>>   <wsdl:service name="HelloWorldServiceService">
>>> - endpoint : must match value of attribute name of element wsdl:port
>>>     <wsdl:port binding="impl:HelloWorldServiceSoapBinding"
>>> name="HelloWorldService">
>>> 
>>> Now you have to define http-component consumer with this xbean.xml :
>>> 
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <beans
>>>         xmlns:http="http://servicemix.apache.org/http/1.0"
>>>        
>>> xmlns:ns1="http://localhost:8080/helloworldws/services/HelloWorldService"
>>>>
>>> <http:endpoint
>>>         service="ns1:HelloWorldServiceConsumer"
>>>         endpoint="HelloWorldEndpointConsumer"
>>>         role="consumer"
>>>         targetService="ns1:HelloWorldServiceService"
>>>         locationURI="http://localhost:8192/services/HelloWorldService/"
>>>         defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>> />
>>> </beans>
>>> 
>>> where
>>> - ns1 : must match namespaces in wsdl
>>> - targetService : must match service value in xbean.xml of provider
>>> <http:endpoint
>>>         service="ns1:HelloWorldServiceService"
>>>         endpoint="HelloWorldService"
>>>         role="provider"
>>> 
>>> And this is the jbi.xml of Service Assembly :
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
>>>   <service-assembly>
>>>     <identification>
>>>       <name>helloworld-sa</name>
>>>       <description>Codices :: HelloWorld :: SA</description>
>>>     </identification>
>>>     <service-unit>
>>>       <identification>
>>>         <name>http-su-provider</name>
>>>         <description>Http BC provider</description>
>>>       </identification>
>>>       <target>
>>>         <artifacts-zip>http-su-provider.zip</artifacts-zip>
>>>         <component-name>servicemix-http</component-name>
>>>       </target>
>>>     </service-unit>
>>>     <service-unit>
>>>       <identification>
>>>         <name>http-su-consumer</name>
>>>         <description>Http BC consumer</description>
>>>       </identification>
>>>       <target>
>>>         <artifacts-zip>http-su-consumer.zip</artifacts-zip>
>>>         <component-name>servicemix-http</component-name>
>>>       </target>
>>>     </service-unit>
>>>   </service-assembly>
>>> </jbi>
>>> 
>>> That's all folks
>>> 
>>> This is the source  http://www.nabble.com/file/5642/helloworld-sa.zip
>>> helloworld-sa.zip 
>>> 
>>> Massimo
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Expose-external-web-service-with-http-component-%28very-simplified%29-tf3014055s12049.html#a8385708
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Expose external web service with http-component (very simplified)

Posted by pascale4 <pa...@inwind.it>.
The web service exposed is deployed in tomcat 4.1.29 with axis.
To call the web service I have generated stub class (java class) with Axis,
but unfortunately I have a little problem with WSDL generated by service
mix. It seems WSDL is not generated correctly. As you can see at this link 
http://www.nabble.com/forum/ViewPost.jtp?post=8369564&framed=y&skin=12049
http://www.nabble.com/forum/ViewPost.jtp?post=8369564&framed=y&skin=12049 

I will notice when I solve the problem.

Massimo


beyond30lyc wrote:
> 
> Thank you very much! I am looking for this method for a whole day,but have
> you used this method to integrate the .NET external web service?
> And i think that when we call a web service,we have to generate a proxy
> first,when we do this, Shall we generate sources first,or this will be
> done automaticaly when we call the service.
> Wishing for your help! 
> 
> pascale4 wrote:
>> 
>> Hi,
>> after a lot of test I learnt how to expose an external web service
>> through http-component.
>> 
>> Suppose you have a web service with this wsdl :
>> 
>> <?xml version="1.0" encoding="UTF-8"?>
>> <wsdl:definitions
>> targetNamespace="http://localhost:8080/helloworldws/services/HelloWorldService"
>> xmlns="http://schemas.xmlsoap.org/wsdl/"
>> xmlns:apachesoap="http://xml.apache.org/xml-soap"
>> xmlns:impl="http://localhost:8080/helloworldws/services/HelloWorldService"
>> xmlns:intf="http://localhost:8080/helloworldws/services/HelloWorldService"
>> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>> <wsdl:types/>
>>   <wsdl:message name="echoResponse">
>>     <wsdl:part name="echoReturn" type="xsd:string"/>
>>   </wsdl:message>
>>   <wsdl:message name="echoRequest">
>>   </wsdl:message>
>>   <wsdl:portType name="HelloWorldService">
>>     <wsdl:operation name="echo">
>>       <wsdl:input message="impl:echoRequest" name="echoRequest"/>
>>       <wsdl:output message="impl:echoResponse" name="echoResponse"/>
>>     </wsdl:operation>
>>   </wsdl:portType>
>>   <wsdl:binding name="HelloWorldServiceSoapBinding"
>> type="impl:HelloWorldService">
>>     <wsdlsoap:binding style="rpc"
>> transport="http://schemas.xmlsoap.org/soap/http"/>
>>     <wsdl:operation name="echo">
>>       <wsdlsoap:operation soapAction=""/>
>>       <wsdl:input name="echoRequest">
>>         <wsdlsoap:body
>> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>> namespace="http://localhost:8080/helloworldws/services/HelloWorldService"
>> use="encoded"/>
>>       </wsdl:input>
>>       <wsdl:output name="echoResponse">
>>         <wsdlsoap:body
>> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>> namespace="http://localhost:8080/helloworldws/services/HelloWorldService"
>> use="encoded"/>
>>       </wsdl:output>
>>     </wsdl:operation>
>>   </wsdl:binding>
>>   <wsdl:service name="HelloWorldServiceService">
>>     <wsdl:port binding="impl:HelloWorldServiceSoapBinding"
>> name="HelloWorldService">
>>       <wsdlsoap:address
>> location="http://localhost:8080/helloworldws/services/HelloWorldService"/>
>>     </wsdl:port>
>>   </wsdl:service>
>> </wsdl:definitions>
>> 
>> Then you have to define an http-component provider with this xbean.xml :
>> 
>> <?xml version="1.0" encoding="UTF-8"?>
>> <beans
>>         xmlns:http="http://servicemix.apache.org/http/1.0"
>>        
>> xmlns:ns1="http://localhost:8080/helloworldws/services/HelloWorldService"
>>>
>> <http:endpoint
>>         service="ns1:HelloWorldServiceService"
>>         endpoint="HelloWorldService"
>>         role="provider"
>>        
>> locationURI="http://localhost:8080/helloworldws/services/HelloWorldService"
>>        
>> wsdlResource="http://localhost:8080/helloworldws/services/HelloWorldService?wsdl"
>> />
>> </beans>
>> 
>> where
>> - ns1 : must match namespaces in wsdl
>> - service : must match value of attribute name of element wsdl:service in
>> wsdl
>>   <wsdl:service name="HelloWorldServiceService">
>> - endpoint : must match value of attribute name of element wsdl:port
>>     <wsdl:port binding="impl:HelloWorldServiceSoapBinding"
>> name="HelloWorldService">
>> 
>> Now you have to define http-component consumer with this xbean.xml :
>> 
>> <?xml version="1.0" encoding="UTF-8"?>
>> <beans
>>         xmlns:http="http://servicemix.apache.org/http/1.0"
>>        
>> xmlns:ns1="http://localhost:8080/helloworldws/services/HelloWorldService"
>>>
>> <http:endpoint
>>         service="ns1:HelloWorldServiceConsumer"
>>         endpoint="HelloWorldEndpointConsumer"
>>         role="consumer"
>>         targetService="ns1:HelloWorldServiceService"
>>         locationURI="http://localhost:8192/services/HelloWorldService/"
>>         defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>> />
>> </beans>
>> 
>> where
>> - ns1 : must match namespaces in wsdl
>> - targetService : must match service value in xbean.xml of provider
>> <http:endpoint
>>         service="ns1:HelloWorldServiceService"
>>         endpoint="HelloWorldService"
>>         role="provider"
>> 
>> And this is the jbi.xml of Service Assembly :
>> <?xml version="1.0" encoding="UTF-8"?>
>> <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
>>   <service-assembly>
>>     <identification>
>>       <name>helloworld-sa</name>
>>       <description>Codices :: HelloWorld :: SA</description>
>>     </identification>
>>     <service-unit>
>>       <identification>
>>         <name>http-su-provider</name>
>>         <description>Http BC provider</description>
>>       </identification>
>>       <target>
>>         <artifacts-zip>http-su-provider.zip</artifacts-zip>
>>         <component-name>servicemix-http</component-name>
>>       </target>
>>     </service-unit>
>>     <service-unit>
>>       <identification>
>>         <name>http-su-consumer</name>
>>         <description>Http BC consumer</description>
>>       </identification>
>>       <target>
>>         <artifacts-zip>http-su-consumer.zip</artifacts-zip>
>>         <component-name>servicemix-http</component-name>
>>       </target>
>>     </service-unit>
>>   </service-assembly>
>> </jbi>
>> 
>> That's all folks
>> 
>> This is the source  http://www.nabble.com/file/5642/helloworld-sa.zip
>> helloworld-sa.zip 
>> 
>> Massimo
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Expose-external-web-service-with-http-component-%28very-simplified%29-tf3014055s12049.html#a8371023
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Expose external web service with http-component (very simplified)

Posted by beyond30lyc <be...@163.com>.
Thank you very much! I am looking for this method for a whole day,but have
you used this method to integrate the .NET external web service?
And i think that when we call a web service,we have to generate a proxy
first,when we do this, Shall we generate sources first,or this will be done
automaticaly when we call the service.
Wishing for your help! 

pascale4 wrote:
> 
> Hi,
> after a lot of test I learnt how to expose an external web service through
> http-component.
> 
> Suppose you have a web service with this wsdl :
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions
> targetNamespace="http://localhost:8080/helloworldws/services/HelloWorldService"
> xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:impl="http://localhost:8080/helloworldws/services/HelloWorldService"
> xmlns:intf="http://localhost:8080/helloworldws/services/HelloWorldService"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <wsdl:types/>
>   <wsdl:message name="echoResponse">
>     <wsdl:part name="echoReturn" type="xsd:string"/>
>   </wsdl:message>
>   <wsdl:message name="echoRequest">
>   </wsdl:message>
>   <wsdl:portType name="HelloWorldService">
>     <wsdl:operation name="echo">
>       <wsdl:input message="impl:echoRequest" name="echoRequest"/>
>       <wsdl:output message="impl:echoResponse" name="echoResponse"/>
>     </wsdl:operation>
>   </wsdl:portType>
>   <wsdl:binding name="HelloWorldServiceSoapBinding"
> type="impl:HelloWorldService">
>     <wsdlsoap:binding style="rpc"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>     <wsdl:operation name="echo">
>       <wsdlsoap:operation soapAction=""/>
>       <wsdl:input name="echoRequest">
>         <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://localhost:8080/helloworldws/services/HelloWorldService"
> use="encoded"/>
>       </wsdl:input>
>       <wsdl:output name="echoResponse">
>         <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://localhost:8080/helloworldws/services/HelloWorldService"
> use="encoded"/>
>       </wsdl:output>
>     </wsdl:operation>
>   </wsdl:binding>
>   <wsdl:service name="HelloWorldServiceService">
>     <wsdl:port binding="impl:HelloWorldServiceSoapBinding"
> name="HelloWorldService">
>       <wsdlsoap:address
> location="http://localhost:8080/helloworldws/services/HelloWorldService"/>
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> 
> Then you have to define an http-component provider with this xbean.xml :
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans
>         xmlns:http="http://servicemix.apache.org/http/1.0"
>        
> xmlns:ns1="http://localhost:8080/helloworldws/services/HelloWorldService"
>>
> <http:endpoint
>         service="ns1:HelloWorldServiceService"
>         endpoint="HelloWorldService"
>         role="provider"
>        
> locationURI="http://localhost:8080/helloworldws/services/HelloWorldService"
>        
> wsdlResource="http://localhost:8080/helloworldws/services/HelloWorldService?wsdl"
> />
> </beans>
> 
> where
> - ns1 : must match namespaces in wsdl
> - service : must match value of attribute name of element wsdl:service in
> wsdl
>   <wsdl:service name="HelloWorldServiceService">
> - endpoint : must match value of attribute name of element wsdl:port
>     <wsdl:port binding="impl:HelloWorldServiceSoapBinding"
> name="HelloWorldService">
> 
> Now you have to define http-component consumer with this xbean.xml :
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans
>         xmlns:http="http://servicemix.apache.org/http/1.0"
>        
> xmlns:ns1="http://localhost:8080/helloworldws/services/HelloWorldService"
>>
> <http:endpoint
>         service="ns1:HelloWorldServiceConsumer"
>         endpoint="HelloWorldEndpointConsumer"
>         role="consumer"
>         targetService="ns1:HelloWorldServiceService"
>         locationURI="http://localhost:8192/services/HelloWorldService/"
>         defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> />
> </beans>
> 
> where
> - ns1 : must match namespaces in wsdl
> - targetService : must match service value in xbean.xml of provider
> <http:endpoint
>         service="ns1:HelloWorldServiceService"
>         endpoint="HelloWorldService"
>         role="provider"
> 
> And this is the jbi.xml of Service Assembly :
> <?xml version="1.0" encoding="UTF-8"?>
> <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
>   <service-assembly>
>     <identification>
>       <name>helloworld-sa</name>
>       <description>Codices :: HelloWorld :: SA</description>
>     </identification>
>     <service-unit>
>       <identification>
>         <name>http-su-provider</name>
>         <description>Http BC provider</description>
>       </identification>
>       <target>
>         <artifacts-zip>http-su-provider.zip</artifacts-zip>
>         <component-name>servicemix-http</component-name>
>       </target>
>     </service-unit>
>     <service-unit>
>       <identification>
>         <name>http-su-consumer</name>
>         <description>Http BC consumer</description>
>       </identification>
>       <target>
>         <artifacts-zip>http-su-consumer.zip</artifacts-zip>
>         <component-name>servicemix-http</component-name>
>       </target>
>     </service-unit>
>   </service-assembly>
> </jbi>
> 
> That's all folks
> 
> This is the source  http://www.nabble.com/file/5642/helloworld-sa.zip
> helloworld-sa.zip 
> 
> Massimo
> 

-- 
View this message in context: http://www.nabble.com/Expose-external-web-service-with-http-component-%28very-simplified%29-tf3014055s12049.html#a8370867
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Expose external web service with http-component (very simplified)

Posted by pascale4 <pa...@inwind.it>.
How do you deploy service assembly? With maven?
I don't use maven but I start servicemix (cd $SERViCEMIX_HOME;
./bin/servicemix) and I copy serviceassembly.zip in $SERViCEMIX_HOME/deploy
directory.

Can you attach your service assembly zip?


beyond30lyc wrote:
> 
> Hello,i want to expose .NET external web service to the jbi using your
> method.my http consumer project is named external-service-consumer,and the
> http provider is named external-service-provider,the assembly is named
> external-service-assembly.
> I have already installed the consumer and the provider.but when i deploy
> the assembly,an error occurs as below:
> [ERROR] mojo-execute : jbi:generate-jbi-service-assembly-descriptor
> Diagnosis: The service unit external-service-http-provider does not have a
> dependency which is packaged as a jbi-component or a project property
> 'componentName'
> FATAL ERROR: Error executing Maven for a project
> [ERROR] project-execute :
> com.mycompany:external-service-assembly:jbi-service-assembly:1.0-SNAPSHOT
> (  task-segment: [install, jbi:projectDeploy] )
> Diagnosis: The service unit external-service-http-provider does not have a
> dependency which is packaged as a jbi-component or a project property
> 'componentName'
> FATAL ERROR: Error executing Maven for a project
> [INFO] jbi:projectDeploy
> [INFO] snapshot com.mycompany:external-service-assembly:1.0-SNAPSHOT:
> checking for updates from logicblaze
> [INFO] ------------------ Deployment Analysis --------------------
> [INFO] A custom project has 2 child dependencies
> [INFO]  - jbi-service-assembly : C:\Documents and
> Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
> [INFO]  - jbi-component : C:\Documents and
> Settings\Owner\.m2\repository\org\apache\servicemix\servicemix-http\fuse-3.0.1\servicemix-http-fuse-3.0.1-installer.zip
> [INFO]  - jbi-shared-library : C:\Documents and
> Settings\Owner\.m2\repository\org\apache\servicemix\servicemix-shared\fuse-3.0.1\servicemix-shared-fuse-3.0.1-installer.zip
> [INFO] -----------------------------------------------------------
> [INFO] external-service-assembly is deployed
> [INFO] Stopping external-service-assembly
> [INFO] Undeploying C:\Documents and
> Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
> [INFO] Deploying jbi-service-assembly from C:\Documents and
> Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
> [INFO] Starting external-service-assembly
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Total time: 206 second
> [INFO] Finished at: Tue Jan 16 16:52:38 CST 2007
> [INFO] Memory 10M/24M
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Error for project: A custom project (during install)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The service unit external-service-http-provider does not have a
> dependency which is packaged as a jbi-component or a project property
> 'componentName'
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace The service unit external-service-http-provider does not have
> a dependency which is packaged as a jbi-component or a project property
> 'componentName'
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] reactor-execute : D:\TOOLS\DEVELOPING
> TOOLS\eclipse\eclipse2\eclipse\workspace\external-service-assembly
> FATAL ERROR: Error executing Maven for a project
> [INFO] BUILD ERRORS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5 minutes 4 seconds
> [INFO] Finished at: Tue Jan 16 16:52:38 CST 2007
> [INFO] Final Memory: 10M/24M
> [INFO]
> ------------------------------------------------------------------------
> Exception in thread "main" java.lang.RuntimeException: Apache Maven build
> exception [Some builds failed]
> 	at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:110)
> Caused by: org.apache.maven.reactor.MavenExecutionException: Some builds
> failed
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:210)
> 	at
> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:690)
> 	at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:107)
> 
> 
> pascale4 wrote:
>> 
>> Hi,
>> after a lot of test I learnt how to expose an external web service
>> through http-component.
>> 
>> Suppose you have a web service with this wsdl :
>> 
>> <?xml version="1.0" encoding="UTF-8"?>
>> <wsdl:definitions
>> targetNamespace="http://localhost:8080/helloworldws/services/HelloWorldService"
>> xmlns="http://schemas.xmlsoap.org/wsdl/"
>> xmlns:apachesoap="http://xml.apache.org/xml-soap"
>> xmlns:impl="http://localhost:8080/helloworldws/services/HelloWorldService"
>> xmlns:intf="http://localhost:8080/helloworldws/services/HelloWorldService"
>> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>> <wsdl:types/>
>>   <wsdl:message name="echoResponse">
>>     <wsdl:part name="echoReturn" type="xsd:string"/>
>>   </wsdl:message>
>>   <wsdl:message name="echoRequest">
>>   </wsdl:message>
>>   <wsdl:portType name="HelloWorldService">
>>     <wsdl:operation name="echo">
>>       <wsdl:input message="impl:echoRequest" name="echoRequest"/>
>>       <wsdl:output message="impl:echoResponse" name="echoResponse"/>
>>     </wsdl:operation>
>>   </wsdl:portType>
>>   <wsdl:binding name="HelloWorldServiceSoapBinding"
>> type="impl:HelloWorldService">
>>     <wsdlsoap:binding style="rpc"
>> transport="http://schemas.xmlsoap.org/soap/http"/>
>>     <wsdl:operation name="echo">
>>       <wsdlsoap:operation soapAction=""/>
>>       <wsdl:input name="echoRequest">
>>         <wsdlsoap:body
>> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>> namespace="http://localhost:8080/helloworldws/services/HelloWorldService"
>> use="encoded"/>
>>       </wsdl:input>
>>       <wsdl:output name="echoResponse">
>>         <wsdlsoap:body
>> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>> namespace="http://localhost:8080/helloworldws/services/HelloWorldService"
>> use="encoded"/>
>>       </wsdl:output>
>>     </wsdl:operation>
>>   </wsdl:binding>
>>   <wsdl:service name="HelloWorldServiceService">
>>     <wsdl:port binding="impl:HelloWorldServiceSoapBinding"
>> name="HelloWorldService">
>>       <wsdlsoap:address
>> location="http://localhost:8080/helloworldws/services/HelloWorldService"/>
>>     </wsdl:port>
>>   </wsdl:service>
>> </wsdl:definitions>
>> 
>> Then you have to define an http-component provider with this xbean.xml :
>> 
>> <?xml version="1.0" encoding="UTF-8"?>
>> <beans
>>         xmlns:http="http://servicemix.apache.org/http/1.0"
>>        
>> xmlns:ns1="http://localhost:8080/helloworldws/services/HelloWorldService"
>>>
>> <http:endpoint
>>         service="ns1:HelloWorldServiceService"
>>         endpoint="HelloWorldService"
>>         role="provider"
>>        
>> locationURI="http://localhost:8080/helloworldws/services/HelloWorldService"
>>        
>> wsdlResource="http://localhost:8080/helloworldws/services/HelloWorldService?wsdl"
>> />
>> </beans>
>> 
>> where
>> - ns1 : must match namespaces in wsdl
>> - service : must match value of attribute name of element wsdl:service in
>> wsdl
>>   <wsdl:service name="HelloWorldServiceService">
>> - endpoint : must match value of attribute name of element wsdl:port
>>     <wsdl:port binding="impl:HelloWorldServiceSoapBinding"
>> name="HelloWorldService">
>> 
>> Now you have to define http-component consumer with this xbean.xml :
>> 
>> <?xml version="1.0" encoding="UTF-8"?>
>> <beans
>>         xmlns:http="http://servicemix.apache.org/http/1.0"
>>        
>> xmlns:ns1="http://localhost:8080/helloworldws/services/HelloWorldService"
>>>
>> <http:endpoint
>>         service="ns1:HelloWorldServiceConsumer"
>>         endpoint="HelloWorldEndpointConsumer"
>>         role="consumer"
>>         targetService="ns1:HelloWorldServiceService"
>>         locationURI="http://localhost:8192/services/HelloWorldService/"
>>         defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>> />
>> </beans>
>> 
>> where
>> - ns1 : must match namespaces in wsdl
>> - targetService : must match service value in xbean.xml of provider
>> <http:endpoint
>>         service="ns1:HelloWorldServiceService"
>>         endpoint="HelloWorldService"
>>         role="provider"
>> 
>> And this is the jbi.xml of Service Assembly :
>> <?xml version="1.0" encoding="UTF-8"?>
>> <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
>>   <service-assembly>
>>     <identification>
>>       <name>helloworld-sa</name>
>>       <description>Codices :: HelloWorld :: SA</description>
>>     </identification>
>>     <service-unit>
>>       <identification>
>>         <name>http-su-provider</name>
>>         <description>Http BC provider</description>
>>       </identification>
>>       <target>
>>         <artifacts-zip>http-su-provider.zip</artifacts-zip>
>>         <component-name>servicemix-http</component-name>
>>       </target>
>>     </service-unit>
>>     <service-unit>
>>       <identification>
>>         <name>http-su-consumer</name>
>>         <description>Http BC consumer</description>
>>       </identification>
>>       <target>
>>         <artifacts-zip>http-su-consumer.zip</artifacts-zip>
>>         <component-name>servicemix-http</component-name>
>>       </target>
>>     </service-unit>
>>   </service-assembly>
>> </jbi>
>> 
>> That's all folks
>> 
>> This is the source  http://www.nabble.com/file/5642/helloworld-sa.zip
>> helloworld-sa.zip 
>> 
>> Massimo
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Expose-external-web-service-with-http-component-%28very-simplified%29-tf3014055s12049.html#a8386775
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Expose external web service with http-component (very simplified)

Posted by beyond30lyc <be...@163.com>.
Thank you for your reply,yes i use maven in the fuse IDE,but i am sorry,my
service assembly zip
was not built successfully

pascale4 wrote:
> 
> How do you deploy service assembly? With maven?
> I don't use maven but I start servicemix (cd $SERViCEMIX_HOME;
> ./bin/servicemix) and I copy serviceassembly.zip in
> $SERViCEMIX_HOME/install directory.
> 
> Can you attach your service assembly zip?
> 
> 
> beyond30lyc wrote:
>> 
>> Hello,i want to expose .NET external web service to the jbi using your
>> method.my http consumer project is named external-service-consumer,and
>> the http provider is named external-service-provider,the assembly is
>> named external-service-assembly.
>> I have already installed the consumer and the provider.but when i deploy
>> the assembly,an error occurs as below:
>> [ERROR] mojo-execute : jbi:generate-jbi-service-assembly-descriptor
>> Diagnosis: The service unit external-service-http-provider does not have
>> a dependency which is packaged as a jbi-component or a project property
>> 'componentName'
>> FATAL ERROR: Error executing Maven for a project
>> [ERROR] project-execute :
>> com.mycompany:external-service-assembly:jbi-service-assembly:1.0-SNAPSHOT
>> (  task-segment: [install, jbi:projectDeploy] )
>> Diagnosis: The service unit external-service-http-provider does not have
>> a dependency which is packaged as a jbi-component or a project property
>> 'componentName'
>> FATAL ERROR: Error executing Maven for a project
>> [INFO] jbi:projectDeploy
>> [INFO] snapshot com.mycompany:external-service-assembly:1.0-SNAPSHOT:
>> checking for updates from logicblaze
>> [INFO] ------------------ Deployment Analysis --------------------
>> [INFO] A custom project has 2 child dependencies
>> [INFO]  - jbi-service-assembly : C:\Documents and
>> Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
>> [INFO]  - jbi-component : C:\Documents and
>> Settings\Owner\.m2\repository\org\apache\servicemix\servicemix-http\fuse-3.0.1\servicemix-http-fuse-3.0.1-installer.zip
>> [INFO]  - jbi-shared-library : C:\Documents and
>> Settings\Owner\.m2\repository\org\apache\servicemix\servicemix-shared\fuse-3.0.1\servicemix-shared-fuse-3.0.1-installer.zip
>> [INFO] -----------------------------------------------------------
>> [INFO] external-service-assembly is deployed
>> [INFO] Stopping external-service-assembly
>> [INFO] Undeploying C:\Documents and
>> Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
>> [INFO] Deploying jbi-service-assembly from C:\Documents and
>> Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
>> [INFO] Starting external-service-assembly
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] BUILD SUCCESSFUL
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] Total time: 206 second
>> [INFO] Finished at: Tue Jan 16 16:52:38 CST 2007
>> [INFO] Memory 10M/24M
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] Error for project: A custom project (during install)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The service unit external-service-http-provider does not have a
>> dependency which is packaged as a jbi-component or a project property
>> 'componentName'
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace The service unit external-service-http-provider does not
>> have a dependency which is packaged as a jbi-component or a project
>> property 'componentName'
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] reactor-execute : D:\TOOLS\DEVELOPING
>> TOOLS\eclipse\eclipse2\eclipse\workspace\external-service-assembly
>> FATAL ERROR: Error executing Maven for a project
>> [INFO] BUILD ERRORS
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 5 minutes 4 seconds
>> [INFO] Finished at: Tue Jan 16 16:52:38 CST 2007
>> [INFO] Final Memory: 10M/24M
>> [INFO]
>> ------------------------------------------------------------------------
>> Exception in thread "main" java.lang.RuntimeException: Apache Maven build
>> exception [Some builds failed]
>> 	at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:110)
>> Caused by: org.apache.maven.reactor.MavenExecutionException: Some builds
>> failed
>> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:210)
>> 	at
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:690)
>> 	at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:107)
>> 
> 

-- 
View this message in context: http://www.nabble.com/Expose-external-web-service-with-http-component-%28very-simplified%29-tf3014055s12049.html#a8388362
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Expose external web service with http-component (very simplified)

Posted by pascale4 <pa...@inwind.it>.
How do you deploy service assembly? With maven?
I don't use maven but I start servicemix (cd $SERViCEMIX_HOME;
./bin/servicemix) and I copy serviceassembly.zip in $SERViCEMIX_HOME/install
directory.

Can you attach your service assembly zip?


beyond30lyc wrote:
> 
> Hello,i want to expose .NET external web service to the jbi using your
> method.my http consumer project is named external-service-consumer,and the
> http provider is named external-service-provider,the assembly is named
> external-service-assembly.
> I have already installed the consumer and the provider.but when i deploy
> the assembly,an error occurs as below:
> [ERROR] mojo-execute : jbi:generate-jbi-service-assembly-descriptor
> Diagnosis: The service unit external-service-http-provider does not have a
> dependency which is packaged as a jbi-component or a project property
> 'componentName'
> FATAL ERROR: Error executing Maven for a project
> [ERROR] project-execute :
> com.mycompany:external-service-assembly:jbi-service-assembly:1.0-SNAPSHOT
> (  task-segment: [install, jbi:projectDeploy] )
> Diagnosis: The service unit external-service-http-provider does not have a
> dependency which is packaged as a jbi-component or a project property
> 'componentName'
> FATAL ERROR: Error executing Maven for a project
> [INFO] jbi:projectDeploy
> [INFO] snapshot com.mycompany:external-service-assembly:1.0-SNAPSHOT:
> checking for updates from logicblaze
> [INFO] ------------------ Deployment Analysis --------------------
> [INFO] A custom project has 2 child dependencies
> [INFO]  - jbi-service-assembly : C:\Documents and
> Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
> [INFO]  - jbi-component : C:\Documents and
> Settings\Owner\.m2\repository\org\apache\servicemix\servicemix-http\fuse-3.0.1\servicemix-http-fuse-3.0.1-installer.zip
> [INFO]  - jbi-shared-library : C:\Documents and
> Settings\Owner\.m2\repository\org\apache\servicemix\servicemix-shared\fuse-3.0.1\servicemix-shared-fuse-3.0.1-installer.zip
> [INFO] -----------------------------------------------------------
> [INFO] external-service-assembly is deployed
> [INFO] Stopping external-service-assembly
> [INFO] Undeploying C:\Documents and
> Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
> [INFO] Deploying jbi-service-assembly from C:\Documents and
> Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
> [INFO] Starting external-service-assembly
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Total time: 206 second
> [INFO] Finished at: Tue Jan 16 16:52:38 CST 2007
> [INFO] Memory 10M/24M
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Error for project: A custom project (during install)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The service unit external-service-http-provider does not have a
> dependency which is packaged as a jbi-component or a project property
> 'componentName'
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace The service unit external-service-http-provider does not have
> a dependency which is packaged as a jbi-component or a project property
> 'componentName'
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] reactor-execute : D:\TOOLS\DEVELOPING
> TOOLS\eclipse\eclipse2\eclipse\workspace\external-service-assembly
> FATAL ERROR: Error executing Maven for a project
> [INFO] BUILD ERRORS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5 minutes 4 seconds
> [INFO] Finished at: Tue Jan 16 16:52:38 CST 2007
> [INFO] Final Memory: 10M/24M
> [INFO]
> ------------------------------------------------------------------------
> Exception in thread "main" java.lang.RuntimeException: Apache Maven build
> exception [Some builds failed]
> 	at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:110)
> Caused by: org.apache.maven.reactor.MavenExecutionException: Some builds
> failed
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:210)
> 	at
> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:690)
> 	at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:107)
> 
-- 
View this message in context: http://www.nabble.com/Expose-external-web-service-with-http-component-%28very-simplified%29-tf3014055s12049.html#a8387428
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Expose external web service with http-component (very simplified)

Posted by Bruce Snyder <br...@gmail.com>.
On 1/16/07, beyond30lyc <be...@163.com> wrote:
>
> Thank you!  but i have already done that,the pom.xml is like below:\
...
>   <dependencies>
>     <dependency>
>       <groupId>org.apache.servicemix</groupId>
>       <artifactId>servicemix-http</artifactId>
>       <version>fuse-3.0.1</version>
>     </dependency>
>   </dependencies>

Yep, the dependency is there.

> > [INFO] Generating jbi.xml
> > [INFO] Determining component name for service unit
> > external-service-http-consumer
> > [INFO] Project org.apache.maven.project.MavenProject@6830132e packaged
> > jbi-component
> > [INFO] Determining component name for service unit
> > external-service-http-provider2
> > [ERROR] mojo-execute : jbi:generate-jbi-service-assembly-descriptor
> > Diagnosis: The service unit external-service-http-provider2 does not have
> > a
> > dependency which is packaged as a jbi-component or a project property
> > 'componentName'
> > FATAL ERROR: Error executing Maven for a project
> > [ERROR] project-execute :
> > com.mycompany:external-service-assembly:jbi-service-assembly:1.0-SNAPSHOT
> > (
> > task-segment: [install, jbi:projectDeploy] )
> > Diagnosis: The service unit external-service-http-provider2 does not have
> > a
> > dependency which is packaged as a jbi-component or a project property
> > 'componentName'
> >
> > The error above indicates that there is no dependency on a JBI
> > component in the pom.xml file for the external-service-http-provider2
> > project. I gather that this project SU is for the servicemix-http
> > component, correct? If so, then the pom.xml file should list a
> > dependency on that component. Please post the pom.xml file for that
> > component.

But we can't deny the error that is occurring. Try to compile each
project individually from the command line using the following
command:

$ mvn clean install

If you don't have a top level POM with knowledge of all the SU and SA
projects, you will need to manually build each project in the proper
order - SUs first followed by SAs.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: Expose external web service with http-component (very simplified)

Posted by beyond30lyc <be...@163.com>.
Thank you!  but i have already done that,the pom.xml is like below:
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.mycompany</groupId>
  <artifactId>external-service-http-provider</artifactId>
  <packaging>jbi-service-unit</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>Service Unit</name>
  <url>http://www.myorganization.org</url>
  <pluginRepositories>
    <pluginRepository>
      <id>logicblaze</id>
      <name>LogicBlaze Repository</name>
      <url>http://repo.logicblaze.com/maven2-all/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
         <enabled>true</enabled>
      </releases>
    </pluginRepository>
  </pluginRepositories>
  <repositories>
    <repository>
      <id>logicblaze</id>
      <name>LogicBlaze Repository</name>
      <url>http://repo.logicblaze.com/maven2-all/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
         <enabled>true</enabled>
      </releases>
    </repository>
  </repositories>
	<properties>
	  <servicemix-version>fuse-3.0.1</servicemix-version>
	</properties>
  <dependencies>
    <dependency>
      <groupId>org.apache.servicemix</groupId>
      <artifactId>servicemix-http</artifactId>
      <version>fuse-3.0.1</version>   
    </dependency>
  </dependencies>
  <build>
  	<resources>
      <resource>
        <directory>src/main/resources</directory>
        <includes>
          <include>**/*</include>
        </includes>
      </resource>    
    </resources>
    <plugins>
      <plugin>
        <groupId>org.apache.servicemix.tooling</groupId>
        <artifactId>jbi-maven-plugin</artifactId>
        <version>${servicemix-version}</version>      
        <extensions>true</extensions>
        <configuration>
		<type>service-unit</type>
		<deployDependencies>false</deployDependencies>  
		</configuration>
      </plugin>     
    </plugins>
  </build>
</project>



bsnyder wrote:
> 
> On 1/16/07, beyond30lyc <be...@163.com> wrote:
>>
>> Thank you!Yes,the consumer and provider are separate from each other,and
>> my
>> log :
> ...
> [INFO] Generating jbi.xml
> [INFO] Determining component name for service unit
> external-service-http-consumer
> [INFO] Project org.apache.maven.project.MavenProject@6830132e packaged
> jbi-component
> [INFO] Determining component name for service unit
> external-service-http-provider2
> [ERROR] mojo-execute : jbi:generate-jbi-service-assembly-descriptor
> Diagnosis: The service unit external-service-http-provider2 does not have
> a
> dependency which is packaged as a jbi-component or a project property
> 'componentName'
> FATAL ERROR: Error executing Maven for a project
> [ERROR] project-execute :
> com.mycompany:external-service-assembly:jbi-service-assembly:1.0-SNAPSHOT
> (
> task-segment: [install, jbi:projectDeploy] )
> Diagnosis: The service unit external-service-http-provider2 does not have
> a
> dependency which is packaged as a jbi-component or a project property
> 'componentName'
> 
> The error above indicates that there is no dependency on a JBI
> component in the pom.xml file for the external-service-http-provider2
> project. I gather that this project SU is for the servicemix-http
> component, correct? If so, then the pom.xml file should list a
> dependency on that component. Please post the pom.xml file for that
> component.
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
> 
> 

-- 
View this message in context: http://www.nabble.com/Expose-external-web-service-with-http-component-%28very-simplified%29-tf3014055s12049.html#a8405039
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Expose external web service with http-component (very simplified)

Posted by Bruce Snyder <br...@gmail.com>.
On 1/16/07, beyond30lyc <be...@163.com> wrote:
>
> Thank you!Yes,the consumer and provider are separate from each other,and my
> log :
...
[INFO] Generating jbi.xml
[INFO] Determining component name for service unit
external-service-http-consumer
[INFO] Project org.apache.maven.project.MavenProject@6830132e packaged
jbi-component
[INFO] Determining component name for service unit
external-service-http-provider2
[ERROR] mojo-execute : jbi:generate-jbi-service-assembly-descriptor
Diagnosis: The service unit external-service-http-provider2 does not have a
dependency which is packaged as a jbi-component or a project property
'componentName'
FATAL ERROR: Error executing Maven for a project
[ERROR] project-execute :
com.mycompany:external-service-assembly:jbi-service-assembly:1.0-SNAPSHOT (
task-segment: [install, jbi:projectDeploy] )
Diagnosis: The service unit external-service-http-provider2 does not have a
dependency which is packaged as a jbi-component or a project property
'componentName'

The error above indicates that there is no dependency on a JBI
component in the pom.xml file for the external-service-http-provider2
project. I gather that this project SU is for the servicemix-http
component, correct? If so, then the pom.xml file should list a
dependency on that component. Please post the pom.xml file for that
component.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: Expose external web service with http-component (very simplified)

Posted by beyond30lyc <be...@163.com>.
Thank you!Yes,the consumer and provider are separate from each other,and my
log :

[DEBUG] Found 0 components to load on start
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and
Settings\Owner\.m2\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jbi'.
[INFO] org.apache.maven.plugins: checking for updates from logicblaze
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from logicblaze
[INFO] org.codehaus.mojo: checking for updates from central
[DEBUG] Retrieving parent-POM:
org.apache.servicemix.tooling:tooling::fuse-3.0.1 for project:
null:jbi-maven-plugin:maven-plugin:fuse-3.0.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.servicemix:servicemix::fuse-3.0.1
for project: org.apache.servicemix.tooling:tooling:pom:null from the
repository.
[DEBUG] Found 0 components to load on start
[INFO]
----------------------------------------------------------------------------
[INFO] Building A custom project
[INFO]    task-segment: [install, jbi:projectDeploy]
[INFO]
----------------------------------------------------------------------------
[DEBUG] Nonexistent component:
org.apache.maven.lifecycle.mapping.LifecycleMappingjbi-service-assembly
[DEBUG] Error looking up lifecycle mapping to retrieve optional mojos.
Lifecycle ID: default. Error: Component descriptor cannot be found in the
component repository:
org.apache.maven.lifecycle.mapping.LifecycleMappingjbi-service-assembly.
Component descriptor cannot be found in the component repository:
org.apache.maven.lifecycle.mapping.LifecycleMappingjbi-service-assembly.
[INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
for updates from logicblaze
[INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
for updates from central
[DEBUG] maven-resources-plugin: resolved to version 2.2 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for
project: null:maven-resources-plugin:maven-plugin:2.2 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project:
org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] Found 0 components to load on start
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for
updates from logicblaze
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for
updates from central
[DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for
project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project:
org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] Found 0 components to load on start
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
updates from logicblaze
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
updates from central
[DEBUG] maven-surefire-plugin: resolved to version 2.2 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for
project: null:maven-surefire-plugin:maven-plugin:2.2 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project:
org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] Found 0 components to load on start
[INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for
updates from logicblaze
[INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for
updates from central
[DEBUG] maven-jar-plugin: resolved to version 2.1 from repository central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::3 for
project: null:maven-jar-plugin:maven-plugin:2.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for project:
org.apache.maven.plugins:maven-plugins:pom:3 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:4 from the repository.
[DEBUG] Found 0 components to load on start
[INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for
updates from logicblaze
[INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for
updates from central
[DEBUG] maven-install-plugin: resolved to version 2.1 from repository
central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugin-parent::2.0 for project:
null:maven-install-plugin:maven-plugin:2.1 from the repository.
[DEBUG] Found 0 components to load on start
[DEBUG]
com.mycompany:external-service-assembly:jbi-service-assembly:1.0-SNAPSHOT
(selected for null)
[INFO] snapshot com.mycompany:external-service-http-consumer:1.0-SNAPSHOT:
checking for updates from logicblaze
[DEBUG] repository metadata for: 'snapshot
com.mycompany:external-service-http-consumer:1.0-SNAPSHOT' could not be
found on repository: logicblaze
[DEBUG] Skipping disabled repository central
[DEBUG] external-service-http-consumer: using locally installed snapshot
[DEBUG]  
com.mycompany:external-service-http-consumer:jar:1.0-SNAPSHOT:compile
(selected for compile)
[DEBUG] Retrieving parent-POM: org.apache.servicemix:servicemix::fuse-3.0.1
for project: null:servicemix-http:jbi-component:fuse-3.0.1 from the
repository.
[DEBUG]     org.apache.servicemix:servicemix-http:jar:fuse-3.0.1:compile
(selected for compile)
[DEBUG] Retrieving parent-POM: org.apache.servicemix:servicemix::fuse-3.0.1
for project: null:servicemix-shared:jbi-shared-library:fuse-3.0.1 from the
repository.
[DEBUG]       org.apache.servicemix:servicemix-shared:jar:fuse-3.0.1:compile
(selected for compile)
[DEBUG] Retrieving parent-POM: org.apache.servicemix:servicemix::fuse-3.0.1
for project: null:servicemix-soap:jar:fuse-3.0.1 from the repository.
[DEBUG]         org.apache.servicemix:servicemix-soap:jar:fuse-3.0.1:compile
(selected for compile)
[DEBUG]           org.opensaml:opensaml:jar:1.1:compile (selected for
compile)
[DEBUG] Retrieving parent-POM: org.apache.servicemix:servicemix::fuse-3.0.1
for project: null:servicemix-common:jar:fuse-3.0.1 from the repository.
[DEBUG]          
org.apache.servicemix:servicemix-common:jar:fuse-3.0.1:compile (selected for
compile)
[DEBUG] Trying repository logicblaze
[WARN] Unable to get resource from repository logicblaze
(http://repo.logicblaze.com/maven2-all/)
[DEBUG] Trying repository central
[WARN] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[DEBUG] Artifact not found - using stub model: Unable to download the
artifact from any repository

  xml-security:xmlsec:pom:1.3.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  logicblaze (http://repo.logicblaze.com/maven2-all/)

[DEBUG] Using defaults for missing POM xml-security:xmlsec:pom:1.3.0:compile
[DEBUG]           xml-security:xmlsec:jar:1.3.0:compile (selected for
compile)
[DEBUG]           bouncycastle:bcprov-jdk14:jar:124:compile (selected for
compile)
[DEBUG] Trying repository logicblaze
[WARN] Unable to get resource from repository logicblaze
(http://repo.logicblaze.com/maven2-all/)
[DEBUG] Trying repository central
[WARN] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[DEBUG] Artifact not found - using stub model: Unable to download the
artifact from any repository

  wss4j:wss4j:pom:1.5.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  logicblaze (http://repo.logicblaze.com/maven2-all/)

[DEBUG] Using defaults for missing POM wss4j:wss4j:pom:1.5.0:compile
[DEBUG]           wss4j:wss4j:jar:1.5.0:compile (selected for compile)
[DEBUG]        
org.apache.servicemix:servicemix-common:jar:fuse-3.0.1:compile (selected for
compile)
[DEBUG] Retrieving parent-POM: org.mortbay.jetty:project::6.0.0rc4 for
project: org.mortbay.jetty:jetty-management:jar:6.0.0rc4 from the
repository.
[DEBUG]       org.mortbay.jetty:jetty-management:jar:6.0.0rc4:compile
(selected for compile)
[DEBUG] Retrieving parent-POM: org.mortbay.jetty:project::6.0.0rc4 for
project: org.mortbay.jetty:jetty:jar:6.0.0rc4 from the repository.
[DEBUG]         org.mortbay.jetty:jetty:jar:6.0.0rc4:compile (selected for
compile)
[DEBUG] Retrieving parent-POM: org.mortbay.jetty:project::6.0.0rc4 for
project: org.mortbay.jetty:jetty-util:jar:6.0.0rc4 from the repository.
[DEBUG]           org.mortbay.jetty:jetty-util:jar:6.0.0rc4:compile
(selected for compile)
[DEBUG]       org.mortbay.jetty:jetty:jar:6.0.0rc4:compile (selected for
compile)
[DEBUG]         org.mortbay.jetty:jetty-util:jar:6.0.0rc4:compile (selected
for compile)
[DEBUG]       commons-httpclient:commons-httpclient:jar:3.0:compile
(selected for compile)
[DEBUG]         commons-logging:commons-logging:jar:1.0.3:compile (selected
for compile)
[DEBUG]         commons-codec:commons-codec:jar:1.2:compile (selected for
compile)
[INFO] snapshot com.mycompany:external-service-http-provider2:1.0-SNAPSHOT:
checking for updates from logicblaze
[DEBUG] repository metadata for: 'snapshot
com.mycompany:external-service-http-provider2:1.0-SNAPSHOT' could not be
found on repository: logicblaze
[DEBUG] Skipping disabled repository central
[DEBUG] external-service-http-provider2: using locally installed snapshot
[DEBUG]  
com.mycompany:external-service-http-provider2:jar:1.0-SNAPSHOT:compile
(selected for compile)
[DEBUG] external-service-http-provider2: using locally installed snapshot
[DEBUG] external-service-http-consumer: using locally installed snapshot
[DEBUG]
org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:fuse-3.0.1:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project:
null:maven-project:jar:2.0.1 from the repository.
[DEBUG]   org.apache.maven:maven-project:jar:2.0.1:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project:
org.apache.maven:maven-model:jar:2.0.1 from the repository.
[DEBUG]     org.apache.maven:maven-model:jar:2.0.1:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
project: null:plexus-utils:jar:1.0.5 from the repository.
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime (selected
for runtime)
[DEBUG]         classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project:
null:maven-profile:jar:2.0.1 from the repository.
[DEBUG]     org.apache.maven:maven-profile:jar:2.0.1:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-containers::1.0.3
for project: null:plexus-container-default:jar:1.0-alpha-9 from the
repository.
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
project: org.codehaus.plexus:plexus-containers:pom:1.0.3 from the
repository.
[DEBUG]      
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime
(selected for runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed
- nearer found: 1.0.5)
[DEBUG]         junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]    
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime
(selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.0.5)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for
runtime)
[DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project:
org.apache.maven:maven-artifact-manager:jar:2.0.1 from the repository.
[DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project:
org.apache.maven:maven-repository-metadata:jar:2.0.1 from the repository.
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime
(selected for runtime)
[DEBUG]      
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected
for runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed
- nearer found: 1.0.5)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project:
org.apache.maven:maven-artifact:jar:2.0.1 from the repository.
[DEBUG]       org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected
for runtime)
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project:
null:maven-archiver:jar:2.0.1 from the repository.
[DEBUG]   org.apache.maven:maven-archiver:jar:2.0.1:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-components::1.1.4
for project: null:plexus-archiver:jar:1.0-alpha-4 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
project: org.codehaus.plexus:plexus-components:pom:1.1.4 from the
repository.
[DEBUG]     org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-4:runtime
(selected for runtime)
[DEBUG]      
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
(removed - nearer found: 1.0-alpha-9)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project:
org.apache.maven:maven-plugin-api:jar:2.0.1 from the repository.
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.1:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.geronimo.specs:specs::1.1 for
project: null:geronimo-ejb_2.1_spec:jar:1.0.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.geronimo.specs:specs:pom:1.1 from the repository.
[DEBUG]   org.apache.geronimo.specs:geronimo-ejb_2.1_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.geronimo.specs:specs::1.1 for
project: null:geronimo-jta_1.0.1B_spec:jar:1.0.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.geronimo.specs:specs:pom:1.1 from the repository.
[DEBUG]    
org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG]  
org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG]   org.apache.servicemix:servicemix-common:jar:fuse-3.0.1:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.servicemix:servicemix::fuse-3.0.1
for project: null:servicemix-core:jar:fuse-3.0.1 from the repository.
[DEBUG]   org.apache.servicemix:servicemix-core:jar:fuse-3.0.1:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.servicemix:servicemix::fuse-3.0.1
for project: null:servicemix-jbi:jar:fuse-3.0.1 from the repository.
[DEBUG]     org.apache.servicemix:servicemix-jbi:jar:fuse-3.0.1:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.geronimo.specs:specs::1.1 for
project: null:geronimo-activation_1.0.2_spec:jar:1.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.geronimo.specs:specs:pom:1.1 from the repository.
[DEBUG]      
org.apache.geronimo.specs:geronimo-activation_1.0.2_spec:jar:1.1:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.geronimo.specs:specs::1.1 for
project: null:geronimo-qname_1.1_spec:jar:1.0.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.geronimo.specs:specs:pom:1.1 from the repository.
[DEBUG]      
org.apache.geronimo.specs:geronimo-qname_1.1_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG]     junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]     log4j:log4j:jar:1.2.12:runtime (selected for runtime)
[DEBUG]     commons-logging:commons-logging:jar:1.0.4:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.geronimo.specs:specs::1.1 for
project: null:geronimo-jms_1.1_spec:jar:1.0.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.geronimo.specs:specs:pom:1.1 from the repository.
[DEBUG]    
org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.0.1:runtime (selected
for runtime)
[DEBUG] Trying repository logicblaze
[WARN] Unable to get resource from repository logicblaze
(http://repo.logicblaze.com/maven2-all/)
[DEBUG] Skipping disabled repository logicblaze.snapshot
[DEBUG] Trying repository central
[WARN] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[DEBUG] Artifact not found - using stub model: Unable to download the
artifact from any repository

  woodstox:wstx-asl:pom:3.0.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  logicblaze (http://repo.logicblaze.com/maven2-all/),
  logicblaze.snapshot (http://repo.logicblaze.com/maven2-snapshot)

[DEBUG] Using defaults for missing POM woodstox:wstx-asl:pom:3.0.0:runtime
[DEBUG]     woodstox:wstx-asl:jar:3.0.0:runtime (selected for runtime)
[DEBUG]     commons-lang:commons-lang:jar:2.1:runtime (selected for runtime)
[DEBUG]     lingo:lingo:jar:1.0:runtime (selected for runtime)
[DEBUG]       concurrent:concurrent:jar:1.3.4:runtime (selected for runtime)
[DEBUG]       commons-logging:commons-logging:jar:1.0.3:runtime (removed -
nearer found: 1.0.4)
[DEBUG]       aopalliance:aopalliance:jar:1.0:runtime (selected for runtime)
[DEBUG]       xstream:xstream:jar:1.1.2:runtime (selected for runtime)
[DEBUG] While downloading springframework:spring:1.2.5
  This artifact has been relocated to org.springframework:spring:1.2.5.


[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.5 for
project: null:spring:jar:1.2.5 from the repository.
[DEBUG]       org.springframework:spring:jar:1.2.5:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.5 for
project: null:spring-remoting:jar:1.2.5 from the repository.
[DEBUG]         org.springframework:spring-remoting:jar:1.2.5:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.5 for
project: null:spring-webmvc:jar:1.2.5 from the repository.
[DEBUG]           org.springframework:spring-webmvc:jar:1.2.5:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.5 for
project: null:spring-web:jar:1.2.5 from the repository.
[DEBUG]             org.springframework:spring-web:jar:1.2.5:runtime
(selected for runtime)
[DEBUG]               javax.servlet:jstl:jar:1.0:runtime (selected for
runtime)
[DEBUG]               taglibs:standard:jar:1.0.6:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.5 for
project: null:spring-context:jar:1.2.5 from the repository.
[DEBUG]               org.springframework:spring-context:jar:1.2.5:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.5 for
project: null:spring-aop:jar:1.2.5 from the repository.
[DEBUG]                 org.springframework:spring-aop:jar:1.2.5:runtime
(selected for runtime)
[DEBUG]                   oro:oro:jar:2.0.8:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.5 for
project: null:spring-beans:jar:1.2.5 from the repository.
[DEBUG]                   org.springframework:spring-beans:jar:1.2.5:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.5 for
project: null:spring-core:jar:1.2.5 from the repository.
[DEBUG]                    
org.springframework:spring-core:jar:1.2.5:runtime (selected for runtime)
[DEBUG]                      
commons-collections:commons-collections:jar:3.1:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.5 for
project: null:spring-dao:jar:1.2.5 from the repository.
[DEBUG]           org.springframework:spring-dao:jar:1.2.5:runtime (selected
for runtime)
[DEBUG]             javax.transaction:jta:jar:1.0.1B:runtime (selected for
runtime)
[DEBUG]             org.springframework:spring-context:jar:1.2.5:runtime
(selected for runtime)
[DEBUG]               org.springframework:spring-aop:jar:1.2.5:runtime
(selected for runtime)
[DEBUG]                 oro:oro:jar:2.0.8:runtime (selected for runtime)
[DEBUG]                 org.springframework:spring-beans:jar:1.2.5:runtime
(selected for runtime)
[DEBUG]                   org.springframework:spring-core:jar:1.2.5:runtime
(selected for runtime)
[DEBUG]                    
commons-collections:commons-collections:jar:3.1:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.5 for
project: null:spring-hibernate:jar:1.2.5 from the repository.
[DEBUG]         org.springframework:spring-hibernate:jar:1.2.5:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.5 for
project: null:spring-orm:jar:1.2.5 from the repository.
[DEBUG]           org.springframework:spring-orm:jar:1.2.5:runtime (selected
for runtime)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.5 for
project: null:spring-jdbc:jar:1.2.5 from the repository.
[DEBUG]             org.springframework:spring-jdbc:jar:1.2.5:runtime
(selected for runtime)
[DEBUG]               org.springframework:spring-beans:jar:1.2.5:runtime
(selected for runtime)
[DEBUG]                 org.springframework:spring-core:jar:1.2.5:runtime
(selected for runtime)
[DEBUG]                  
commons-collections:commons-collections:jar:3.1:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.5 for
project: null:spring-support:jar:1.2.5 from the repository.
[DEBUG]         org.springframework:spring-support:jar:1.2.5:runtime
(selected for runtime)
[DEBUG]           javax.resource:connector:jar:1.0:runtime (selected for
runtime)
[DEBUG]           ehcache:ehcache:jar:1.1:runtime (selected for runtime)
[DEBUG]           com.servlets:cos:jar:05Nov2002:runtime (selected for
runtime)
[DEBUG]           javax.mail:mail:jar:1.3.2:runtime (selected for runtime)
[DEBUG]             javax.activation:activation:jar:1.0.2:runtime (selected
for runtime)
[DEBUG]           org.springframework:spring-jdbc:jar:1.2.5:runtime
(selected for runtime)
[DEBUG]             org.springframework:spring-beans:jar:1.2.5:runtime
(selected for runtime)
[DEBUG]               org.springframework:spring-core:jar:1.2.5:runtime
(selected for runtime)
[DEBUG]                
commons-collections:commons-collections:jar:3.1:runtime (selected for
runtime)
[DEBUG]           quartz:quartz:jar:1.5.0-RC1:runtime (selected for runtime)
[DEBUG]         org.springframework:spring-core:jar:1.2.5:runtime (selected
for runtime)
[DEBUG]           commons-collections:commons-collections:jar:3.1:runtime
(selected for runtime)
[DEBUG]         org.springframework:spring-orm:jar:1.2.5:runtime (selected
for runtime)
[DEBUG]       mx4j:mx4j:jar:3.0.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.xbean:xbean::2.6 for project:
null:xbean-spring:jar:2.6 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.xbean:xbean:pom:2.6 from the repository.
[DEBUG]     org.apache.xbean:xbean-spring:jar:2.6:runtime (selected for
runtime)
[DEBUG]       commons-logging:commons-logging:jar:1.0.3:runtime (removed -
nearer found: 1.0.4)
[DEBUG]       org.springframework:spring:jar:1.2.4:runtime (removed - nearer
found: 1.2.5)
[DEBUG]     stax:stax-api:jar:1.0.1:runtime (selected for runtime)
[DEBUG]    
backport-util-concurrent:backport-util-concurrent:jar:2.1:runtime (selected
for runtime)
[DEBUG]     commons-collections:commons-collections:jar:3.1:runtime
(selected for runtime)
[DEBUG]     xmlbeans:xbean:jar:2.1.0:runtime (selected for runtime)
[DEBUG]     mx4j:mx4j:jar:3.0.1:runtime (selected for runtime)
[DEBUG]     jaxen:jaxen:jar:1.1-beta-9:runtime (selected for runtime)
[DEBUG]       xerces:xercesImpl:jar:2.6.2:runtime (selected for runtime)
[DEBUG]     xerces:xercesImpl:jar:2.6.2:runtime (removed - nearer found:
2.7.1)
[DEBUG]     xerces:xercesImpl:jar:2.7.1:runtime (selected for runtime)
[DEBUG]     xml-apis:xml-apis:jar:1.3.02:runtime (selected for runtime)
[DEBUG]     wsdl4j:wsdl4j:jar:1.5.2:runtime (selected for runtime)
[DEBUG]     geronimo:geronimo-connector:jar:1.1:runtime (selected for
runtime)
[DEBUG]       geronimo:geronimo-common:jar:1.1:runtime (selected for
runtime)
[DEBUG]         commons-jelly:commons-jelly-tags-velocity:jar:1.0:runtime
(selected for runtime)
[DEBUG]         geronimo:geronimo-kernel:jar:1.1:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.geronimo.specs:specs::1.1 for
project: null:geronimo-j2ee-deployment_1.1_spec:jar:1.0.1 from the
repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.geronimo.specs:specs:pom:1.1 from the repository.
[DEBUG]          
org.apache.geronimo.specs:geronimo-j2ee-deployment_1.1_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG]           xstream:xstream:jar:1.1.3:runtime (removed - nearer found:
1.1.2)
[DEBUG]           log4j:log4j:jar:1.2.8:runtime (removed - nearer found:
1.2.12)
[DEBUG]           xpp3:xpp3:jar:1.1.3.3:runtime (selected for runtime)
[DEBUG]           cglib:cglib-nodep:jar:2.1_3:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.geronimo.specs:specs::1.1 for
project: null:geronimo-j2ee-management_1.0_spec:jar:1.0.1 from the
repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.geronimo.specs:specs:pom:1.1 from the repository.
[DEBUG]          
org.apache.geronimo.specs:geronimo-j2ee-management_1.0_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG]           velocity:velocity:jar:1.4:runtime (selected for runtime)
[DEBUG]             velocity:velocity-dep:jar:1.4:runtime (selected for
runtime)
[DEBUG]         velocity:velocity:jar:1.4:runtime (selected for runtime)
[DEBUG]           velocity:velocity-dep:jar:1.4:runtime (selected for
runtime)
[DEBUG]         log4j:log4j:jar:1.2.8:runtime (removed - nearer found:
1.2.12)
[DEBUG]       geronimo:geronimo-system:jar:1.1:runtime (selected for
runtime)
[DEBUG]         log4j:log4j:jar:1.2.8:runtime (removed - nearer found:
1.2.12)
[DEBUG]         geronimo:geronimo-util:jar:1.1:runtime (selected for
runtime)
[DEBUG]         cglib:cglib-nodep:jar:2.1_3:runtime (selected for runtime)
[DEBUG]       geronimo:geronimo-transaction:jar:1.1:runtime (selected for
runtime)
[DEBUG]         geronimo:geronimo-core:jar:1.1:runtime (selected for
runtime)
[DEBUG]           geronimo:geronimo-management:jar:1.1:runtime (selected for
runtime)
[DEBUG]         geronimo:geronimo-j2ee:jar:1.1:runtime (selected for
runtime)
[DEBUG]           log4j:log4j:jar:1.2.8:runtime (removed - nearer found:
1.2.12)
[DEBUG] Retrieving parent-POM: org.apache.geronimo.specs:specs::1.1 for
project: null:geronimo-j2ee-connector_1.5_spec:jar:1.0.1 from the
repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.geronimo.specs:specs:pom:1.1 from the repository.
[DEBUG]        
org.apache.geronimo.specs:geronimo-j2ee-connector_1.5_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG]         howl:howl-logger:jar:0.1.11:runtime (selected for runtime)
[DEBUG]       cglib:cglib-nodep:jar:2.1_3:runtime (selected for runtime)
[DEBUG]       geronimo:geronimo-naming:jar:1.1:runtime (selected for
runtime)
[DEBUG] Trying repository logicblaze
[WARN] Unable to get resource from repository logicblaze
(http://repo.logicblaze.com/maven2-all/)
[DEBUG] Skipping disabled repository logicblaze.snapshot
[DEBUG] Trying repository central
[WARN] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[DEBUG] Artifact not found - using stub model: Unable to download the
artifact from any repository

  tranql:tranql:pom:1.3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  logicblaze (http://repo.logicblaze.com/maven2-all/),
  logicblaze.snapshot (http://repo.logicblaze.com/maven2-snapshot)

[DEBUG] Using defaults for missing POM tranql:tranql:pom:1.3:runtime
[DEBUG]       tranql:tranql:jar:1.3:runtime (selected for runtime)
[DEBUG]       geronimo:geronimo-core:jar:1.1:runtime (selected for runtime)
[DEBUG]         geronimo:geronimo-management:jar:1.1:runtime (selected for
runtime)
[DEBUG]        
org.apache.geronimo.specs:geronimo-j2ee-management_1.0_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG]      
org.apache.geronimo.specs:geronimo-j2ee-management_1.0_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG]       velocity:velocity:jar:1.4:runtime (selected for runtime)
[DEBUG]         velocity:velocity-dep:jar:1.4:runtime (selected for runtime)
[DEBUG]       commons-jelly:commons-jelly-tags-velocity:jar:1.0:runtime
(selected for runtime)
[DEBUG]       geronimo:geronimo-kernel:jar:1.1:runtime (selected for
runtime)
[DEBUG]        
org.apache.geronimo.specs:geronimo-j2ee-deployment_1.1_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG]         xstream:xstream:jar:1.1.3:runtime (removed - nearer found:
1.1.2)
[DEBUG]         log4j:log4j:jar:1.2.8:runtime (removed - nearer found:
1.2.12)
[DEBUG]         xpp3:xpp3:jar:1.1.3.3:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.geronimo.specs:specs::1.1 for
project: null:geronimo-j2ee-jacc_1.0_spec:jar:1.0.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.geronimo.specs:specs:pom:1.1 from the repository.
[DEBUG]      
org.apache.geronimo.specs:geronimo-j2ee-jacc_1.0_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.geronimo.specs:specs::1.1 for
project: null:geronimo-servlet_2.4_spec:jar:1.0.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.geronimo.specs:specs:pom:1.1 from the repository.
[DEBUG]        
org.apache.geronimo.specs:geronimo-servlet_2.4_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG]       geronimo:geronimo-security:jar:1.1:runtime (selected for
runtime)
[DEBUG]         log4j:log4j:jar:1.2.8:runtime (removed - nearer found:
1.2.12)
[DEBUG]         hsqldb:hsqldb:jar:1.7.2.2:runtime (selected for runtime)
[DEBUG]         activeio:activeio:jar:2.0-r118:runtime (selected for
runtime)
[DEBUG]         regexp:regexp:jar:1.3:runtime (selected for runtime)
[DEBUG]       geronimo:geronimo-deployment:jar:1.1:runtime (selected for
runtime)
[DEBUG]         xstream:xstream:jar:1.1.3:runtime (removed - nearer found:
1.1.2)
[DEBUG]         xmlbeans:xbean:jar:2.0.0:runtime (removed - nearer found:
2.1.0)
[DEBUG]         xml-resolver:xml-resolver:jar:1.1:runtime (selected for
runtime)
[DEBUG]       geronimo:geronimo-management:jar:1.1:runtime (selected for
runtime)
[DEBUG]       geronimo:geronimo-j2ee:jar:1.1:runtime (selected for runtime)
[DEBUG]         log4j:log4j:jar:1.2.8:runtime (removed - nearer found:
1.2.12)
[DEBUG]       regexp:regexp:jar:1.3:runtime (selected for runtime)
[DEBUG]      
org.apache.geronimo.specs:geronimo-j2ee-connector_1.5_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG]     xstream:xstream:jar:1.1.2:runtime (selected for runtime)
[DEBUG]     geronimo:geronimo-transaction:jar:1.1:runtime (selected for
runtime)
[DEBUG]       howl:howl-logger:jar:0.1.11:runtime (selected for runtime)
[DEBUG]     org.jencks:jencks:jar:1.3:runtime (selected for runtime)
[DEBUG]      
org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.0:runtime (removed -
nearer found: 1.0.1)
[DEBUG]       jencks:xapool-without-pool:jar:1.4:runtime (selected for
runtime)
[DEBUG]       commons-dbcp:commons-dbcp:jar:1.2:runtime (selected for
runtime)
[DEBUG]         commons-pool:commons-pool:jar:1.2:runtime (selected for
runtime)
[DEBUG]           commons-collections:commons-collections:jar:2.1:runtime
(removed - nearer found: 3.1)
[DEBUG]         commons-collections:commons-collections:jar:2.1:runtime
(removed - nearer found: 3.1)
[DEBUG]       commons-pool:commons-pool:jar:1.2:runtime (selected for
runtime)
[DEBUG]         commons-collections:commons-collections:jar:2.1:runtime
(removed - nearer found: 3.1)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::2.0-rc3
for project: null:spring:jar:2.0-rc3 from the repository.
[DEBUG]       org.springframework:spring:jar:2.0-rc3:runtime (removed -
nearer found: 1.2.5)
[DEBUG]     xalan:xalan:jar:2.7.0:runtime (selected for runtime)
[DEBUG] While downloading xml-apis:xml-apis:2.0.2
  This artifact has been relocated to xml-apis:xml-apis:1.0.b2.


[DEBUG]       xml-apis:xml-apis:jar:1.0.b2:runtime (removed - nearer found:
1.3.02)
[DEBUG] Retrieving parent-POM: org.apache.servicemix:servicemix::fuse-3.0.1
for project: null:servicemix-services:jar:fuse-3.0.1 from the repository.
[DEBUG]     org.apache.servicemix:servicemix-services:jar:fuse-3.0.1:runtime
(selected for runtime)
[DEBUG]       hsqldb:hsqldb:jar:1.7.2.2:runtime (removed - nearer found:
1.7.3.3)
[DEBUG]       hsqldb:hsqldb:jar:1.7.3.3:runtime (selected for runtime)
[DEBUG]    
org.apache.geronimo.specs:geronimo-j2ee-management_1.0_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG]     mx4j:mx4j-remote:jar:3.0.1:runtime (selected for runtime)
[DEBUG]    
org.apache.geronimo.specs:geronimo-j2ee-jacc_1.0_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG]      
org.apache.geronimo.specs:geronimo-servlet_2.4_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.xbean:xbean::2.6 for project:
null:xbean-server:jar:2.6 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.xbean:xbean:pom:2.6 from the repository.
[DEBUG]     org.apache.xbean:xbean-server:jar:2.6:runtime (selected for
runtime)
[DEBUG]       commons-logging:commons-logging:jar:1.0.3:runtime (removed -
nearer found: 1.0.4)
[DEBUG] Retrieving parent-POM: org.apache.xbean:xbean::2.6 for project:
null:xbean-kernel:jar:2.6 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.xbean:xbean:pom:2.6 from the repository.
[DEBUG]       org.apache.xbean:xbean-kernel:jar:2.6:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.xbean:xbean::2.6 for project:
null:xbean-classloader:jar:2.6 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.xbean:xbean:pom:2.6 from the repository.
[DEBUG]       org.apache.xbean:xbean-classloader:jar:2.6:runtime (selected
for runtime)
[DEBUG]         org.springframework:spring:jar:1.2.4:runtime (removed -
nearer found: 1.2.5)
[DEBUG]     xmlbeans:xmlpublic:jar:2.1.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: incubator-activemq:activemq-parent::4.0.2 for
project: null:activemq-core:jar:4.0.2 from the repository.
[DEBUG]     incubator-activemq:activemq-core:jar:4.0.2:runtime (selected for
runtime)
[DEBUG]      
org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.0:runtime (removed -
nearer found: 1.0.1)
[DEBUG]       commons-logging:commons-logging:jar:1.1:runtime (removed -
nearer found: 1.0.4)
[DEBUG] Retrieving parent-POM: incubator-activemq:activeio::3.0-beta4 for
project: null:activeio-core:jar:3.0-beta4 from the repository.
[DEBUG] Retrieving parent-POM: incubator-activemq:activemq-parent::4.0.2 for
project: incubator-activemq:activeio:pom:3.0-beta4 from the repository.
[DEBUG]       incubator-activemq:activeio-core:jar:3.0-beta4:runtime
(selected for runtime)
[DEBUG]         commons-logging:commons-logging:jar:1.1:runtime (removed -
nearer found: 1.0.4)
[DEBUG]     commons-beanutils:commons-beanutils-core:jar:1.7.0:runtime
(selected for runtime)
[DEBUG]       commons-logging:commons-logging:jar:1.0:runtime (removed -
nearer found: 1.0.4)
[DEBUG]       commons-collections:commons-collections:jar:2.0:runtime
(removed - nearer found: 3.1)
[DEBUG]     org.springframework:spring:jar:1.2.5:runtime (removed - nearer
found: 2.0-rc3)
[DEBUG]     org.springframework:spring:jar:2.0-rc3:runtime (selected for
runtime)
[DEBUG]       commons-logging:commons-logging:jar:1.1:runtime (removed -
nearer found: 1.0.4)
[DEBUG]    
org.apache.geronimo.specs:geronimo-j2ee-connector_1.5_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-script::2.0 for
project: null:maven-script-ant:jar:2.0.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
null:maven-script:pom:2.0 from the repository.
[DEBUG]   org.apache.maven:maven-script-ant:jar:2.0.1:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-component-factories::1.0-alpha-5 for project:
null:plexus-ant-factory:jar:1.0-alpha-1 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
project: null:plexus-component-factories:pom:1.0-alpha-5 from the
repository.
[DEBUG]     org.codehaus.plexus:plexus-ant-factory:jar:1.0-alpha-1:runtime
(selected for runtime)
[DEBUG]       ant:ant-launcher:jar:1.6.5:runtime (selected for runtime)
[DEBUG]       ant:ant:jar:1.6.5:runtime (selected for runtime)
[DEBUG]    
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
(removed - nearer found: 1.0-alpha-9)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime (selected for
runtime)
[DEBUG]     classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for
runtime)
[DEBUG]  
org.apache.geronimo.specs:geronimo-j2ee-connector_1.5_spec:jar:1.0.1:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.geronimo.specs:specs::1.1 for
project: null:geronimo-javamail_1.3.1_spec:jar:1.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.geronimo.specs:specs:pom:1.1 from the repository.
[DEBUG]  
org.apache.geronimo.specs:geronimo-javamail_1.3.1_spec:jar:1.1:runtime
(selected for runtime)
[DEBUG]    
org.apache.geronimo.specs:geronimo-activation_1.0.2_spec:jar:1.1:runtime
(selected for runtime)
[DEBUG] Configuring mojo
'org.apache.servicemix.tooling:jbi-maven-plugin:fuse-3.0.1:generate-jbi-service-assembly-descriptor'
-->
[DEBUG]   (f) description = A custom project
[DEBUG]   (f) generatedDescriptorLocation = D:\TOOLS\DEVELOPING
TOOLS\eclipse\eclipse2\eclipse\workspace\external-service-assembly\target/classes/META-INF
[DEBUG]   (f) localRepo = [local] -> file://C:\Documents and
Settings\Owner\.m2\repository
[DEBUG]   (f) name = external-service-assembly
[DEBUG]   (f) project = org.apache.maven.project.MavenProject@b1a8d76e
[DEBUG]   (f) remoteRepos = [[logicblaze] ->
http://repo.logicblaze.com/maven2-all/, [central] ->
http://repo1.maven.org/maven2]
[DEBUG]   (f) workDirectory = D:\TOOLS\DEVELOPING
TOOLS\eclipse\eclipse2\eclipse\workspace\external-service-assembly\target\external-service-assembly-1.0-SNAPSHOT-installer
[DEBUG] -- end configuration --
[INFO] jbi:generate-jbi-service-assembly-descriptor
[DEBUG]  ======= GenerateServiceAssemlbyDescriptorMojo settings =======
[DEBUG] workDirectory[D:\TOOLS\DEVELOPING
TOOLS\eclipse\eclipse2\eclipse\workspace\external-service-assembly\target\external-service-assembly-1.0-SNAPSHOT-installer]
[DEBUG] generateJbiDescriptor[true]
[DEBUG] name[external-service-assembly]
[DEBUG] description[A custom project]
[DEBUG] encoding[UTF-8]
[DEBUG] generatedDescriptorLocation[D:\TOOLS\DEVELOPING
TOOLS\eclipse\eclipse2\eclipse\workspace\external-service-assembly\target/classes/META-INF]
[INFO] Generating jbi.xml
[INFO] Determining component name for service unit
external-service-http-consumer
[INFO] Project org.apache.maven.project.MavenProject@6830132e packaged
jbi-component
[INFO] Determining component name for service unit
external-service-http-provider2
[ERROR] mojo-execute : jbi:generate-jbi-service-assembly-descriptor
Diagnosis: The service unit external-service-http-provider2 does not have a
dependency which is packaged as a jbi-component or a project property
'componentName'
FATAL ERROR: Error executing Maven for a project
[ERROR] project-execute :
com.mycompany:external-service-assembly:jbi-service-assembly:1.0-SNAPSHOT ( 
task-segment: [install, jbi:projectDeploy] )
Diagnosis: The service unit external-service-http-provider2 does not have a
dependency which is packaged as a jbi-component or a project property
'componentName'
FATAL ERROR: Error executing Maven for a project
[DEBUG]
com.mycompany:external-service-assembly:jbi-service-assembly:1.0-SNAPSHOT
(selected for null)
[DEBUG]  
com.mycompany:external-service-http-consumer:jar:1.0-SNAPSHOT:compile
(selected for compile)
[DEBUG]     org.apache.servicemix:servicemix-http:jar:fuse-3.0.1:compile
(selected for compile)
[DEBUG]       org.apache.servicemix:servicemix-shared:jar:fuse-3.0.1:compile
(selected for compile)
[DEBUG]         org.apache.servicemix:servicemix-soap:jar:fuse-3.0.1:compile
(selected for compile)
[DEBUG]           org.opensaml:opensaml:jar:1.1:compile (selected for
compile)
[DEBUG]          
org.apache.servicemix:servicemix-common:jar:fuse-3.0.1:compile (selected for
compile)
[DEBUG]           xml-security:xmlsec:jar:1.3.0:compile (selected for
compile)
[DEBUG]           bouncycastle:bcprov-jdk14:jar:124:compile (selected for
compile)
[DEBUG]           wss4j:wss4j:jar:1.5.0:compile (selected for compile)
[DEBUG]        
org.apache.servicemix:servicemix-common:jar:fuse-3.0.1:compile (selected for
compile)
[DEBUG]       org.mortbay.jetty:jetty-management:jar:6.0.0rc4:compile
(selected for compile)
[DEBUG]         org.mortbay.jetty:jetty:jar:6.0.0rc4:compile (selected for
compile)
[DEBUG]           org.mortbay.jetty:jetty-util:jar:6.0.0rc4:compile
(selected for compile)
[DEBUG]       org.mortbay.jetty:jetty:jar:6.0.0rc4:compile (selected for
compile)
[DEBUG]         org.mortbay.jetty:jetty-util:jar:6.0.0rc4:compile (selected
for compile)
[DEBUG]       commons-httpclient:commons-httpclient:jar:3.0:compile
(selected for compile)
[DEBUG]         commons-logging:commons-logging:jar:1.0.3:compile (selected
for compile)
[DEBUG]         commons-codec:commons-codec:jar:1.2:compile (selected for
compile)
[DEBUG]  
com.mycompany:external-service-http-provider2:jar:1.0-SNAPSHOT:compile
(selected for compile)
[DEBUG] Configuring mojo
'org.apache.servicemix.tooling:jbi-maven-plugin:fuse-3.0.1:projectDeploy'
-->
[DEBUG]   (f) containerName = ServiceMix
[DEBUG]   (f) deployDependencies = false
[DEBUG]   (f) host = localhost
[DEBUG]   (f) jmxDomainName = org.apache.servicemix
[DEBUG]   (f) jndiPath = /jmxrmi
[DEBUG]   (f) localRepo = [local] -> file://C:\Documents and
Settings\Owner\.m2\repository
[DEBUG]   (f) password = smx
[DEBUG]   (f) port = 1099
[DEBUG]   (f) project = org.apache.maven.project.MavenProject@b1a8d76e
[DEBUG]   (f) remoteRepos = [[logicblaze] ->
http://repo.logicblaze.com/maven2-all/, [central] ->
http://repo1.maven.org/maven2]
[DEBUG]   (f) serverProtocol = rmi
[DEBUG]   (f) username = smx
[DEBUG]   (f) workDirectory = D:\TOOLS\DEVELOPING
TOOLS\eclipse\eclipse2\eclipse\workspace\external-service-assembly\target\external-service-assembly-1.0-SNAPSHOT-installer
[DEBUG] -- end configuration --
[INFO] jbi:projectDeploy
[INFO] snapshot com.mycompany:external-service-assembly:1.0-SNAPSHOT:
checking for updates from logicblaze
[DEBUG] repository metadata for: 'snapshot
com.mycompany:external-service-assembly:1.0-SNAPSHOT' could not be found on
repository: logicblaze
[DEBUG] Skipping disabled repository central
[DEBUG] external-service-assembly: using locally installed snapshot
[DEBUG] Checking for dependency from project servicemix-http
[DEBUG] Adding dependency from project servicemix-http
[DEBUG] Checking for dependency from project servicemix-shared
[DEBUG] Adding dependency from project servicemix-shared
[INFO] ------------------ Deployment Analysis --------------------
[INFO] A custom project has 2 child dependencies
[INFO]  - jbi-service-assembly : C:\Documents and
Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
[INFO]  - jbi-component : C:\Documents and
Settings\Owner\.m2\repository\org\apache\servicemix\servicemix-http\fuse-3.0.1\servicemix-http-fuse-3.0.1-installer.zip
[INFO]  - jbi-shared-library : C:\Documents and
Settings\Owner\.m2\repository\org\apache\servicemix\servicemix-shared\fuse-3.0.1\servicemix-shared-fuse-3.0.1-installer.zip
[INFO] -----------------------------------------------------------
[INFO] external-service-assembly is deployed
[INFO] Stopping external-service-assembly
[INFO] Undeploying C:\Documents and
Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
[INFO] Deploying jbi-service-assembly from C:\Documents and
Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
[INFO] Starting external-service-assembly
[INFO]
----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 143 second
[INFO] Finished at: Wed Jan 17 13:02:16 CST 2007
[INFO] Memory 2M/23M
[INFO]
----------------------------------------------------------------------------
[INFO] Error for project: A custom project (during install)
[INFO]
------------------------------------------------------------------------
[INFO] The service unit external-service-http-provider2 does not have a
dependency which is packaged as a jbi-component or a project property
'componentName'
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace The service unit external-service-http-provider2 does not have
a dependency which is packaged as a jbi-component or a project property
'componentName'
[INFO]
------------------------------------------------------------------------
[ERROR] reactor-execute : D:\TOOLS\DEVELOPING
TOOLS\eclipse\eclipse2\eclipse\workspace\external-service-assembly
FATAL ERROR: Error executing Maven for a project
[INFO] BUILD ERRORS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 minutes 42 seconds
[INFO] Finished at: Wed Jan 17 13:02:16 CST 2007
Exception in thread "main" java.lang.RuntimeException: Apache Maven build
exception [Some builds failed]
	at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:110)
Caused by: org.apache.maven.reactor.MavenExecutionException: Some builds
failed
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:210)
	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:690)
	at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:107)
[INFO] Final Memory: 12M/23M
[INFO]
------------------------------------------------------------------------



bsnyder wrote:
> 
> On 1/16/07, beyond30lyc <be...@163.com> wrote:
>>
>> Thank you,I have done that after you told me.but i still do not find the
>> answer.
> 
> Without more information, we can't really troubleshoot the issue. Can
> you post the debug log?
> 
>> But i can deploy the consumer and the provider to different
>> assemblyies?Why?
> 
> If the consumer and the provider are each separate service units (SU)
> then you can package them each in separate service assemblies (SA) if
> you want.
> 
>> Can you give me an answer please,I did that in the FUSE IDE
> 
> Again, we need to see the debug logs. Please post them.
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
> 
> 

-- 
View this message in context: http://www.nabble.com/Expose-external-web-service-with-http-component-%28very-simplified%29-tf3014055s12049.html#a8404798
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Expose external web service with http-component (very simplified)

Posted by Bruce Snyder <br...@gmail.com>.
On 1/16/07, beyond30lyc <be...@163.com> wrote:
>
> Thank you,I have done that after you told me.but i still do not find the
> answer.

Without more information, we can't really troubleshoot the issue. Can
you post the debug log?

> But i can deploy the consumer and the provider to different
> assemblyies?Why?

If the consumer and the provider are each separate service units (SU)
then you can package them each in separate service assemblies (SA) if
you want.

> Can you give me an answer please,I did that in the FUSE IDE

Again, we need to see the debug logs. Please post them.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: Expose external web service with http-component (very simplified)

Posted by beyond30lyc <be...@163.com>.
Thank you,I have done that after you told me.but i still do not find the
answer.  But i can deploy the consumer and the provider to different
assemblyies?Why? Can you give me an answer please,I did that in the FUSE IDE

bsnyder wrote:
> 
> On 1/16/07, beyond30lyc <be...@163.com> wrote:
>>
>> Hello,i want to expose .NET external web service to the jbi using your
>> method.my http consumer project is named external-service-consumer,and
>> the
>> http provider is named external-service-provider,the assembly is named
>> external-service-assembly.
>> I have already installed the consumer and the provider.but when i deploy
>> the
>> assembly,an error occurs as below:
>> [ERROR] mojo-execute : jbi:generate-jbi-service-assembly-descriptor
>> Diagnosis: The service unit external-service-http-provider does not have
>> a
>> dependency which is packaged as a jbi-component or a project property
>> 'componentName'
>> FATAL ERROR: Error executing Maven for a project
>> [ERROR] project-execute :
>> com.mycompany:external-service-assembly:jbi-service-assembly:1.0-SNAPSHOT
>> (
>> task-segment: [install, jbi:projectDeploy] )
>> Diagnosis: The service unit external-service-http-provider does not have
>> a
>> dependency which is packaged as a jbi-component or a project property
>> 'componentName'
>> FATAL ERROR: Error executing Maven for a project
>> [INFO] jbi:projectDeploy
>> [INFO] snapshot com.mycompany:external-service-assembly:1.0-SNAPSHOT:
>> checking for updates from logicblaze
>> [INFO] ------------------ Deployment Analysis --------------------
>> [INFO] A custom project has 2 child dependencies
>> [INFO]  - jbi-service-assembly : C:\Documents and
>> Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
>> [INFO]  - jbi-component : C:\Documents and
>> Settings\Owner\.m2\repository\org\apache\servicemix\servicemix-http\fuse-3.0.1\servicemix-http-fuse-3.0.1-installer.zip
>> [INFO]  - jbi-shared-library : C:\Documents and
>> Settings\Owner\.m2\repository\org\apache\servicemix\servicemix-shared\fuse-3.0.1\servicemix-shared-fuse-3.0.1-installer.zip
>> [INFO] -----------------------------------------------------------
>> [INFO] external-service-assembly is deployed
>> [INFO] Stopping external-service-assembly
>> [INFO] Undeploying C:\Documents and
>> Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
>> [INFO] Deploying jbi-service-assembly from C:\Documents and
>> Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
>> [INFO] Starting external-service-assembly
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] BUILD SUCCESSFUL
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] Total time: 206 second
>> [INFO] Finished at: Tue Jan 16 16:52:38 CST 2007
>> [INFO] Memory 10M/24M
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] Error for project: A custom project (during install)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The service unit external-service-http-provider does not have a
>> dependency which is packaged as a jbi-component or a project property
>> 'componentName'
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace The service unit external-service-http-provider does not
>> have a
>> dependency which is packaged as a jbi-component or a project property
>> 'componentName'
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] reactor-execute : D:\TOOLS\DEVELOPING
>> TOOLS\eclipse\eclipse2\eclipse\workspace\external-service-assembly
>> FATAL ERROR: Error executing Maven for a project
>> [INFO] BUILD ERRORS
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 5 minutes 4 seconds
>> [INFO] Finished at: Tue Jan 16 16:52:38 CST 2007
>> [INFO] Final Memory: 10M/24M
>> [INFO]
>> ------------------------------------------------------------------------
>> Exception in thread "main" java.lang.RuntimeException: Apache Maven build
>> exception [Some builds failed]
>>         at
>> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:110)
>> Caused by: org.apache.maven.reactor.MavenExecutionException: Some builds
>> failed
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:210)
>>         at
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:690)
>>         at
>> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:107)
> 
> If you enable Maven's debug level output you should see a more
> descriptive error. To enable Maven debug level output in the FUSE IDE,
> go to Preferences->Maven2 and select Debug Output. The other option is
> to compile the projects from the command line using the following
> command:
> 
> mvn -X clean install
> 
> The -X will enable Maven debug level output.
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
> 
> 

-- 
View this message in context: http://www.nabble.com/Expose-external-web-service-with-http-component-%28very-simplified%29-tf3014055s12049.html#a8402878
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Expose external web service with http-component (very simplified)

Posted by Bruce Snyder <br...@gmail.com>.
On 1/16/07, beyond30lyc <be...@163.com> wrote:
>
> Hello,i want to expose .NET external web service to the jbi using your
> method.my http consumer project is named external-service-consumer,and the
> http provider is named external-service-provider,the assembly is named
> external-service-assembly.
> I have already installed the consumer and the provider.but when i deploy the
> assembly,an error occurs as below:
> [ERROR] mojo-execute : jbi:generate-jbi-service-assembly-descriptor
> Diagnosis: The service unit external-service-http-provider does not have a
> dependency which is packaged as a jbi-component or a project property
> 'componentName'
> FATAL ERROR: Error executing Maven for a project
> [ERROR] project-execute :
> com.mycompany:external-service-assembly:jbi-service-assembly:1.0-SNAPSHOT (
> task-segment: [install, jbi:projectDeploy] )
> Diagnosis: The service unit external-service-http-provider does not have a
> dependency which is packaged as a jbi-component or a project property
> 'componentName'
> FATAL ERROR: Error executing Maven for a project
> [INFO] jbi:projectDeploy
> [INFO] snapshot com.mycompany:external-service-assembly:1.0-SNAPSHOT:
> checking for updates from logicblaze
> [INFO] ------------------ Deployment Analysis --------------------
> [INFO] A custom project has 2 child dependencies
> [INFO]  - jbi-service-assembly : C:\Documents and
> Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
> [INFO]  - jbi-component : C:\Documents and
> Settings\Owner\.m2\repository\org\apache\servicemix\servicemix-http\fuse-3.0.1\servicemix-http-fuse-3.0.1-installer.zip
> [INFO]  - jbi-shared-library : C:\Documents and
> Settings\Owner\.m2\repository\org\apache\servicemix\servicemix-shared\fuse-3.0.1\servicemix-shared-fuse-3.0.1-installer.zip
> [INFO] -----------------------------------------------------------
> [INFO] external-service-assembly is deployed
> [INFO] Stopping external-service-assembly
> [INFO] Undeploying C:\Documents and
> Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
> [INFO] Deploying jbi-service-assembly from C:\Documents and
> Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
> [INFO] Starting external-service-assembly
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Total time: 206 second
> [INFO] Finished at: Tue Jan 16 16:52:38 CST 2007
> [INFO] Memory 10M/24M
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Error for project: A custom project (during install)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The service unit external-service-http-provider does not have a
> dependency which is packaged as a jbi-component or a project property
> 'componentName'
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace The service unit external-service-http-provider does not have a
> dependency which is packaged as a jbi-component or a project property
> 'componentName'
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] reactor-execute : D:\TOOLS\DEVELOPING
> TOOLS\eclipse\eclipse2\eclipse\workspace\external-service-assembly
> FATAL ERROR: Error executing Maven for a project
> [INFO] BUILD ERRORS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5 minutes 4 seconds
> [INFO] Finished at: Tue Jan 16 16:52:38 CST 2007
> [INFO] Final Memory: 10M/24M
> [INFO]
> ------------------------------------------------------------------------
> Exception in thread "main" java.lang.RuntimeException: Apache Maven build
> exception [Some builds failed]
>         at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:110)
> Caused by: org.apache.maven.reactor.MavenExecutionException: Some builds
> failed
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:210)
>         at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:690)
>         at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:107)

If you enable Maven's debug level output you should see a more
descriptive error. To enable Maven debug level output in the FUSE IDE,
go to Preferences->Maven2 and select Debug Output. The other option is
to compile the projects from the command line using the following
command:

mvn -X clean install

The -X will enable Maven debug level output.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: Expose external web service with http-component (very simplified)

Posted by beyond30lyc <be...@163.com>.
Hello,i want to expose .NET external web service to the jbi using your
method.my http consumer project is named external-service-consumer,and the
http provider is named external-service-provider,the assembly is named
external-service-assembly.
I have already installed the consumer and the provider.but when i deploy the
assembly,an error occurs as below:
[ERROR] mojo-execute : jbi:generate-jbi-service-assembly-descriptor
Diagnosis: The service unit external-service-http-provider does not have a
dependency which is packaged as a jbi-component or a project property
'componentName'
FATAL ERROR: Error executing Maven for a project
[ERROR] project-execute :
com.mycompany:external-service-assembly:jbi-service-assembly:1.0-SNAPSHOT ( 
task-segment: [install, jbi:projectDeploy] )
Diagnosis: The service unit external-service-http-provider does not have a
dependency which is packaged as a jbi-component or a project property
'componentName'
FATAL ERROR: Error executing Maven for a project
[INFO] jbi:projectDeploy
[INFO] snapshot com.mycompany:external-service-assembly:1.0-SNAPSHOT:
checking for updates from logicblaze
[INFO] ------------------ Deployment Analysis --------------------
[INFO] A custom project has 2 child dependencies
[INFO]  - jbi-service-assembly : C:\Documents and
Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
[INFO]  - jbi-component : C:\Documents and
Settings\Owner\.m2\repository\org\apache\servicemix\servicemix-http\fuse-3.0.1\servicemix-http-fuse-3.0.1-installer.zip
[INFO]  - jbi-shared-library : C:\Documents and
Settings\Owner\.m2\repository\org\apache\servicemix\servicemix-shared\fuse-3.0.1\servicemix-shared-fuse-3.0.1-installer.zip
[INFO] -----------------------------------------------------------
[INFO] external-service-assembly is deployed
[INFO] Stopping external-service-assembly
[INFO] Undeploying C:\Documents and
Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
[INFO] Deploying jbi-service-assembly from C:\Documents and
Settings\Owner\.m2\repository\com\mycompany\external-service-assembly\1.0-SNAPSHOT\external-service-assembly-1.0-SNAPSHOT.zip
[INFO] Starting external-service-assembly
[INFO]
----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 206 second
[INFO] Finished at: Tue Jan 16 16:52:38 CST 2007
[INFO] Memory 10M/24M
[INFO]
----------------------------------------------------------------------------
[INFO] Error for project: A custom project (during install)
[INFO]
------------------------------------------------------------------------
[INFO] The service unit external-service-http-provider does not have a
dependency which is packaged as a jbi-component or a project property
'componentName'
[INFO]
------------------------------------------------------------------------
[INFO] Trace The service unit external-service-http-provider does not have a
dependency which is packaged as a jbi-component or a project property
'componentName'
[INFO]
------------------------------------------------------------------------
[ERROR] reactor-execute : D:\TOOLS\DEVELOPING
TOOLS\eclipse\eclipse2\eclipse\workspace\external-service-assembly
FATAL ERROR: Error executing Maven for a project
[INFO] BUILD ERRORS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5 minutes 4 seconds
[INFO] Finished at: Tue Jan 16 16:52:38 CST 2007
[INFO] Final Memory: 10M/24M
[INFO]
------------------------------------------------------------------------
Exception in thread "main" java.lang.RuntimeException: Apache Maven build
exception [Some builds failed]
	at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:110)
Caused by: org.apache.maven.reactor.MavenExecutionException: Some builds
failed
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:210)
	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:690)
	at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:107)


pascale4 wrote:
> 
> Hi,
> after a lot of test I learnt how to expose an external web service through
> http-component.
> 
> Suppose you have a web service with this wsdl :
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions
> targetNamespace="http://localhost:8080/helloworldws/services/HelloWorldService"
> xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:impl="http://localhost:8080/helloworldws/services/HelloWorldService"
> xmlns:intf="http://localhost:8080/helloworldws/services/HelloWorldService"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <wsdl:types/>
>   <wsdl:message name="echoResponse">
>     <wsdl:part name="echoReturn" type="xsd:string"/>
>   </wsdl:message>
>   <wsdl:message name="echoRequest">
>   </wsdl:message>
>   <wsdl:portType name="HelloWorldService">
>     <wsdl:operation name="echo">
>       <wsdl:input message="impl:echoRequest" name="echoRequest"/>
>       <wsdl:output message="impl:echoResponse" name="echoResponse"/>
>     </wsdl:operation>
>   </wsdl:portType>
>   <wsdl:binding name="HelloWorldServiceSoapBinding"
> type="impl:HelloWorldService">
>     <wsdlsoap:binding style="rpc"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>     <wsdl:operation name="echo">
>       <wsdlsoap:operation soapAction=""/>
>       <wsdl:input name="echoRequest">
>         <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://localhost:8080/helloworldws/services/HelloWorldService"
> use="encoded"/>
>       </wsdl:input>
>       <wsdl:output name="echoResponse">
>         <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://localhost:8080/helloworldws/services/HelloWorldService"
> use="encoded"/>
>       </wsdl:output>
>     </wsdl:operation>
>   </wsdl:binding>
>   <wsdl:service name="HelloWorldServiceService">
>     <wsdl:port binding="impl:HelloWorldServiceSoapBinding"
> name="HelloWorldService">
>       <wsdlsoap:address
> location="http://localhost:8080/helloworldws/services/HelloWorldService"/>
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> 
> Then you have to define an http-component provider with this xbean.xml :
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans
>         xmlns:http="http://servicemix.apache.org/http/1.0"
>        
> xmlns:ns1="http://localhost:8080/helloworldws/services/HelloWorldService"
>>
> <http:endpoint
>         service="ns1:HelloWorldServiceService"
>         endpoint="HelloWorldService"
>         role="provider"
>        
> locationURI="http://localhost:8080/helloworldws/services/HelloWorldService"
>        
> wsdlResource="http://localhost:8080/helloworldws/services/HelloWorldService?wsdl"
> />
> </beans>
> 
> where
> - ns1 : must match namespaces in wsdl
> - service : must match value of attribute name of element wsdl:service in
> wsdl
>   <wsdl:service name="HelloWorldServiceService">
> - endpoint : must match value of attribute name of element wsdl:port
>     <wsdl:port binding="impl:HelloWorldServiceSoapBinding"
> name="HelloWorldService">
> 
> Now you have to define http-component consumer with this xbean.xml :
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans
>         xmlns:http="http://servicemix.apache.org/http/1.0"
>        
> xmlns:ns1="http://localhost:8080/helloworldws/services/HelloWorldService"
>>
> <http:endpoint
>         service="ns1:HelloWorldServiceConsumer"
>         endpoint="HelloWorldEndpointConsumer"
>         role="consumer"
>         targetService="ns1:HelloWorldServiceService"
>         locationURI="http://localhost:8192/services/HelloWorldService/"
>         defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> />
> </beans>
> 
> where
> - ns1 : must match namespaces in wsdl
> - targetService : must match service value in xbean.xml of provider
> <http:endpoint
>         service="ns1:HelloWorldServiceService"
>         endpoint="HelloWorldService"
>         role="provider"
> 
> And this is the jbi.xml of Service Assembly :
> <?xml version="1.0" encoding="UTF-8"?>
> <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
>   <service-assembly>
>     <identification>
>       <name>helloworld-sa</name>
>       <description>Codices :: HelloWorld :: SA</description>
>     </identification>
>     <service-unit>
>       <identification>
>         <name>http-su-provider</name>
>         <description>Http BC provider</description>
>       </identification>
>       <target>
>         <artifacts-zip>http-su-provider.zip</artifacts-zip>
>         <component-name>servicemix-http</component-name>
>       </target>
>     </service-unit>
>     <service-unit>
>       <identification>
>         <name>http-su-consumer</name>
>         <description>Http BC consumer</description>
>       </identification>
>       <target>
>         <artifacts-zip>http-su-consumer.zip</artifacts-zip>
>         <component-name>servicemix-http</component-name>
>       </target>
>     </service-unit>
>   </service-assembly>
> </jbi>
> 
> That's all folks
> 
> This is the source  http://www.nabble.com/file/5642/helloworld-sa.zip
> helloworld-sa.zip 
> 
> Massimo
> 

-- 
View this message in context: http://www.nabble.com/Expose-external-web-service-with-http-component-%28very-simplified%29-tf3014055s12049.html#a8386698
Sent from the ServiceMix - User mailing list archive at Nabble.com.