Hi JB,

yes in my bundle there is directive to import org.springframework.aop.framework

Import-Package:
org.springframework.aop;
 version="[3.0.5,3.0.6)";resolution:="optional",org.springframework.ao
 p.framework;version="[3.0.5,3.0.6)";resolution:="optional",org.spring
 framework.aop.framework.adapter;version="[3.0.5,3.0.6)";resolution:="
 optional",org.springframework.aop.interceptor;version="[3.0.5,3.0.6)"
 ;resolution:="optional",org.springframework.aop.scope;version="[3.0.5
 ,3.0.6)";resolution:="optional",org.springframework.aop.support;versi
 on="[3.0.5,3.0.6)";resolution:="optional",org.springframework.aop.sup
 port.annotation;version="[3.0.5,3.0.6)";resolution:="optional",org.sp
 ringframework.aop.target;version="[3.0.5,3.0.6)";resolution:="optiona
 l",org.springframework.aop.target.dynamic;version="[3.0.5,3.0.6)";res
 olution:="optional",org.springframework.beans;version="[3.0.5,3.0.6)"


Thanks for help

--Filippo



2011/4/25 Jean-Baptiste Onofré <[email protected]>:
> 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