Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Spring/XFire in OSGi platform

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi community:

Please helpme.

I have a Web Service client (Spring-xfire implementation) running as stand-alone application (java -jar syncDatosWS.jar) very good.

I'am trying to start my client as bundle into OSGi platform (equinox implementation) and getting the next error:

org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [http://192.168.124.127/repo/vap/./ap...textSync.xml]; nested exception is java.lang.IllegalArgumentException: Class [org.springframework.beans.factory.xml.SimpleProper tyNamesp
aceHandler] does not implement the NamespaceHandler interface
Caused by: java.lang.IllegalArgumentException: Class [org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler] does not implement the NamespaceHandler interface
at org.springframework.beans.factory.xml.DefaultNames paceHandlerResolver.initHandlerMappings(DefaultNam espaceHandlerResolver.java:119)
at org.springframework.beans.factory.xml.DefaultNames paceHandlerResolver.<init>(DefaultNamespaceHandler Resolver.java:96)
at org.springframework.beans.factory.xml.DefaultNames paceHandlerResolver.<init>(DefaultNamespaceHandler Resolver.java:82)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.createDefaultNamespaceHandlerResolver( XmlBeanDefinitionReader.java:526)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:515)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:495)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:390)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:340)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:317)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:125)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:141)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:167)
at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:113)
at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:79)
at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:94)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:292)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationC ontext.java:89)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationC ontext.java:74)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationC ontext.java:65)
at mx.net.vlad.tq.osgi.actualizador.ActualizadorDatos .<init>(ActualizadorDatos.java:35)
at mx.net.vlad.tq.osgi.actualizador.OrquestadorActual izacion.actualizarOnline(OrquestadorActualizacion. java:104)
at mx.net.vlad.tq.osgi.activator.ActualizadorActivato rImpl.start(ActualizadorActivatorImpl.java:27)
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl$2.run(BundleContextImpl.java:991)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.startActivator(BundleContextImpl.java:985 )
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:966)
at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:317)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:256)
at mx.net.vlad.tq.osgi.runtime.OsgiStarter.iniciarBun dleInterno(OsgiStarter.java:261)
at mx.net.vlad.tq.osgi.runtime.OsgiStarter.run(OsgiSt arter.java:96)
at mx.net.vlad.tq.osgi.runtime.OsgiStarter.main(OsgiS tarter.java:433)
Error :: Unexpected exception parsing XML document from URL [http://192.168.124.127/repo/vap/./ap...textSync.xml]; nested exception is java.lang.IllegalArgumentException: Class [org.springframework.beans.factory.xml.SimpleProper tyNamespaceHandler] does not implement the NamespaceHandler int
erface
Unexpected exception parsing XML document from URL [http://192.168.124.127/repo/vap/./ap...textSync.xml]; nested exception is java.lang.IllegalArgumentException: Class [org.springframework.beans.factory.xml.SimpleProper tyNamespaceHandler] does not implement the NamespaceHandler interface
org.osgi.framework.BundleException: Exception in mx.net.vlad.tq.osgi.activator.ActualizadorActivato rImpl.start() of bundle Actualizador.
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.startActivator(BundleContextImpl.java:101 0)
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:966)


Enviroment: Spring 2.0.2, xfire 1.2.4, equinox 3.2.2.R32x_v20070118, windows XP.
I believe this is a class loader problem, but I don't know how to fix it. Please help me.
Thank you in advance
 
Vladimir aguirre Piedragil
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Community:

The error occurs because the spring's libraries exist in any classpath, in this case in the jar and the bundle classpath:



Solution:
Delete the spring's libraries from de jar classpath:

 
And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!