[
https://issues.apache.org/activemq/browse/SM-1065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40729
]
Guillaume Nodet commented on SM-1065:
-------------------------------------
For an unkown reason, I now have a better exception:
{code}
Exception in thread "SimpleAsyncTaskExecutor-12"
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'activemqBroker' defined in OSGi
res[/META-INF/spring/servicemix-activemq.xml|id=21|symName=org.apache.servicemix.activemq]:
Instantiation of bean failed; nested exception is
java.lang.NoClassDefFoundError: org/apache/xbean/spring/context/impl/URIEditor
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:917)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:873)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:514)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:407)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:735)
at
org.springframework.osgi.internal.context.support.AbstractDelegatedExecutionApplicationContext.postRefresh(AbstractDelegatedExecutionApplicationContext.java:218)
at
org.springframework.osgi.internal.extender.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:131)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NoClassDefFoundError:
org/apache/xbean/spring/context/impl/URIEditor
at
org.apache.activemq.xbean.BrokerFactoryBean.<clinit>(BrokerFactoryBean.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:83)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:911)
... 14 more
{code}
> ActiveMQ integration
> --------------------
>
> Key: SM-1065
> URL: https://issues.apache.org/activemq/browse/SM-1065
> Project: ServiceMix
> Issue Type: New Feature
> Reporter: Guillaume Nodet
> Assignee: Jeff Yu
> Fix For: 4.0
>
> Attachments: SM-1065.patch
>
>
> ActiveMQ jars are already OSGified, but we may want to create a bundle that
> would create a broker by default and registering a pooled connection factory
> in OSGi maybe. That way, everyone could use the ConnectionFactory registered
> in OSGi.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.