cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dhiego Abrantes de Oliveira Martins <dhi...@dhiegoabrantes.com>
Subject Re: [cxf] Problem migrating from 1.3 to 1.4 DOSGi Single Distr
Date Tue, 21 May 2013 05:12:38 GMT
Hi Christian,

I updated the framework to use version 1.4.0 of dosgi multi-bundle. When
run the framework, I got some errors.

As follow:

*(1)**: When I install and start the bundle (Service and Provider), I got
this error:*
---> *Despite the error, the service is up and run normally*.

[pool-3-thread-1] ERROR
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore - Failed to load
service endpoint interface.
javax.xml.ws.WebServiceException: Failed to load service endpoint interface.
at
org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder.findHandlerChainAnnotation(AnnotationHandlerChainBuilder.java:313)
at
org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder.buildHandlerChainFromClass(AnnotationHandlerChainBuilder.java:77)
at
org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder.buildHandlerChainFromClass(AnnotationHandlerChainBuilder.java:285)
at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.buildHandlerChain(JaxWsServerFactoryBean.java:249)
at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.initializeResourcesAndHandlerChain(JaxWsServerFactoryBean.java:227)
at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:212)
at
org.apache.cxf.dosgi.dsw.handlers.AbstractPojoConfigurationTypeHandler.createServerFromFactory(AbstractPojoConfigurationTypeHandler.java:208)
at
org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.createServer(PojoConfigurationTypeHandler.java:117)
at
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:120)
at
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:71)
at
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:64)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:64)
at
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:37)
at
org.apache.cxf.dosgi.topologymanager.exporter.TopologyManagerExport.doExportService(TopologyManagerExport.java:250)
at
org.apache.cxf.dosgi.topologymanager.exporter.TopologyManagerExport.access$200(TopologyManagerExport.java:51)
at
org.apache.cxf.dosgi.topologymanager.exporter.TopologyManagerExport$3.run(TopologyManagerExport.java:214)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
*Caused by: java.lang.ClassNotFoundException: br.dhiego.ws.HiService not
found by HiServiceImpl [93]
*at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
at
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at
org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass2(ClassLoaderUtils.java:287)
at
org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:261)
at
org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder.findHandlerChainAnnotation(AnnotationHandlerChainBuilder.java:311)
... 19 more


*(2) When I try to stop or uninstall the Service provider, I got the error
below and the service is keep running.
*FelixDispatchQueue] DEBUG org.apache.felix.ipojo - FrameworkEvent ERROR -
org.apache.felix.ipojo
org.osgi.framework.ServiceException: Service factory returned null.
at
org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:341)
at
org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:219)
at
org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:320)
at org.apache.felix.framework.Felix.getService(Felix.java:3568)
at
org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:468)
at org.apache.felix.ipojo.IPojoContext.getService(IPojoContext.java:260)
at org.apache.felix.ipojo.util.Tracker.getService(Tracker.java:449)
at
org.apache.felix.ipojo.util.DependencyModel.ungetService(DependencyModel.java:927)
at
org.apache.felix.ipojo.util.DependencyModel.manageDeparture(DependencyModel.java:435)
at
org.apache.felix.ipojo.util.DependencyModel.removedService(DependencyModel.java:424)
at org.apache.felix.ipojo.util.Tracker$Tracked.untrack(Tracker.java:752)
at
org.apache.felix.ipojo.util.Tracker$Tracked.serviceChanged(Tracker.java:651)
at
org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
at
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
at
org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
at org.apache.felix.framework.Felix.access$000(Felix.java:74)
at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:401)
at
org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:151)
at
org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:127)
at
org.apache.felix.ipojo.handlers.providedservice.ProvidedService.unregisterService(ProvidedService.java:346)
at
org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.__stateChanged(ProvidedServiceHandler.java:464)
at
org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.stateChanged(ProvidedServiceHandler.java)
at org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:441)
at org.apache.felix.ipojo.HandlerManager.stop(HandlerManager.java:166)
at org.apache.felix.ipojo.InstanceManager.stop(InstanceManager.java:346)
at org.apache.felix.ipojo.InstanceManager.dispose(InstanceManager.java:385)
at
org.apache.felix.ipojo.InstanceCreator$ManagedInstance.dispose(InstanceCreator.java:361)
at
org.apache.felix.ipojo.InstanceCreator.removeInstancesFromBundle(InstanceCreator.java:122)
at org.apache.felix.ipojo.Extender.closeManagementFor(Extender.java:147)
at org.apache.felix.ipojo.Extender.bundleChanged(Extender.java:129)
at
org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:868)
at
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:789)
at
org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:514)
at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4403)
at org.apache.felix.framework.Felix.stopBundle(Felix.java:2520)
at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:991)
at
org.apache.felix.shell.impl.StopCommandImpl.execute(StopCommandImpl.java:93)
at
org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:286)
at
org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:184)
at java.lang.Thread.run(Thread.java:722)

