On Tue, May 25, 2010 at 9:48 PM, zzcat <evo...@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)u8...@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

Reply via email to