Quick update...

It was a classloading issue. 

We package all our extended servicemix stuff together with the original
servicemix libs into the servicemix-jboss-deployer service archive to have
as few as possible in the jboss server lib directory but instead to have all
runtime dependencies in one place.

Apparently this approach is preventing us from using Spring-AOP in our
service units.

After copying the Spring-AOP libs to the the jboss server lib directory
Spring finds my AspectJ style annotated aspect classes and auto-proxies
them.

Very happy! :-)

Cheers,

Oliver.


gnodet wrote:
> 
> Try with ServiceMix standalone first, and put spring-aop in the
> lib/optional folder,
> maybe it will help.
> 
> On 6/27/07, oliver kuntze <[EMAIL PROTECTED]> wrote:
>>
>> I just tried out if Spring-AOP none-ApectJ style is working with
>> ServiceMix.
>>
>> I am running into the same kind of error.
>>
>> The exception is:
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean
>> with name 'org.springframework.aop.config.internalAutoProxyCreator':
>> Initialization of bean failed; nested exception is
>> java.lang.AbstractMethodError
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.
>> createBean(AbstractAutowireCapableBeanFactory.java:443)
>>
>> If trying to get Spring-AOP ApectJ style working with ServiceMix you get
>> the
>> following exception:
>> Caused by: org.springframework.beans.factory.BeanCreationException: Error
>> creating bean with name
>> 'org.springframework.aop.config.internalAutoProxyCreator': Initialization
>> of
>> bean failed; nested exception is java.lang.AbstractMethodError:
>> org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.
>> findCandidateAdvisors()Ljava/util/List;
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.
>> createBean(AbstractAutowireCapableBeanFactory.java:443)
>>
>> Apparently Spring's AbstractAutowireCapableBeanFactory is not able to
>> create
>> a bean with name
>> 'org.springframework.aop.config.internalAutoProxyCreator'.
>> Why? No clue.
>>
>> If anybody has ever succeeded in using Spring-AOP in ServiceMix deployed
>> in
>> a JBoss environment, please help.
>>
>> Thanks a lot!
>>
>> Cheers,
>>
>> Oliver.
> 

-- 
View this message in context: 
http://www.nabble.com/Spring-AOP-integration-in-ServiceMix-tf3975690s12049.html#a11356591
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to