*(2.1) So, If I try to start (in case of stop in item 2) or install (in
case of uninstall in item 2) the service provider, I got this error:
*[pool-3-thread-2] ERROR
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore - Soap 1.1 endpoint
already registered on address http://0.0.0.0:9090/hiService
java.lang.RuntimeException: Soap 1.1 endpoint already registered on address
http://0.0.0.0:9090/hiService
at
org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:921)
at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131)
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:204)
at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
at
org.apache.cxf.dosgi.dsw.handlers.AbstractPojoConfigurationTypeHandler.createServerFromFactory(AbstractPojoConfigurationTypeHandler.java:208)
at
org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.createServer(PojoConfigurationTypeHandler.java:117)
at
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:120)
at
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:71)
at
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:64)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:64)
at
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:37)
at
org.apache.cxf.dosgi.topologymanager.exporter.TopologyManagerExport.doExportService(TopologyManagerExport.java:250)
at
org.apache.cxf.dosgi.topologymanager.exporter.TopologyManagerExport.access$200(TopologyManagerExport.java:51)
at
org.apache.cxf.dosgi.topologymanager.exporter.TopologyManagerExport$3.run(TopologyManagerExport.java:214)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)


Thanks in advance!
__
*Dhiego*



2013/5/20 Christian Schneider <chris@die-schneider.net>

> Hi Dhiego,
>
> the single bundle distro is not tested as well as the multi bundle distro.
> Could you check if the error also happens for the multibundle distro?
> Btw. for version 1.5 we completely remove the single bundle distro as it
> was too difficult to maintain in the long run. So you will have to move to
> the multi bundle distro
> when you upgrade to the next version anyway.
>
> Christian
>
> Am 20.05.2013 05:36, schrieb Dhiego Abrantes de Oliveira Martins:
>
>> Hi,
>>
>> Now I'm using version 1.4.0 of DOSGi Single Distro and I can perceive some
>> points:
>>
>> 1- I cant setup zookeeper by
>> 'load/org.apache.cxf.dosgi.**discovery.zookeeper.cfg' file. Simply the
>> changes dont make any effect.
>> 2- When I try to start a WebService, I got the message bellow:
>>
>> -> Mai 20, 2013 12:25:33 AM
>> org.apache.cxf.service.**factory.**ReflectionServiceFactoryBean
>> buildServiceFromClass
>> INFO: Creating Service
>> {http://hiService.ws.dhiego.**br/}HiServiceServicefrom<http://hiService.ws.dhiego.br/%7DHiServiceServicefrom>class
>>
>> br.dhiego.ws.hiService.**HiService
>> Mai 20, 2013 12:25:33 AM org.apache.cxf.endpoint.**ServerImpl
>> initDestination
>> INFO: Setting the server's publish address to be
>> http://localhost:9090/**hiService <http://localhost:9090/hiService>
>>
>> The log register an action as 'Setting the server's publish address to
>> be...', but not happens after that. However, the service is accessible.
>>
>> When I'm using 1.3 version, a lot of log is written in console and I got
>> some information about service publication, for example:
>>
>> *** EndpointDescription: ****
>> component  => br.dhiego.ws.hiService.impl.**HiServiceImpl
>> endpoint.framework.uuid  => 2c8dcd08-b4fc-48a4-a129-**16f1a043a9d0
>> endpoint.id  => http://localhost:9090/**hiService<http://localhost:9090/hiService>
>> endpoint.package.version.br.**dhiego.ws.hiService  => 0.0.0
>> endpoint.service.id  => 45
>> factory.name  => br.dhiego.ws.hiService.impl.**HiServiceImpl
>> instance.name  => br.dhiego.ws.hiService.impl.**HiServiceImpl-0
>> objectClass  => [Ljava.lang.String;@2183ef8c
>> org.apache.cxf.ws.address  => http://localhost:9090/**hiService<http://localhost:9090/hiService>
>> service.imported  => true
>> service.imported.configs  => [Ljava.lang.String;@5ce3e184
>> service.intents  => [Ljava.lang.String;@74ead0c0
>> ]
>>
>> There are some way to fix it when I'm using new version (1.4) of DOSGi
>> Single bundle?
>>
>> Thanks in advance!
>> __
>> *Dhiego*
>>
>>
>
> --
>  Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> Talend Application Integration Division http://www.talend.com
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message