blueprint 1.0.2无法在War bundle中创建内部bean

时间:2013-08-28 02:55:47

标签: osgi blueprint

我想将处女座升级到3.6.2,但我遇到了一些奇怪的事情。战争束无法启动。根本原因是cna在战争束中加载了类。但蓝图1.0.0.M1中没有这个问题。 如果有人给我一些建议,那就太棒了。日志消息如下:

[2013-08-28 10:44:21.136] WARN region-dm-2 oegbeinternal.dependencies.startup.DependencyServiceManager Dependency factory org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.MandatoryImporterDependencyFactory@af08a49在检测beanFactory org.springframework.beans.factory.support.DefaultListableBeanFactory@6b35958b的依赖关系时引发异常:定义bean [.org.eclipse.gemini.blueprint.service.importer.support.OsgiServiceCollectionProxyFactoryBean#0,classLoaderService,resourceLocator,kernelConfigService,httpServiceConfigurationTypeHandler ,.org.eclipse.gemini.blueprint.service.exporter.support.OsgiServiceFactoryBean#0,classloaderServiceBinder,webServiceRegister,HttpService的,OSGIServiceExporter,.org.eclipse.gemini.blueprint.service.importer.support.OsgiServiceCollectionProxyFactoryBean#0#0,wsInvokeListenerManager ,.com.hp.atom.wssupport.internal.WebServicesInvokeListenerManager#0,blueprintBundle,blueprintBundleContext,blueprintContai NER,blueprintConverter]; OsgiBundleXmlApplicationContext中工厂层次结构的根(bundle = com.hp.atom.wssupport,config = bundleentry://179.fwk1169375526/OSGI-INF/blueprint/beans.xml)org.springframework.beans.factory.BeanCreationException:创建bean时出错名称' .org.eclipse.gemini.blueprint.service.importer.support.OsgiServiceCollectionProxyFactoryBean#0':无法创建内部bean'(内部bean)'类型为[org.eclipse.gemini.blueprint.config.internal.adapter.OsgiServiceLifecycleListenerAdapter]时设置bean属性' listeners'用键[0];嵌套异常是org.springframework.beans.factory.BeanCreationException:创建名为'(内部bean)的bean#1':调用init方法失败;嵌套异常是org.springframework.beans.factory.CannotLoadBeanClassException:找不到名为' webServiceRegister'的bean的类[com.hp.atom.wssupport.internal.WebServicesRegister]。在OSGi资源中定义[bundleentry://179.fwk1169375526/OSGI-INF/blueprint/beans.xml | bnd.id = 179 | bnd.sym = com.hp.atom.wssupport];嵌套异常是java.lang.ClassNotFoundException:com.hp.atom.wssupport.internal.WebServicesRegister未找到bundle [com.hp.atom.wssupport]     在org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)     在org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:125)     在org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)     在org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)     在org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:294)     在org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)     在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)     在org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)     at or.e.eclipse.gemini.blueprint.extender.internal.dependencies.startup.MandatoryImporterDependencyFactory.getServiceDependencies(MandatoryImporterDependencyFactory.java:96)     at or.e.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:355)     在org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:294)     at or.e.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:251)     在org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:177)     at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:157)     在org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager $ 1.run(LifecycleManager.java:211)     在org.eclipse.virgo.kernel.agent.dm.ContextPropagatingTaskExecutor $ 2.run(ContextPropagatingTaskExecutor.java:95)     at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(ThreadPoolExecutor.java:886)     at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:908)     在java.lang.Thread.run(Thread.java:662) 引起:org.springframework.beans.factory.BeanCreationException:创建名为'(内部bean)的bean#1':init方法的调用失败;嵌套异常是org.springframework.beans.factory.CannotLoadBeanClassException:找不到名为' webServiceRegister'的bean的类[com.hp.atom.wssupport.internal.WebServicesRegister]。在OSGi资源中定义[bundleentry://179.fwk1169375526/OSGI-INF/blueprint/beans.xml | bnd.id = 179 | bnd.sym = com.hp.atom.wssupport];嵌套异常是java.lang.ClassNotFoundException:com.hp.atom.wssupport.internal.WebServicesRegister未找到bundle [com.hp.atom.wssupport]     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)     在org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)     ...省略了22个常用帧 引起:org.springframework.beans.factory.CannotLoadBeanClassException:找不到名为' webServiceRegister'的bean的类[com.hp.atom.wssupport.internal.WebServicesRegister]在OSGi资源中定义[bundleentry://179.fwk1169375526/OSGI-INF/blueprint/beans.xml | bnd.id = 179 | bnd.sym = com.hp.atom.wssupport];嵌套异常是java.lang.ClassNotFoundException:com.hp.atom.wssupport.internal.WebServicesRegister未找到bundle [com.hp.atom.wssupport]     在org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1262)     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)     在org.springframework.beans.factory.support.AbstractBeanFactory.getType(AbstractBeanFactory.java:572)     在org.eclipse.gemini.blueprint.config.internal.adapter.OsgiServiceLifecycleListenerAdapter.initialize(OsgiServiceLifecycleListenerAdapter.java:105)     在org.eclipse.gemini.blueprint.config.internal.adapter.OsgiServiceLifecycleListenerAdapter.afterPropertiesSet(OsgiServiceLifecycleListenerAdapter.java:91)     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)     ...省略了25个常用帧 引起:java.lang.ClassNotFoundException:com.hp.atom.wssupport.internal.WebServicesRegister未找到bundle [com.hp.atom.wssupport]     在org.eclipse.gemini.blueprint.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:101)     在org.eclipse.gemini.blueprint.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:155)     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)     在org.springframework.util.ClassUtils.forName(ClassUtils.java:257)     在org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:417)     在org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1283)     在org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1254)     ...省略了31个常见帧 引起:org.eclipse.virgo.kernel.osgi.framework.ExtendedClassNotFoundException:KernelBundleClassLoader中的com.hp.atom.wssupport.internal.WebServicesRegister:[bundle = com.hp.atom.wssupport_3.1.0.SNAPSHOT]     在org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:150)     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)     在org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)     在org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)     在org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)     在org.eclipse.gemini.blueprint.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:97)     ...省略了37个常用帧 引起:java.lang.ClassNotFoundException:com.hp.atom.wssupport.internal.WebServicesRegister     在org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)     在org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)     在org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)     在org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)     在org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:146)

0 个答案:

没有答案