Problem with Spring NamespaceHandler [message #1715878] |
Fri, 27 November 2015 06:53 |
|
Hi All,
I create simple Virgo Bundle which contains Spring context, when I add 3rd party namespace and deploy it to Virgo Jetty Server 3.6.4, the following exception keeps popping up:
[2015-11-27 13:28:42.842] start-signalling-1 <DE0006E> Start failed for bundle 'VirgoTestBundle' version '1.0.0'. org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.axonframework.org/schema/core]
Offending resource: URL [bundleentry://174.fwk1188502183/META-INF/spring/context.xml]
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:316)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1416)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1409)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:184)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
at org.eclipse.gemini.blueprint.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:170)
at org.eclipse.gemini.blueprint.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:140)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)
at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:60)
at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:242)
at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:220)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:224)
at 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)
at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager$1.run(LifecycleManager.java:211)
at org.eclipse.virgo.kernel.agent.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:95)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[2015-11-27 13:28:42.852] start-signalling-1 <DE0010I> Stopping bundle 'VirgoTestBundle' version '1.0.0'.
[2015-11-27 13:28:42.856] start-signalling-1 <DE0011I> Stopped bundle 'VirgoTestBundle' version '1.0.0'.
I also deploy the 3rd party jar as plan and as standalone, I even put it in the same plan as Virgo bundle and nothing works.
I create the same OSGI bundle from Eclipse Plug-in Project and run it using OSGI Framework launcer and it works fine.
Attached is the Virgo bundle & 3rd party jar.
Any help would be greatly appreciated.
Thanks & Regards,
Setya
|
|
|
|
|
Re: Problem with Spring NamespaceHandler [message #1716270 is a reply to message #1716229] |
Wed, 02 December 2015 15:44 |
|
Hi Daniel,
Thank you for time looking out my problem.
I've tried running the bundle w/o OSGI and it worked fine.
I even run it using OSGI launcher from Eclipse succesfully.
It's when deployed in Virgo that's problematic.
I've looked at your link. The error is the same,
but my jar doesn't have dependency over multiple Spring version.
Best Regards,
Setya
|
|
|
|
Re: Problem with Spring NamespaceHandler [message #1716377 is a reply to message #1716361] |
Thu, 03 December 2015 11:11 |
|
Hi Daniel,
I did nothing special when running from Eclipse's OSGI launcher, I just include the necessary bundles including Gemini Blueprint and I can see from log Spring contexts are initialized, services are published, etc.
The only difference is the Spring version which is 3.2.1 as opposed to Virgo's (3.1.0), but this shouldn't be a problem should it ?
Thanks & Regards,
Setya
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04072 seconds