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/
