I suspect the issue may be a difference between patch levels of the JDK - 1.6.0_24 vs _26. A previously compiled bundle deploys without exception.
Dan On Sep 7, 2011, at 10:20 PM, Freeman Fang <[email protected]> wrote: > Hi, > > In your wsdl, there should be a service part like > <wsdl:service name="SOAPService"> > <wsdl:port binding="tns:Greeter_SOAPBinding" name="SoapPort"> > <soap:address > location="http://localhost:9000/SoapContext/SoapPort"/> > </wsdl:port> > </wsdl:service> > So the service name should be the namespace:SOAPService, and the endpoint > name should be SoapPort. > > > Freeman > On 2011-9-7, at 下午10:51, Dan Powell wrote: > >> That's correct, it does, although I get the same error even if I only create >> cxf endpoints for one of the services. >> >> "the service name of the proxied endpoint" - how would I determine this >> value? >> >> Dan >> >> On Sep 7, 2011, at 10:26 AM, Freeman Fang wrote: >> >>> Hi, >>> >>> I believe the wsdl specified for cxf bc consumer endpoint have multiple >>> service, right? >>> In this case, you need specify a service for cxf bc consumer endpoint, take >>> a look at [1]"Consumer Endpoint Attributes" to get more details. >>> >>> [1]http://servicemix.apache.org/servicemix-cxf-bc.html >>> >>> Freeman >>> On 2011-9-7, at 下午10:11, Dan Powell wrote: >>> >>>> Both the cxfse and cxfbc beans.xml are attached here. The annotations on >>>> the Java classes are below: >>>> >>>> @javax.jws.WebService( >>>> serviceName = "DocumentRegistry_Service", >>>> portName = "DocumentRegistry_Port_Soap12", >>>> targetNamespace = "urn:ihe:iti:xds-b:2007", >>>> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRegistry.wsdl", >>>> endpointInterface = "ihe.iti.xds_b._2007.DocumentRegistryPortType") >>>> >>>> @javax.jws.WebService( >>>> serviceName = "DocumentRepository_Service", >>>> portName = "DocumentRepository_Port_Soap12", >>>> targetNamespace = "urn:ihe:iti:xds-b:2007", >>>> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRepository.wsdl", >>>> endpointInterface = "ihe.iti.xds_b._2007.DocumentRepositoryPortType") >>>> >>>> Thank you! >>>> >>>> Dan >>>> >>>> <cxfbc-beans.xml><cxfse-beans.xml> >>>> >>>> On Sep 7, 2011, at 10:05 AM, Jean-Baptiste Onofré wrote: >>>> >>>>> Hi, >>>>> >>>>> could you paste your xbean.xml ? >>>>> >>>>> It seems that your JBI target URI is not correct or doesn't exist. >>>>> >>>>> Regards >>>>> JB >>>>> >>>>> On 09/07/2011 04:04 PM, Dan Powell wrote: >>>>>> Using ServiceMix 4.3.0, I am getting the following exception deploying >>>>>> some of my CXF endpoints. The cxfse:endpoint service deploys fine, but >>>>>> when deploying the cxfbc bundle containing the cxfbc:consumer I get the >>>>>> following exception. I have two other endpoints that are deploying >>>>>> fine, and have been unable to identify the difference in this one that >>>>>> fails. I have confirmed that the MBeans are registered, and the logs >>>>>> are clean when deploying the cxfse bundle. Any suggestions as to where >>>>>> to look would be greatly appreciated. >>>>>> >>>>>> 09:39:27,108 | ERROR | xtenderThread-12 | >>>>>> tServiceReferenceRecipe$Listener | 7 - org.apache.aries.blueprint - >>>>>> 0.2.0.incubating | Error calling listener method public void >>>>>> org.apache.servicemix.common.osgi.EndpointTracker.register(org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map) >>>>>> throws java.lang.Exception >>>>>> java.lang.reflect.InvocationTargetException >>>>>> at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source) >>>>>> at >>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26] >>>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26] >>>>>> at >>>>>> org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:221)[7:org.apache.aries.blueprint:0.2.0.incubating] >>>>>> at >>>>>> org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)[7:org.apache.aries.blueprint:0.2.0.incubating] >>>>>> at >>>>>> org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:518)[7:org.apache.aries.blueprint:0.2.0.incubating] >>>>>> at >>>>>> org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:415)[7:org.apache.aries.blueprint:0.2.0.incubating] >>>>>> at >>>>>> org.apache.aries.blueprint.container.ReferenceListRecipe.track(ReferenceListRecipe.java:135)[7:org.apache.aries.blueprint:0.2.0.incubating] >>>>>> at >>>>>> org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceAdded(AbstractServiceReferenceRecipe.java:365)[7:org.apache.aries.blueprint:0.2.0.incubating] >>>>>> at >>>>>> org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceChanged(AbstractServiceReferenceRecipe.java:349)[7:org.apache.aries.blueprint:0.2.0.incubating] >>>>>> at >>>>>> org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:871)[org.apache.felix.framework-3.0.9.jar:] >>>>>> at >>>>>> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:733)[org.apache.felix.framework-3.0.9.jar:] >>>>>> at >>>>>> org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)[org.apache.felix.framework-3.0.9.jar:] >>>>>> at >>>>>> org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3772)[org.apache.felix.framework-3.0.9.jar:] >>>>>> at >>>>>> org.apache.felix.framework.Felix.access$000(Felix.java:80)[org.apache.felix.framework-3.0.9.jar:] >>>>>> at >>>>>> org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:729)[org.apache.felix.framework-3.0.9.jar:] >>>>>> at >>>>>> org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9.jar:] >>>>>> at >>>>>> org.apache.felix.framework.Felix.registerService(Felix.java:2861)[org.apache.felix.framework-3.0.9.jar:] >>>>>> at >>>>>> org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9.jar:] >>>>>> at >>>>>> org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:229)[org.apache.felix.framework-3.0.9.jar:] >>>>>> at >>>>>> org.apache.servicemix.common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)[124:servicemix-common:2011.01.0] >>>>>> at >>>>>> org.apache.servicemix.common.osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:185)[124:servicemix-common:2011.01.0] >>>>>> at >>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)[62:org.springframework.beans:3.0.5.RELEASE] >>>>>> at >>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)[62:org.springframework.beans:3.0.5.RELEASE] >>>>>> at >>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[62:org.springframework.beans:3.0.5.RELEASE] >>>>>> at >>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[62:org.springframework.beans:3.0.5.RELEASE] >>>>>> at >>>>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[62:org.springframework.beans:3.0.5.RELEASE] >>>>>> at >>>>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[62:org.springframework.beans:3.0.5.RELEASE] >>>>>> at >>>>>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[62:org.springframework.beans:3.0.5.RELEASE] >>>>>> at >>>>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[62:org.springframework.beans:3.0.5.RELEASE] >>>>>> at >>>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[62:org.springframework.beans:3.0.5.RELEASE] >>>>>> at >>>>>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[64:org.springframework.context:3.0.5.RELEASE] >>>>>> at >>>>>> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[74:org.springframework.osgi.core:1.2.0] >>>>>> at >>>>>> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[74:org.springframework.osgi.core:1.2.0] >>>>>> at >>>>>> org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[74:org.springframework.osgi.core:1.2.0] >>>>>> at >>>>>> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[74:org.springframework.osgi.core:1.2.0] >>>>>> at >>>>>> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)[75:org.springframework.osgi.extender:1.2.0] >>>>>> at java.lang.Thread.run(Thread.java:680)[:1.6.0_26] >>>>>> Caused by: java.lang.IllegalArgumentException: Endpoint: >>>>>> Endpoint[service: null, endpoint: null, role: consumer] has no service >>>>>> name defined >>>>>> at >>>>>> org.apache.servicemix.common.endpoints.AbstractEndpoint.getKey(AbstractEndpoint.java:195) >>>>>> at >>>>>> org.apache.servicemix.common.osgi.EndpointExporter.checkAndRegisterSA(EndpointExporter.java:137)[124:servicemix-common:2011.01.0] >>>>>> at >>>>>> org.apache.servicemix.common.osgi.EndpointExporter$1.setDeployed(EndpointExporter.java:117)[124:servicemix-common:2011.01.0] >>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >>>>>> Method)[:1.6.0_26] >>>>>> at >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26] >>>>>> at >>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26] >>>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26] >>>>>> at >>>>>> org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$JdkProxyFactory$1.invoke(AbstractServiceReferenceRecipe.java:632) >>>>>> at $Proxy154.setDeployed(Unknown Source) >>>>>> at >>>>>> org.apache.servicemix.common.osgi.EndpointTracker.register(EndpointTracker.java:63)[124:servicemix-common:2011.01.0] >>>>>> ... 38 more >>>>>> >>>>>> Thanks! >>>>>> >>>>>> Dan >>>>> >>>>> -- >>>>> Jean-Baptiste Onofré >>>>> [email protected] >>>>> http://blog.nanthrax.net >>>>> Talend - http://www.talend.com >>>> >>> >>> --------------------------------------------- >>> Freeman Fang >>> >>> FuseSource >>> Email:[email protected] >>> Web: fusesource.com >>> Twitter: freemanfang >>> Blog: http://freemanfang.blogspot.com >>> >>> >>> >>> >>> >>> >>> >>> >>> >> > > --------------------------------------------- > Freeman Fang > > FuseSource > Email:[email protected] > Web: fusesource.com > Twitter: freemanfang > Blog: http://freemanfang.blogspot.com > > > > > > > > >
