aspose file tools*
The moose likes Other Application Frameworks and the fly likes Spring/XFire in OSGi platform Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring/XFire in OSGi platform" Watch "Spring/XFire in OSGi platform" New topic
Author

Spring/XFire in OSGi platform

Vladimir aguirre Piedragil
Greenhorn

Joined: May 14, 2007
Posts: 2
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

Joined: May 14, 2007
Posts: 2
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:

 
 
subject: Spring/XFire in OSGi platform