Hi,

I want to access my remoting service from my eclipse rcp client (osgi). Unfortunately my service interface could not be loaded from the class loader:

java.lang.IllegalArgumentException: interface MyService is not visible from class loader
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:3 53)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.jav a:581)
at org.springframework.aop.framework.JdkDynamicAopPro xy.getProxy(JdkDynamicAopProxy.java:117)
at org.springframework.aop.framework.ProxyFactory.get Proxy(ProxyFactory.java:112)
at org.springframework.remoting.httpinvoker.HttpInvok erProxyFactoryBean.afterPropertiesSet(HttpInvokerP roxyFactoryBean.java:62)

It works from a test client without osgi.

I have dynamic number of connections to different server and determine the services like this:

final HttpInvokerProxyFactoryBean httpInvokerProxyFactoryBean = new HttpInvokerProxyFactoryBean(); httpInvokerProxyFactoryBean.setServiceInterface(Ic rMonitorService.class);
httpInvokerProxyFactoryBean.setServiceUrl(theUrl);
httpInvokerProxyFactoryBean.afterPropertiesSet();

MyService service = (MyService ) httpInvokerProxyFactoryBean.getObject();

Any idea ? Tried Eclipse-BuddyPolicy and RegisterBuddy without success.

Regards,
Oliver