activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Snyder <bruce.sny...@gmail.com>
Subject Re: ActiveMq integration with Spring 2.5
Date Wed, 26 May 2010 13:52:57 GMT
On Tue, May 25, 2010 at 9:48 PM, zzcat <evolye@gmail.com> wrote:
>
> Hi Gary , even if I updated my spring to 2.5.6 , I still got the same error.
> Here is my stack trace. It says can't find
> "org.springframework.transaction.support.TransactionSynchronizationUtils.sameResourceFactory"
>
> actually this method does exist in 2.5.5. I guess there're some other
> issues.
>
> 10:23:49 ERROR Context initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name
> 'org.springframework.jms.listener.DefaultMessageListenerContainer#0' defined
> in ServletContext resource
> [/WEB-INF/config/spring/component/applicationContext-jms-activemq5.xml]:
> Invocation of init method failed; nested exception is
> java.lang.NoSuchMethodError:
> org.springframework.transaction.support.TransactionSynchronizationUtils.sameResourceFactory(Lorg/springframework/transaction/support/ResourceTransactionManager;Ljava/lang/Object;)Z

I answered this question on StackOverflow:

http://stackoverflow.com/questions/2905279/activemq-integration-with-spring-2-5/

I think it's because you have an older version of the spring-tx jar
first in your classpath.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder

Mime
View raw message