org.apache.cxf.service.factory.ServiceConstructionException

Liferay Issues | Dylan Rebelak | 8 months ago
  1. 0

    * Deploy a module that is a service of the javax.ws.rs.core.Application class. * When a second module is deployed that is also a service of this class the following error occurs: 21:03:03,136 WARN [fileinstall-/home/drebelak/Liferay/boa/lfrgs-boa-cs/bundles/osgi/modules][com_liferay_portal_remote_rest_extender:102] Invocation of 'addApplication' failed. org.apache.cxf.service.factory.ServiceConstructionException at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:219) at com.liferay.portal.remote.rest.extender.internal.CXFJaxRsServiceRegistrator.registerApplication(CXFJaxRsServiceRegistrator.java:125) at com.liferay.portal.remote.rest.extender.internal.CXFJaxRsServiceRegistrator.registerApplications(CXFJaxRsServiceRegistrator.java:135) at com.liferay.portal.remote.rest.extender.internal.CXFJaxRsServiceRegistrator.rewire(CXFJaxRsServiceRegistrator.java:155) at com.liferay.portal.remote.rest.extender.internal.CXFJaxRsServiceRegistrator.addApplication(CXFJaxRsServiceRegistrator.java:43) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.felix.dm.InvocationUtil.invokeMethod(InvocationUtil.java:111) at org.apache.felix.dm.InvocationUtil.invokeCallbackMethod(InvocationUtil.java:66) at org.apache.felix.dm.impl.ComponentImpl.invokeCallbackMethod(ComponentImpl.java:769) at org.apache.felix.dm.impl.dependencies.ServiceDependencyImpl.invoke(ServiceDependencyImpl.java:709) at com.liferay.portal.remote.dependency.manager.tccl.ServiceReferenceTCCLServiceDependency.invoke(ServiceReferenceTCCLServiceDependency.java:55) at org.apache.felix.dm.impl.dependencies.ServiceDependencyImpl.invoke(ServiceDependencyImpl.java:1160) at org.apache.felix.dm.impl.dependencies.ServiceDependencyImpl.invokeAdded(ServiceDependencyImpl.java:1114) at org.apache.felix.dm.impl.dependencies.ServiceDependencyImpl.doAddedService(ServiceDependencyImpl.java:876) at org.apache.felix.dm.impl.dependencies.ServiceDependencyImpl.access$200(ServiceDependencyImpl.java:60) at org.apache.felix.dm.impl.dependencies.ServiceDependencyImpl$4.run(ServiceDependencyImpl.java:317) at org.apache.felix.dm.impl.SerialExecutor.runTask(SerialExecutor.java:137) at org.apache.felix.dm.impl.SerialExecutor.runTasks(SerialExecutor.java:119) at org.apache.felix.dm.impl.SerialExecutor.execute(SerialExecutor.java:85) at org.apache.felix.dm.impl.SerialExecutor.execute(SerialExecutor.java:104) at org.apache.felix.dm.impl.dependencies.ServiceDependencyImpl.addedService(ServiceDependencyImpl.java:314) at org.apache.felix.dm.tracker.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1331) at org.apache.felix.dm.tracker.AbstractTracked.trackAdding(AbstractTracked.java:290) at org.apache.felix.dm.tracker.AbstractTracked.track(AbstractTracked.java:236) at org.apache.felix.dm.tracker.ServiceTracker$Tracked.serviceChangedHideAspects(ServiceTracker.java:1212) at org.apache.felix.dm.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1107) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109) at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:917) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225) at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464) at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:869) at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:857) at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:133) at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:915) at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:715) at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:399) at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:676) at org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:339) at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:360) at org.apache.felix.scr.impl.Activator.access$000(Activator.java:53) at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:260) at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259) at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232) at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482) at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:1) at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444) at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:905) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165) at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75) at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67) at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102) at org.eclipse.osgi.container.Module.publishEvent(Module.java:461) at org.eclipse.osgi.container.Module.start(Module.java:452) at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402) at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1252) at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1224) at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:512) at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361) at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:313) Caused by: org.apache.cxf.service.factory.ServiceConstructionException: There is an endpoint already running on /. at org.apache.cxf.jaxrs.JAXRSBindingFactory.addListener(JAXRSBindingFactory.java:85) at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123) at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:206) ... 69 more

    Liferay Issues | 8 months ago | Dylan Rebelak
    org.apache.cxf.service.factory.ServiceConstructionException
  2. 0

    GitHub comment 18#61059174

    GitHub | 2 years ago | ffang
    org.apache.cxf.service.factory.ServiceConstructionException: There is an endpoint already running on /cheese.
  3. 0

    Re: CXF Webservice client exception

    cxf-dev | 9 months ago | mostafa
    org.apache.cxf.service.factory.ServiceConstructionException: Could not resolve a binding for null your support is really appreciated. Regards, Mostafa On Mon, Mar 21, 2016 at 8:03 PM, Daniel Kulp [via CXF] < ml-node+s547215n5767083h96@n5.nabble.com> wrote: > > Is the cxf-rt-bindings-soap jar available? It looks like you are > creating an uber jar or similar sinco the .ServiceImpl class seems to not > be coming from cxf-rt-frontend-jaxws. If so, are you making sure the > META-INF/cxf/bus-extensions.txt files are properly concatted together? > > Dan > > > > On Mar 20, 2016, at 9:09 AM, mostafa <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=5767083&i=0>> wrote: > > > > Hello, > > > > i tried to create webservice client "from wsdl" ,when i run the client > from > > test class every thing is running well, but when i tried to call the > client > > from another module under jboss , i got the following error > > > > Caused by: javax.xml.ws.WebServiceException: > > org.apache.cxf.service.factory.ServiceConstructionException > > at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:317)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    'Re: Simple Web Service with JAX-WS G v2.0 sample problem' - MARC

    marc.info | 6 months ago
    org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:68) \ at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:74) \ at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:107)
  6. 0

    'Re: Simple Web Service with JAX-WS G v2.0 sample problem' - MARC

    marc.info | 6 months ago
    org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:101) at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.jav \ a:55)

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.cxf.service.factory.ServiceConstructionException

      There is an endpoint already running on /.

      at org.apache.cxf.jaxrs.JAXRSBindingFactory.addListener()
    2. Apache CXF Runtime JAX-RS Frontend
      JAXRSBindingFactory.addListener
      1. org.apache.cxf.jaxrs.JAXRSBindingFactory.addListener(JAXRSBindingFactory.java:85)
      1 frame
    3. Apache CXF Core
      ServerImpl.start
      1. org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123)
      1 frame
    4. Apache CXF Runtime JAX-RS Frontend
      JAXRSServerFactoryBean.create
      1. org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:206)
      1 frame
    5. com.liferay.portal
      CXFJaxRsServiceRegistrator.addApplication
      1. com.liferay.portal.remote.rest.extender.internal.CXFJaxRsServiceRegistrator.registerApplication(CXFJaxRsServiceRegistrator.java:125)
      2. com.liferay.portal.remote.rest.extender.internal.CXFJaxRsServiceRegistrator.registerApplications(CXFJaxRsServiceRegistrator.java:135)
      3. com.liferay.portal.remote.rest.extender.internal.CXFJaxRsServiceRegistrator.rewire(CXFJaxRsServiceRegistrator.java:155)
      4. com.liferay.portal.remote.rest.extender.internal.CXFJaxRsServiceRegistrator.addApplication(CXFJaxRsServiceRegistrator.java:43)
      4 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    7. Apache Felix Dependency Manager
      ServiceDependencyImpl.invoke
      1. org.apache.felix.dm.InvocationUtil.invokeMethod(InvocationUtil.java:111)
      2. org.apache.felix.dm.InvocationUtil.invokeCallbackMethod(InvocationUtil.java:66)
      3. org.apache.felix.dm.impl.ComponentImpl.invokeCallbackMethod(ComponentImpl.java:769)
      4. org.apache.felix.dm.impl.dependencies.ServiceDependencyImpl.invoke(ServiceDependencyImpl.java:709)
      4 frames
    8. com.liferay.portal
      ServiceReferenceTCCLServiceDependency.invoke
      1. com.liferay.portal.remote.dependency.manager.tccl.ServiceReferenceTCCLServiceDependency.invoke(ServiceReferenceTCCLServiceDependency.java:55)
      1 frame
    9. Apache Felix Dependency Manager
      ServiceTracker$Tracked.serviceChanged
      1. org.apache.felix.dm.impl.dependencies.ServiceDependencyImpl.invoke(ServiceDependencyImpl.java:1160)
      2. org.apache.felix.dm.impl.dependencies.ServiceDependencyImpl.invokeAdded(ServiceDependencyImpl.java:1114)
      3. org.apache.felix.dm.impl.dependencies.ServiceDependencyImpl.doAddedService(ServiceDependencyImpl.java:876)
      4. org.apache.felix.dm.impl.dependencies.ServiceDependencyImpl.access$200(ServiceDependencyImpl.java:60)
      5. org.apache.felix.dm.impl.dependencies.ServiceDependencyImpl$4.run(ServiceDependencyImpl.java:317)
      6. org.apache.felix.dm.impl.SerialExecutor.runTask(SerialExecutor.java:137)
      7. org.apache.felix.dm.impl.SerialExecutor.runTasks(SerialExecutor.java:119)
      8. org.apache.felix.dm.impl.SerialExecutor.execute(SerialExecutor.java:85)
      9. org.apache.felix.dm.impl.SerialExecutor.execute(SerialExecutor.java:104)
      10. org.apache.felix.dm.impl.dependencies.ServiceDependencyImpl.addedService(ServiceDependencyImpl.java:314)
      11. org.apache.felix.dm.tracker.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1331)
      12. org.apache.felix.dm.tracker.AbstractTracked.trackAdding(AbstractTracked.java:290)
      13. org.apache.felix.dm.tracker.AbstractTracked.track(AbstractTracked.java:236)
      14. org.apache.felix.dm.tracker.ServiceTracker$Tracked.serviceChangedHideAspects(ServiceTracker.java:1212)
      15. org.apache.felix.dm.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1107)
      15 frames
    10. Eclipse OSGi
      BundleContextImpl.registerService
      1. org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
      2. org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:917)
      3. org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
      4. org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
      5. org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862)
      6. org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
      7. org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
      8. org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
      9. org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)
      9 frames
    11. Apache Felix Declarative Services
      Activator$ScrExtension.start
      1. org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:869)
      2. org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:857)
      3. org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:133)
      4. org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:915)
      5. org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:715)
      6. org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:399)
      7. org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:676)
      8. org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:339)
      9. org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:360)
      10. org.apache.felix.scr.impl.Activator.access$000(Activator.java:53)
      11. org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:260)
      11 frames
    12. Apache Felix Bundle Repository
      AbstractExtender.modifiedBundle
      1. org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)
      2. org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)
      2 frames
    13. OSGi
      BundleTracker$Tracked.bundleChanged
      1. org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
      2. org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:1)
      3. org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)
      4. org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
      4 frames
    14. Eclipse OSGi
      EquinoxBundle.start
      1. org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:905)
      2. org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
      3. org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
      4. org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)
      5. org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)
      6. org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)
      7. org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)
      8. org.eclipse.osgi.container.Module.publishEvent(Module.java:461)
      9. org.eclipse.osgi.container.Module.start(Module.java:452)
      10. org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
      10 frames
    15. Apache Felix File Install
      DirectoryWatcher.run
      1. org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1252)
      2. org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1224)
      3. org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:512)
      4. org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
      5. org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:313)
      5 frames