Hi Filippo,

do you have the Spring bundle in your Import-Package statement ?

Regards
JB

On 04/25/2011 09:49 AM, Filippo Balicchia wrote:
Hello all,

I'm working on project that is based on camel rounting.

Periodically I make a call to a server exposed with spring remoting with 2.5.6
I'm using servicemix 4.3.0 that use spring 3.0.5 and as indicated from
http://static.springsource.org/spring/docs/upgrade/spring3/html/ch04s02.html
I have add
to bundle spring-context-3.0.5.RELEASE.jar the missing class.

But when i run my project i receive the following
message

java.lang.IllegalArgumentException: interface
org.springframework.aop.SpringProxy is not visible from class loader
        at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)[:1.6.0_22]
        at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)[:1.6.0_22]
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:117)
        at 
org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:112)
        at 
org.springframework.remoting.rmi.RmiProxyFactoryBean.afterPropertiesSet(RmiProxyFactoryBean.java:72)[241:org.springframework.context:3.0.5.RELEASE]
        at 
org.apache.servicemix.examples.camel.SimpleCall.callMethodRemote(SimpleCall.java:21)[244:camel-osgi:4.3.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)[:1.6.0_22]
        
        
Of a list osgi bundle Spring AOP (3.0.5.RELEASE) is active.

Could you tell me please where i'm wrong

Cheers

--Filippo

Reply via email to