Hi! I did as suggested in previous e-mail, but it´s not working yet. 

First, I just created a .jar from the project: binding-echo-extension 
(there´s the binding-echo project which I understand is a sample) and put 
it in the project´s \lib folder  and in the \tuscany-sca-1.4\modules.

I have added in my application composite file the following:

<composite 
    xmlns="http://www.osoa.org/xmlns/sca/1.0";
    xmlns:sca="http://www.osoa.org/xmlns/sca/1.0";
    xmlns:e="http://echo";
    xmlns:se="http://sample/echo";
    xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0";
    targetNamespace="http://eed";
    name="eed-rest-services"> 
...

And in the component declaration (composite file):

    <component name="RestExpertLocatorJSON">  
        <implementation.java 
class="com.ibm.eed.service.rest.ExpertLocatorPublic"/>  
        <service name="Servlet"> 
            <e:binding.echo uri="/API/locator"/> 
        </service>
    </component>


And then I´m getting the message:

        INFO: Loading contribution: 
file:/C:/EED1/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/eed-rest-services/
        04/05/2010 16:04:01 
org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor 
read
        WARNING: Element {http://echo}binding.echo cannot be processed. 
([row,col {unknown-source}]: [20,13])
        04/05/2010 16:04:01 
org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor
        WARNING: Element {http://echo}binding.echo cannot be processed. 
([row,col {unknown-source}]: [20,13])
 


Thanks & Regards,
____________________________________________ 


Fabiano Amorim Oliveira
IT Specialist - J2EE Developer
IBM Global Business Services
Sun Certified Java Programmer 6
WebSphere Application Server 7.0 Admin. Certified 

  E-mail: [email protected]
  Phone: +55 41 2141-4864
  Tie-line: 732-4864
  Mobile: +55 41 8861-9212
Please consider the environment before printing this email P



Luciano Resende <[email protected]> 
04/05/2010 13:29
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: how to make the echo-binding sample be recognized







On Tue, May 4, 2010 at 6:45 AM, <[email protected]> wrote:

I trying to create a new binding on tuscany 1.4, and in order to learn 
better on how to do that, I´m trying to make the sample: echo-binding to 
recognized when I add "<tuscany:binding.echo" on the composite file. 

What I´m doing is to create a jar from the the project : 
binding-echo-extension and put this on my project´s \lib folder  and in 
the \tuscany-sca-1.4\modules. 

I got: 

NFO: Loading contribution: 
file:/C:/EED1/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/eed-rest-services/
 

04/05/2010 10:42:14 
org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor 
read 
WARNING: Element {http://tuscany.apache.org/xmlns/sca/1.0}binding.echo 
cannot be processed. ([row,col {unknown-source}]: [20,13]) 
04/05/2010 10:42:14 
org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor 

WARNING: Element {http://tuscany.apache.org/xmlns/sca/1.0}binding.echo 
cannot be processed. ([row,col {unknown-source}]: [20,13]) 
04/05/2010 10:42:16 org.apache.tuscany.sca.node.impl.NodeImpl start


Can someone tell me exactly how to make the echo binding be recognized as 
a binding?



If you look at the binding-echo sample composite, you can see that it's 
being defined in a different namespace : <e:binding.echo while you are 
trying to use it as sca namespace : {
http://tuscany.apache.org/xmlns/sca/1.0}binding.echo.

Please follow the example in [1] to define and use the echo binding in the 
defined namespace, and it should work with the steps you mentioned (e.g 
having the jar in the lib folder)


[1] 
https://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/samples/binding-echo/src/main/resources/EchoBinding.composite


-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

Reply via email to