-
Jun 30th, 2011, 05:54 AM
#1
JTA Configuration
Hi,
The configuration
<bean id="jotm" class="org.springframework.transaction.jta.JotmFac toryBean" />
<bean id="jmsReceiver" class="springexample.client.Receiver">
<property name="jmsTemplate102">
<ref bean="jmsQueueTemplate" />
</property>
<property name="txManager" ref="jotm" />
</bean>
<bean id="transactionManager"
class="org.springframework.transaction.jta.JtaTran sactionManager">
<property name="userTransaction" ref="jotm" />
</bean>
Error
Jun 30, 2011 4:11:57 PM org.springframework.context.support.AbstractApplic ationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlAp plicationContext@15eb0a9: startup date [Thu Jun 30 16:11:57 GMT+05:30 2011]; root of context hierarchy
Jun 30, 2011 4:11:57 PM org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [spring-mqseries-jms.xml]
Jun 30, 2011 4:11:57 PM org.springframework.beans.factory.support.DefaultL istableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@1ef9157: defining beans [jmsQueueTemplate,jmsDestinationResolver,jmsInterna lQueueConnectionFactory,jmsQueueConnectionFactory, jndiTemplate,jmsSender,jmsReceiver,dataSource,queu eDao,userTransaction,transactionManager]; root of factory hierarchy
Jun 30, 2011 4:11:58 PM org.objectweb.jotm.Jotm <init>
INFO: CAROL initialization
Jun 30, 2011 4:11:58 PM org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry destroySingletons
INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@1ef9157: defining beans [jmsQueueTemplate,jmsDestinationResolver,jmsInterna lQueueConnectionFactory,jmsQueueConnectionFactory, jndiTemplate,jmsSender,jmsReceiver,dataSource,queu eDao,userTransaction,transactionManager]; root of factory hierarchy
Exception in thread "main" org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'transactionManager' defined in class path resource [spring-mqseries-jms.xml]: Cannot create inner bean 'org.springframework.transaction.jta.JotmFactoryBe an#2ce908' of type [org.springframework.transaction.jta.JotmFactoryBea n] while setting bean property 'userTransaction'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.transaction.jta.JotmFactoryBe an#2ce908' defined in class path resource [spring-mqseries-jms.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.transaction.jta.JotmFactoryBea n]: Constructor threw exception; nested exception is java.lang.NoSuchFieldError: WRAPPED_PROTOCOL
at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveInnerBean(BeanDefinitio nValueResolver.java:281)
at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:120)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1305)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:511)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 90)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:287 )
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:557)
at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:842)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:416)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:139)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:83)
at springexample.client.Sender.main(Sender.java:26)
Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.transaction.jta.JotmFactoryBe an#2ce908' defined in class path resource [spring-mqseries-jms.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.transaction.jta.JotmFactoryBea n]: Constructor threw exception; nested exception is java.lang.NoSuchFieldError: WRAPPED_PROTOCOL
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.instantiateBean(Abstrac tAutowireCapableBeanFactory.java:946)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBeanInstance(Abst ractAutowireCapableBeanFactory.java:890)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:479)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveInnerBean(BeanDefinitio nValueResolver.java:270)
... 15 more
Caused by: org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.transaction.jta.JotmFactoryBea n]: Constructor threw exception; nested exception is java.lang.NoSuchFieldError: WRAPPED_PROTOCOL
at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:141)
at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:72)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.instantiateBean(Abstrac tAutowireCapableBeanFactory.java:938)
... 19 more
Caused by: java.lang.NoSuchFieldError: WRAPPED_PROTOCOL
at org.ow2.carol.util.configuration.CMIConfigurationH elper.getDefaultCMIEnv(CMIConfigurationHelper.java :146)
at org.ow2.carol.util.configuration.CMIConfigurationH elper.enableCMI(CMIConfigurationHelper.java:90)
at org.ow2.carol.util.configuration.ServerConfigurati onImpl.enableCMI(ServerConfigurationImpl.java:246)
at org.ow2.carol.util.configuration.ConfigurationRepo sitory.initCMIOnStartUP(ConfigurationRepository.ja va:465)
at org.ow2.carol.util.configuration.ConfigurationRepo sitory.init(ConfigurationRepository.java:442)
at org.ow2.carol.util.configuration.ConfigurationRepo sitory.init(ConfigurationRepository.java:290)
at org.ow2.carol.util.configuration.ConfigurationRepo sitory.init(ConfigurationRepository.java:267)
at org.ow2.carol.util.configuration.ConfigurationRepo sitory.init(ConfigurationRepository.java:230)
at org.ow2.carol.util.configuration.ConfigurationRepo sitory.init(ConfigurationRepository.java:519)
at org.objectweb.jotm.Jotm.<init>(Jotm.java:135)
at org.springframework.transaction.jta.JotmFactoryBea n.<init>(JotmFactoryBean.java:95)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:126)
... 21 more
Please let me know is there anything wrong in the configuration.
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules