Help!

        I have a whole system application developed in Tuscany 1.4 and Im adding new services to the composite file, unfortunately I discovered that json-p binding is not available on version 1.4, I have talked with one of the tuscany development team members and he instructed me to port the json-p functionality from version 2.0 to version 1.4, but I have no idea on how to do that...

        I started by adding the piece of xml code in my original (1.4) composite file:

        <component name="HelloWorldComponent">
        <implementation.java class="helloworld.HelloWorldImpl"/>
        <service name="HelloWorldService" >
            <tuscany:binding.jsonp />
        </service>
    </component>  
 
    <component name="HelloWorldClient">
        <implementation.java class="helloworld.HelloWorldClient"/>
        <reference name="ref" >
            <tuscany:binding.jsonp uri="http://localhost:8081/HelloWorldComponent/HelloWorldService"/>
            <!-- tuscany:binding.jsonp uri="http://localhost:8081/HelloWorldComponent/HelloWorldService" -->
        </reference>
    </component>    

These components (HelloWorldComponent , HelloWorldClient) I got from the Tuscany SVNs projects : binding-jsonp and binding-jsonp-runtime. And Im trying to make it work in my environment.

Im running it on TomCat, and the console shows:

pr 6, 2010 11:32:01 AM org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor read
WARNING: Element {http://tuscany.apache.org/xmlns/sca/1.0}binding.jsonp cannot be processed. ([row,col {unknown-source}]: [28,13])
Apr 6, 2010 11:32:01 AM org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor
WARNING: Element {http://tuscany.apache.org/xmlns/sca/1.0}binding.jsonp cannot be processed. ([row,col {unknown-source}]: [28,13])
Apr 6, 2010 11:32:01 AM org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor read
WARNING: Element {http://tuscany.apache.org/xmlns/sca/1.0}binding.jsonp cannot be processed. ([row,col {unknown-source}]: [35,13])
Apr 6, 2010 11:32:01 AM org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor
WARNING: Element {http://tuscany.apache.org/xmlns/sca/1.0}binding.jsonp cannot be processed. ([row,col {unknown-source}]: [35,13])
Apr 6, 2010 11:32:04 AM org.apache.tuscany.sca.assembly.builder.impl.ComponentConfigurationBuilderImpl
WARNING: Service not found for component service: Component = HelloWorldComponent Service = HelloWorldService
Apr 6, 2010 11:32:04 AM org.apache.tuscany.sca.assembly.builder.impl.ComponentConfigurationBuilderImpl
SEVERE: Reference not found for component reference: Component = HelloWorldClient Reference = ref
Apr 6, 2010 11:32:04 AM org.apache.tuscany.sca.assembly.builder.impl.ComponentConfigurationBuilderImpl
WARNING: No type specified on component property: Component = HelloWorldClient Property = ref
Apr 6, 2010 11:32:04 AM org.apache.tuscany.sca.assembly.builder.impl.CompositeBindingURIBuilderImpl
WARNING: Service not found for component service: Component = HelloWorldComponent Service = HelloWorldService
Apr 6, 2010 11:32:04 AM org.apache.tuscany.sca.assembly.builder.impl.CompositeBindingURIBuilderImpl
SEVERE: Reference not found for component reference: Component = HelloWorldClient Reference = ref
Apr 6, 2010 11:32:04 AM org.apache.tuscany.sca.assembly.builder.impl.CompositeBindingURIBuilderImpl
WARNING: No type specified on component property: Component = HelloWorldClient Property = ref

I guess I need to make the 'json-p' binding be recognized by the Tuscany 1.4 mechanism, but I dont know how to do it.

I would appreciate if you can give a roadmap to implement it.


Thanks a lot!
____________________________________________

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: fabianoa@br.ibm.com
 Phone: +55 41 2141-4864
 Tie-line: 732-4864
 Mobile: +55 41 8861-9212
Please consider the environment before printing this email
P