Hi Guillaume

I've created a JIRA in XBean about this issue at
https://issues.apache.org/jira/browse/XBEAN-99, and I also provided a little
patch for it. with the update xbean-spring bundle, I can start the
servicemix.activemq bundle successfully.


Thanks
Jeff

On Nov 28, 2007 1:33 PM, Jeff Yu <[EMAIL PROTECTED]> wrote:

> This error is caused by the xbean-spring 3.3-SNAPSHOT bundle, this bundle
> can't be installed correctly, it has following error:
>
> org.osgi.framework.BundleException: Unresolved package in bundle 8:
> package; (package= com.thoughtworks.qdox.model)
>         at org.apache.felix.framework.Felix._resolveBundle(Felix.java
> :1649)
>         at org.apache.felix.framework.Felix._startBundle(Felix.java:1516)
>         at org.apache.felix.framework.Felix.startBundle (Felix.java:1469)
>         at org.apache.felix.framework.Felix.setFrameworkStartLevel(
> Felix.java:1064)
>         at org.apache.felix.framework.StartLevelImpl.run(
> StartLevelImpl.java:258)
>         at java.lang.Thread.run (Thread.java:595)
>
> So, I am thinking providing a patch for xbean-spring bundle, but there is
> a workaround for our activemq integration, that is we can use
> <Private-Package>,<Export-Package> for xbean-spring jar in our
> servicemix.activemq bundle. (I've tested it against distribution with
> today's latested code successfully). but providing a patch for xbean-spring
> seems a good solution...
>
> Thanks
> Jeff
>
>
> On Nov 28, 2007 4:53 AM, Guillaume Nodet (JIRA) <[EMAIL PROTECTED]> wrote:
>
> >
> >    [ 
> > 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.
> >
> >
>
>
> --
> Thanks
> Jeff




-- 
Thanks
Jeff

Reply via email to