Put xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"; in the root XML
tag and use
<tuscany:binding.rmi> instead of <binding.rmi>

I believe the problem is RMI binding is available in Tuscany, but not in
OSOA specification which is the default name space in your .composite file.

On Tue, Jun 23, 2009 at 7:32 AM, Atul Prajapati <[email protected]>wrote:

>  Hi,
>
>
>
> I am trying to use rmi binding. When I deployed my application in jboss it
> displays warning like
>
>
>
> *WARNING: Element 
> {http://www.osoa.org/xmlns/sca/1.0}binding.rmi<http://www.osoa.org/xmlns/sca/1.0%7Dbinding.rmi>cannot
>  be processed. ([row,col {unknown-source}]: [11,8])
> *
>
> * *
>
> My composite is:
>
> * *
>
> <?xml version="1.0" encoding="UTF-8"?>
>
>
>
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"; targetNamespace="
> http://sample"; xmlns:sample="http://sample";
>
>             name="HelloWorld">
>
>
>
>             <service name="HelloWorldService"
> promote="HelloWorldServiceComponent">
>
>                         <interface.java
> interface="com.test.sca.HelloWorldService" />
>
>                         <binding.ws uri="
> http://localhost:8080/test/HelloWorldService"/>
>
>                         <reference
> target="HelloWorldServiceComponent">HelloWorldServiceComponent</reference>
>
>             </service>
>
>
>
>             <service name=" HelloWorldRemoteService"
> promote="HelloWorldServiceComponent">
>
>                         <interface.java
> interface="com.test.sca.HelloWorldService" />
>
>                         <binding.rmi host="localhost" port="8099"
> serviceName="HelloWorldRemoteService"   />
>
>                         <reference
> target="HelloWorldServiceComponent">HelloWorldServiceComponent</reference>
>
>             </service>
>
>
>
>             <component name="HelloWorldServiceComponent">
>
>                         <implementation.java
> class="com.test.sca.HelloWorldServiceImpl"/>
>
>             </component>
>
>
>
> </composite>
>
>
>
>
>
> Client Code:
>
>
>
> HelloWorldService helloWorldService = (HelloWorldService)Naming.*lookup*
> ("rmi://:8099/HelloWorldRemoteService");
>
>
>
> When I tried to connect it is giving me an exception *
> java.rmi.ConnectException*: Connection refused.
>
>
>
> Please suggest me that where I am wrong?
>
>
>
> I am using apache-tuscany-sca-1.5 and jboss-4.0.2. binding.ws is working
> fine here.
>
>
>
>
>
> * *
>
> Regards,
>
> *Atul Prajapati** *
>



-- 
Ashok Shah

Reply via email to