I just used Maven to download and build the ServiceMix source - no problem.
Followed the instructions to enable the ServiceMix projects in Eclipse - no
problem.
When trying to run/debug any of the examples from main() method in Main.java
an error (see logging below). The logging below is from trying to run
FilePoller. The execution gets to line 67 ( SpringJBIContainer container =
(SpringJBIContainer) context.getBean("jbi");) and fails.
I not sure what's causing this hiccup.
Thanks in advance.
...
DEBUG - CachedIntrospectionResults - Class
[org.jencks.factory.WorkManagerFactoryBean] is cache-safe
DEBUG - CollectionFactory - Creating [java.util.LinkedHashMap]
DEBUG - DefaultListableBeanFactory - Eagerly caching bean of type
[org.jencks.factory.WorkManagerFactoryBean] with name 'workManager' to allow
for resolving potential circular references
DEBUG - CollectionFactory - Creating [java.util.LinkedHashMap]
DEBUG - TypeConverterDelegate - Converting String to [int] using
property editor
[EMAIL PROTECTED]
DEBUG -
BeanWrapperImorg.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'jbi' defined in file
[C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
Cannot create inner bean '(inner bean)' while setting bean property
'activationSpecs' with key [1]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '(inner bean)#1' defined in file
[C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
Cannot create inner bean 'org.apache.servicemix.components.file.FilePoller'
while setting constructor argument with index 0; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.servicemix.components.file.FilePoller' defined in file
[C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
Cannot resolve reference to bean 'workManager' while setting bean property
'workManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'workManager' defined in file
[C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
Invocation of init method failed; nested exception is
org.springframework.beans.FatalBeanException: Geronimo transaction manager
was not set
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name '(inner bean)#1' defined in file
[C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
Cannot create inner bean 'org.apache.servicemix.components.file.FilePoller'
while setting constructor argument with index 0; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.servicemix.components.file.FilePoller' defined in file
[C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
Cannot resolve reference to bean 'workManager' while setting bean property
'workManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'workManager' defined in file
[C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
Invocation of init method failed; nested exception is
org.springframework.beans.FatalBeanException: Geronimo transaction manager
was not setpl - About to invoke write method [public void
org.jencks.factory.WorkManagerFactoryBean.setThreadPoolSize(int)] on object
of class [org.jencks.factory.WorkManagerFactoryBean]
DEBUG - BeanWrapperImpl - Invoked write method [public void
org.jencks.factory.WorkManagerFactoryBean.setThreadPoolSize(int)] with value
of type [int]
DEBUG - DefaultListableBeanFactory - Invoking BeanPostProcessors before
initialization of bean 'workManager'
DEBUG - DefaultListableBeanFactory - Invoking afterPropertiesSet() on
bean with name 'workManager'
INFO - DefaultListableBeanFactory - Destroying singletons in
{org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [jbi,workManager]; root of BeanFactory hierarchy}
Caught: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'jbi' defined in file
[C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
Cannot create inner bean '(inner bean)' while setting bean property
'activationSpecs' with key [1]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '(inner bean)#1' defined in file
[C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
Cannot create inner bean 'org.apache.servicemix.components.file.FilePoller'
while setting constructor argument with index 0; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.servicemix.components.file.FilePoller' defined in file
[C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
Cannot resolve reference to bean 'workManager' while setting bean property
'workManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'workManager' defined in file
[C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
Invocation of init method failed; nested exception is
org.springframework.beans.FatalBeanException: Geronimo transaction manager
was not set
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'org.apache.servicemix.components.file.FilePoller'
defined in file
[C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
Cannot resolve reference to bean 'workManager' while setting bean property
'workManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'workManager' defined in file
[C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
Invocation of init method failed; nested exception is
org.springframework.beans.FatalBeanException: Geronimo transaction manager
was not set
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'workManager' defined in file
[C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
Invocation of init method failed; nested exception is
org.springframework.beans.FatalBeanException: Geronimo transaction manager
was not set
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:1062)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:246)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:955)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:729)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:416)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:198)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:111)
at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:324)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:97)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:683)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:621)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:198)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:116)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:266)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:132)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:955)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:729)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:416)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
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:290)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
at
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:149)
at
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:100)
at org.apache.servicemix.Main.main(Main.java:65)
--
View this message in context:
http://www.nabble.com/-Examples--Geronimo-transaction-manager-was-not-set-tf2679734s12049.html#a7474094
Sent from the ServiceMix - User mailing list archive at Nabble.com.