Hi,

 

I am trying to deploy servicemix 3.0M1 web application (war provided with the latest binary) on Geronimo 1.1.

But I am getting an error when the context listener is trying to load it gives the error where Jencks is trying to invoke a non-existent constructor.

Please let me know how this issue can be resolved.

 

 

08:22:22,235 ERROR [ContextLoader] Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jbi' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.apache.geronimo.transaction.manager.TransactionManagerImpl.<init>(ILorg/apache/geronimo/transaction/manager/TransactionLog;Ljava/util/Collection;)V

java.lang.NoSuchMethodError: org.apache.geronimo.transaction.manager.TransactionManagerImpl.<init>(ILorg/apache/geronimo/transaction/manager/TransactionLog;Ljava/util/Collection;)V

            at org.jencks.factory.WorkManagerFactoryBean.getTransactionManager(WorkManagerFactoryBean.java:121)

            at org.jencks.factory.WorkManagerFactoryBean.createTransactionContextManager(WorkManagerFactoryBean.java:171)

            at org.jencks.factory.WorkManagerFactoryBean.getTransactionContextManager(WorkManagerFactoryBean.java:94)

            at org.jencks.factory.WorkManagerFactoryBean.createWorkManager(WorkManagerFactoryBean.java:175)

            at org.jencks.factory.WorkManagerFactoryBean.getWorkManager(WorkManagerFactoryBean.java:78)

            at org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(SpringJBIContainer.java:175)

            at org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:474)

            at org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:54)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)

            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)

            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)

            at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)

            at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)

            at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)

            at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)

            at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)

            at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)

            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727)

            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4162)

            at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoStandardContext.java:67)

            at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:337)

            at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31)

            at org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:192)

            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)

            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)

            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

            at org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:313)

            at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke(<generated>)

            at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)

            at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)

            at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)

            at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)

            at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)

            at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)

            at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)

            at org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$c61853e6.addContext(<generated>)

            at org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:448)

            at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:981)

            at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)

            at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)

            at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)

            at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)

            at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)

            at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:374)

            at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)

            at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:512)

            at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:493)

            at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)

            at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)

            at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)

            at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)

            at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)

            at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)

            at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)

            at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)

            at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$ac63015f.startConfiguration(<generated>)

            at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)

            at java.lang.Thread.run(Thread.java:534)

08:22:22,255 ERROR [0-m1]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jbi' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.apache.geronimo.transaction.manager.TransactionManagerImpl.<init>(ILorg/apache/geronimo/transaction/manager/TransactionLog;Ljava/util/Collection;)V

java.lang.NoSuchMethodError: org.apache.geronimo.transaction.manager.TransactionManagerImpl.<init>(ILorg/apache/geronimo/transaction/manager/TransactionLog;Ljava/util/Collection;)V

            at org.jencks.factory.WorkManagerFactoryBean.getTransactionManager(WorkManagerFactoryBean.java:121)

            at org.jencks.factory.WorkManagerFactoryBean.createTransactionContextManager(WorkManagerFactoryBean.java:171)

            at org.jencks.factory.WorkManagerFactoryBean.getTransactionContextManager(WorkManagerFactoryBean.java:94)

            at org.jencks.factory.WorkManagerFactoryBean.createWorkManager(WorkManagerFactoryBean.java:175)

            at org.jencks.factory.WorkManagerFactoryBean.getWorkManager(WorkManagerFactoryBean.java:78)

            at org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(SpringJBIContainer.java:175)

            at org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:474)

            at org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:54)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)

            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)

            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)

            at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)

            at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)

            at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)

            at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)

            at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)

            at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)

            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727)

            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4162)

            at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoStandardContext.java:67)

            at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:337)

            at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31)

            at org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:192)

            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)

            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)

            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

            at org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:313)

            at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke(<generated>)

            at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)

            at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)

            at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)

            at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)

            at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)

            at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)

            at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)

            at org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$c61853e6.addContext(<generated>)

            at org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:448)

            at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:981)

            at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)

            at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)

            at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)

            at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)

            at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)

            at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:374)

            at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)

            at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:512)

            at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:493)

            at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)

            at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)

            at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)

            at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)

            at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)

            at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)

            at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)

            at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)

            at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$ac63015f.startConfiguration(<generated>)

            at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)

            at java.lang.Thread.run(Thread.java:534)

08:22:22,285 ERROR [StandardContext] Error listenerStart

08:22:22,285 ERROR [StandardContext] Context [/servicemix-web-3.0-m1] startup failed due to previous errors

08:22:22,335 WARN  [TomcatWebAppContext] TomcatWebAppContext failed

08:22:22,335 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="default/servicemix-web-3.0-m1/1171853532471/war?J2EEApplication=null,j2eeType=WebModule,name=default/servicemix-web-3.0-m1/1171853532471/war"

java.lang.NullPointerException

            at java.util.Hashtable.put(Hashtable.java:393)

            at org.apache.naming.resources.DirContextURLStreamHandler.bind(DirContextURLStreamHandler.java:233)

            at org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:453)

            at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:981)

            at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)

            at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)

            at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)

            at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)

            at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)

            at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:374)

            at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)

            at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:512)

            at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:493)

            at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)

            at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)

            at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)

            at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)

            at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)

            at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)

            at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)

            at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)

            at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$ac63015f.startConfiguration(<generated>)

            at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)

            at java.lang.Thread.run(Thread.java:534)

 

Regards,

Anshuk Pal Chaudhuri

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***