I'm trying to add AspectJ capabalities into my spring(2.0.2)-JBoss(4.05) application and have some problems.
when the application is started i get the following exception:
the bean transactionManager is defined in applicationContext-dao.xml:Code:10:19:59,421 ERROR [ContextLoader] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in URL [jar:file:/D:/dev/projects/stargate/stargate-ui/exploded/stargate.war/WEB-INF/lib/stargate-domain-1.0-SNAPSHOT.jar!/applicationContext-dao.xml]: Initialization of bean failed; nested exception is org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException: warning can't determine implemented interfaces of missing type $Proxy53 [Xlint:cantFindType] Caused by: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException: warning can't determine implemented interfaces of missing type $Proxy53 [Xlint:cantFindType] at org.aspectj.weaver.reflect.ReflectionWorld$ExceptionBasedMessageHandler.handleMessage(ReflectionWorld.java:163)
on file applicationContext-service.xml i have the following aop configurations:Code:<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="dataSource" ref="dataSource"/> <property name="mappingResources"> <list> <value>hibernate/User.hbm.xml</value> </list> </property> </bean> <!-- Transaction manager for a single Hibernate SessionFactory --> <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory" ref="sessionFactory"/> </bean>
Now, when i run integration test that loads the context everything seems to work fine. the problem seems to happen only when i deploy my application to JBoss. does anyone have an idea?Code:<aop:aspectj-autoproxy/> <!-- the transactional advice (i.e. what 'happens'; see the <aop:advisor/> bean below) --> <tx:advice id="txAdvice" transaction-manager="transactionManager"> <!-- the transactional semantics... --> <tx:attributes> <!-- all methods starting with 'get' are read-only --> <tx:method name="get*" read-only="true"/> <!-- other methods use the default transaction settings (see below) --> <tx:method name="*"/> </tx:attributes> </tx:advice> <aop:config> <aop:pointcut id="businessServiceOperation" expression="execution(* com.supportspace.stargate.service.*Manager.*(..))" /> <aop:advisor advice-ref="txAdvice" pointcut-ref="businessServiceOperation" order="10"/> </aop:config>


Reply With Quote
