Hello, when using implementor attribute as spring bean (e.g. #beanId), or some other stuff, then probably you have to use also implementorClass attribute and as value a full class name of generated portType (using wsdl2java).
otherwise cxf doesn't know, what to do .. there are no attributes visible on AOP proxy, which identify service port etc... maybe it's not required when wsdlLocation and serviceName attributes are used, but you are not using them anyway. best regards jano bjornharvold <[EMAIL PROTECTED]> 05/29/2008 06:08 Bitte antworten an [email protected] An [email protected] Kopie Thema Re: Did something change in the spring configuration options for jaxws:endpoint ? [Virus checked] Hi Leo, I am getting a similar error and I have been scouring the forums to find someone with the same problem. I grabbed the cxf v2.1 source and did a test with their spring hello world example. I included all the included dependencies in my test project but upgraded Spring to the latest v2.5.4. The hello world test runs fine when the implementor is set to just the class but not the Spring hello world bean. When I use the #helloWorldBean I get this error: (I put the real error in bold). At the bottom I have included the spring xml, and the hello world example classes as well. "C:\Program Files\Java\jdk1.6.0_06\bin\java" -Didea.launcher.port=7550 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA 7.0.3\bin" -Dfile.encoding=windows-1252 -classpath "C:\Program Files\Java\jdk1.6.0_06\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_06\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_06\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.6.0_06\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_06\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_06\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.6.0_06\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.6.0_06\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_06\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_06\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_06\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_06\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.6.0_06\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.6.0_06\jre\lib\ext\sunpkcs11.jar;C:\Users\bjorn\IdeaProjects\cxftest\out\production\cxftest;C:\Users\bjorn\.m2\repository\org\springframework\spring\2.5.4\spring-2.5.4.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\slf4j-api-1.3.1.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\commons-logging-1.1.1.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\abdera-extensions-main-0.4.0-incubating.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\commons-httpclient-3.1.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\aopalliance-1.0.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\jaxws-api-2.1-1.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\abdera-parser-0.4.0-incubating.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\asm-2.2.3.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\jsr311-api-0.6.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\abdera-extensions-json-0.4.0-incubating.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\velocity-dep-1.4.jar;C:\Users\bjorn\Downloads\apa che-cxf-2.1\lib\cxf-manifest.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\jaxen-1.1.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\xmlsec-1.3.0.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\saaj-impl-1.3.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\jdom-1.0.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\stax-utils-20060502.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\geronimo-jms_1.1_spec-1.1.1.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\abdera-extensions-html-0.4.0-incubating.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\jra-1.0-alpha-4.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\saaj-api-1.3.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\neethi-2.0.4.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\geronimo-javamail_1.4_spec-1.3.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\antlr-2.7.7.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\geronimo-stax-api_1.0_spec-1.0.1.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\jetty-util-6.1.9.jar;C:\Users\bjorn\ Downloads\apache-cxf-2.1\lib\cxf-2.1.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\commons-lang-2.4.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\jetty-6.1.9.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\abdera-core-0.4.0-incubating.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\jaxb-api-2.1.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\jaxb-impl-2.1.6.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\abdera-i18n-0.4.0-incubating.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\axiom-impl-1.2.7.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\geronimo-annotation_1.0_spec-1.1.1.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\axiom-api-1.2.7.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\jettison-1.0.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\ant-1.6.5.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\wss4j-1.5.2.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\xml-resolver-1.2.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\jaxb-xjc-2.1.6.jar;C:\Users\bjorn\Downloads\ apache-cxf-2.1\lib\xmlbeans-2.3.0.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\abdera-server-0.4.0-incubating.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\htmlparser-1.0.5.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\XmlSchema-1.4.2.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\js-1.6R7.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\velocity-1.4.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\FastInfoset-1.2.2.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\wstx-asl-3.2.4.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\wsdl4j-1.6.1.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\commons-codec-1.3.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\geronimo-servlet_2.5_spec-1.2.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\geronimo-ws-metadata_2.0_spec-1.1.2.jar;C:\Users\bjorn\Downloads\apache-cxf-2.1\lib\geronimo-activation_1.1_spec-1.0.2.jar;C:\Program Files\JetBrains\IntelliJ IDEA 7.0.3\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain test.CXFWebServiceTest May 28, 2008 11:46:26 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing [EMAIL PROTECTED]: display name [EMAIL PROTECTED]; startup date [Wed May 28 23:46:26 EDT 2008]; root of context hierarchy May 28, 2008 11:46:26 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [test/spring-domain-test-beans.xml] May 28, 2008 11:46:27 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml] May 28, 2008 11:46:27 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml] May 28, 2008 11:46:27 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml] May 28, 2008 11:46:28 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory INFO: Bean factory for application context [EMAIL PROTECTED]: [EMAIL PROTECTED] May 28, 2008 11:46:28 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons INFO: Pre-instantiating singletons in [EMAIL PROTECTED]: defining beans [helloWorld,testWebService,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.hea ders.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.servlet.ServletTransportFactory]; root of factory hierarchy May 28, 2008 11:46:28 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass INFO: Creating Service {http://test/}HelloWorldImplService from class test.HelloWorld May 28, 2008 11:46:30 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons INFO: Destroying singletons in [EMAIL PROTECTED]: defining beans [helloWorld,testWebService,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.hea ders.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.servlet.ServletTransportFactory]; root of factory hierarchy org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloWorld': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: java.lang.NullPointerException Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'helloWorld': Unsatisfied dependency expressed through constructor argument with index 0 of type [org.apache.cxf.Bus]: Could not convert constructor argument value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: Failed to convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: no matching editors or conversion strategy found Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'helloWorld': Unsatisfied dependency expressed through constructor argument with index 0 of type [org.apache.cxf.Bus]: Could not convert constructor argument value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: Failed to convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: no matching editors or conversion strategy found Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'helloWorld': Unsatisfied dependency expressed through constructor argument with index 0 of type [org.apache.cxf.Bus]: Could not convert constructor argument value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: Failed to convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: no matching editors or conversion strategy found Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'helloWorld': Unsatisfied dependency expressed through constructor argument with index 0 of type [org.apache.cxf.Bus]: Could not convert constructor argument value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: Failed to convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: no matching editors or conversion strategy found at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) at test.CXFWebServiceTest.doit(CXFWebServiceTest.java:21) at test.CXFWebServiceTest.main(CXFWebServiceTest.java:15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Caused by: javax.xml.ws.WebServiceException: java.lang.NullPointerException at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:258) at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:194) at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:380) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1412) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1373) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333) ... 21 more Caused by: java.lang.NullPointerException at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:160) at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102) at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:114) at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:160) at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:322) at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:244) ... 30 more Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'helloWorld': Unsatisfied dependency expressed through constructor argument with index 0 of type [org.apache.cxf.Bus]: Could not convert constructor argument value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: Failed to convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: no matching editors or conversion strategy found at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:544) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:190) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:923) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:833) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) at test.CXFWebServiceTest.doit(CXFWebServiceTest.java:21) at test.CXFWebServiceTest.main(CXFWebServiceTest.java:15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'helloWorld': Unsatisfied dependency expressed through constructor argument with index 0 of type [org.apache.cxf.Bus]: Could not convert constructor argument value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: Failed to convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: no matching editors or conversion strategy found at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:544) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:190) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:923) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:833) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) at test.CXFWebServiceTest.doit(CXFWebServiceTest.java:21) at test.CXFWebServiceTest.main(CXFWebServiceTest.java:15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'helloWorld': Unsatisfied dependency expressed through constructor argument with index 0 of type [org.apache.cxf.Bus]: Could not convert constructor argument value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: Failed to convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: no matching editors or conversion strategy found at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:544) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:190) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:923) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:833) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) at test.CXFWebServiceTest.doit(CXFWebServiceTest.java:21) at test.CXFWebServiceTest.main(CXFWebServiceTest.java:15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'helloWorld': Unsatisfied dependency expressed through constructor argument with index 0 of type [org.apache.cxf.Bus]: Could not convert constructor argument value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: Failed to convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [test.HelloWorldImpl] to required type [org.apache.cxf.Bus]: no matching editors or conversion strategy found at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:544) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:190) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:923) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:833) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) at test.CXFWebServiceTest.doit(CXFWebServiceTest.java:21) at test.CXFWebServiceTest.main(CXFWebServiceTest.java:15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Process finished with exit code 0 Here's the spring xml: <?xml version="1.0" encoding="UTF-8"?> <!-- ~ Copyright (c) 2007, Health XCEL Inc. All Rights Reserved. --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:util="http://www.springframework.org/schema/util" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:lang="http://www.springframework.org/schema/lang" xmlns:tool="http://www.springframework.org/schema/tool" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jms="http://www.springframework.org/schema/jms" xmlns:context="http://www.springframework.org/schema/context" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:cxf="http://cxf.apache.org/core" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-util-2.5.xsd http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd http://www.springframework.org/schema/tool http://www.springframework.org/schema/tool/spring-tool-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd"> <!-- ============================== WEB SERVICE END POINT============================== --> <!-- this does not work --> <jaxws:endpoint id="helloWorld" implementor="#testWebService" address="http://localhost:8080/HelloWorld" /> <!-- this works --> <!--<jaxws:endpoint id="helloWorld" implementor="test.HellowWorldImpl" address="http://localhost:8080/HelloWorld" />--> <!-- ============================== WEB SERVICE END POINT============================== --> <!-- ============================== WEB SERVICE ============================== --> <bean id="testWebService" class="test.HelloWorldImpl"/> <!-- ============================== WEB SERVICE ============================== --> <!-- now we can make use of the new Spring 2.5 annotation features --> <context:annotation-config/> <!-- required cxf ws imports --> <import resource="classpath:META-INF/cxf/cxf.xml"/> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/> </beans> Here are the interface and the impl class: package test; import javax.jws.WebService; @WebService public interface HelloWorld { String sayHi(String text); } package test; import javax.jws.WebService; @WebService(endpointInterface = "test.HelloWorld") public class HelloWorldImpl implements HelloWorld { public String sayHi(String text) { return "Hello " + text; } } Thanks bjorn -- View this message in context: http://www.nabble.com/Did-something-change-in-the-spring-configuration-options-for-jaxws%3Aendpoint---tp17080657p17527251.html Sent from the cxf-user mailing list archive at Nabble.com.
