Hi Jean,
Thanks for the reply. This works but now i get a ClassCastException
SEVERE: Error deploying web application archive biztechwebclient.war
java.lang.ClassCastException: java.lang.String
at org.apache.tuscany.binding.axis2.builder.ExternalWebServiceBuilder.cr
eateOperationInvokers(ExternalWebServiceBuilder.java:124)
at org.apache.tuscany.binding.axis2.builder.ExternalWebServiceBuilder.cr
eateExternalServiceContextFactory(ExternalWebServiceBuilder.java:76)
Is it not getting the right reference. The reference should be the Web
Service Interface i think?
Regards
Krish
On 4/6/07, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:
Krishnakumar B wrote:
> I am trying to get a reference to a external web service in a SCA module.
>
> I am always getting a error
>
> SEVERE: Error deploying web application archive Testwebclient.war
> org.apache.tuscany.model.assembly.AssemblyInitializationException:
> Undefined ref
> erence [CarRentalManagerService]
>
> My SCA module file is
>
> <module xmlns="http://www.osoa.org/xmlns/sca/0.9"
> xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
> name="biztech.webclient">
>
> <import.wsdl wsdlLocation="wsdl/CarRentalManagerService.wsdl"/>
>
> <component name="LoginServiceComponent">
> <implementation.java
> class="com.test.biztech.client.sca.SimpleLoginServiceImpl"/>
> <references>
>
> <v:CarRentalManagerService>CarRentalManagerService</v:CarRentalManagerService>
>
> </references>
> </component>
>
> <externalService name="CarRentalManagerService">
> <interface.wsdl
> interface="http://carrental.test.com#wsdl.interface(CarRentalManagerSEI)"/>
>
> <binding.ws
>
port="http://carrental.test.com#wsdl.endpoint(CarRentalManagerService/CarRentalManagerSEI)"/>
>
> </externalService>
>
> </module>
>
> the Module Impl class has a @Reference [ SimpleLoginServiceImpl ]
>
> @Reference
> public void setCarRentalManagerSEI(CarRentalManagerSEI
> carRentalManagerSEI) {
> this.carRentalManagerSEI = carRentalManagerSEI;
> }
>
>
> Any help would be amazing as i am stuck on this.
>
> Regards
> Krish
>
Hi,
Which level of Tuscany are using?
Your implementation class says:
@Reference
public void setCarRentalManagerSEI(CarRentalManagerSEI
carRentalManagerSEI)
which will declare a reference named carRentalManagerSEI.
Can you try to change your module file as follows:
<references>
<v:carRentalManagerSEI>CarRentalManagerService</v:carRentalManagerSEI>
</references>
Hope this helps.
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]