Jencks has been upgraded to version 2.0.
You need to supply a reference to the transaction manager.
Add the following lines in your config file:

   <bean id="transactionManager"
class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiName" value="java:comp/env/smx/TransactionManager"/>
  </bean>

and change your work manager factory to:

<bean id="workManager" class="org.jencks.factory.WorkManagerFactoryBean">
        <property name="threadPoolSize" value="50"/>
        <property name="transactionManager" ref="transactionManager" />
</bean>

On 12/18/06, moraleslos <[EMAIL PROTECTED]> wrote:

When upgrading SMX from 3.0.1 to 3.1 and deploying my sa, I get this error on
bootstrap:

***************************
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'workManager' defined in file
[C:\apache-servicemix-3.1\data\smx\service-assemblies\music-test-jbi\version_1\sus\servicemix-lwcontainer\test-servicemix-music\servicemix.xml]:
Invocation of init method failed; nested exception is
org.springframework.beans.FatalBeanException: Geronimo transaction manager
was not set
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1027)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:140)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:270)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
        at
org.apache.xbean.server.spring.configuration.SpringConfiguration.<init>(SpringConfiguration.java:63)
        at
org.apache.xbean.server.spring.configuration.SpringConfigurationServiceFactory.createService(SpringConfigurationServiceFactory.java:106)
        at
org.apache.xbean.kernel.standard.ServiceManager.start(ServiceManager.java:420)
        at
org.apache.xbean.kernel.standard.ServiceManager.initialize(ServiceManager.java:200)
        at
org.apache.xbean.kernel.standard.RegistryFutureTask$RegisterCallable.call(RegistryFutureTask.java:110)
        at
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
        at
org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:409)
        ... 12 more
Caused by: org.springframework.beans.FatalBeanException: Geronimo
transaction manager was not set
        at
org.jencks.factory.WorkManagerFactoryBean.afterPropertiesSet(WorkManagerFactoryBean.java:69)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1057)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1024)
        ... 26 more
***********************************

My workmanager bean definition is just this:


<bean id="workManager" class="org.jencks.factory.WorkManagerFactoryBean">
        <property name="threadPoolSize" value="50"/>
</bean>


this all works on 3.0.1.  Do I need to change something in my code to get it
up and running on 3.1?  Thanks in advance.

-los
--
View this message in context: 
http://www.nabble.com/%22Geronimo-transaction-manager-was-not-set%22-when-using-SMX-3.1-tf2840344s12049.html#a7929978
Sent from the ServiceMix - User mailing list archive at Nabble.com.




--
Cheers,
Guillaume Nodet

Reply via email to