WSRegistryService is not an admin service, but it needs to get hold of the
registry hence it extends RegistryAbstractAdmin.

Since, this limitation is introduced into the core, how do I achieve my
objective?

On Tue, Jan 18, 2011 at 11:28 AM, Kasun Indrasiri <[email protected]> wrote:

> Hi,
>
> $subject.
>
> I'm using the exact same code as 'SampleWSRegistryClient.java' which is
> included in the greg samples and trying to access a registry resource.
> It gives the following exceptions when invoking the client. However, same
> client works fine with Greg 3.6.0.
> Any thoughts?
>
> main 2011-01-18 11:13:26,579 ERROR
> [ws.client.registry.WSRegistryServiceClient] Failed to perform the operation
> AbstractAdmin can only be extended by Carbon admin services.
> org.wso2.carbon.registry.ws.api.WSRegistry is not an admin service. Service
> name WSRegistryService. The service should have defined the adminService
> parameter
> org.apache.axis2.AxisFault: AbstractAdmin can only be extended by Carbon
> admin services. org.wso2.carbon.registry.ws.api.WSRegistry is not an admin
> service. Service name WSRegistryService. The service should have defined the
> adminService parameter
>  at
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:530)
> at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
>  at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
>  at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
> at
> org.wso2.carbon.registry.ws.client.WSRegistryServiceStub.wSput(WSRegistryServiceStub.java:4413)
>  at
> org.wso2.carbon.registry.ws.client.registry.WSRegistryServiceClient.put(WSRegistryServiceClient.java:280)
> at
> org.wso2.carbon.unifiedendpoint.core.SampleWSRegistryClient.main(SampleWSRegistryClient.java:69)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
>  at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)
>
>
> --
> Kasun Indrasiri
> Senior Software Engineer
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 71 536 4128
> Blog : http://kasunpanorama.blogspot.com/
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Regards,

Tharindu Mathew

Software Engineer,
WSO2 Inc.,
http://wso2.com
_______________________________________________
Carbon-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to