You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Leo de Blaauw <Le...@qnh.nl> on 2008/05/06 13:11:20 UTC

Did something change in the spring configuration options for jaxws:endpoint ?

Hi All,

Did something change in the configuration of a jaxws endpoint through spring
between the incubator version
and the released 2.1 version ?(also tried 2.1.1 drop same result). It seems
our service wont start anymore
in glassfish with the 2.1 jar. The configuration of the service is as
follows:
 

<jaxws:endpoint id="bestandenServiceSoap" implementor="#bestandenSoapService"
address="/bestandenservice">

<jaxws:properties>

<entry key="mtom-enabled" value="true"/>

</jaxws:properties>

</jaxws:endpoint>

Above definition works fine with the incubator version of cxf but since we
upgraded to the 2.1 release i see the

following in the logs for glassfish:

[#|2008-05-06T12:51:01.155+0200|INFO|sun-appserver9.1|javax.enterprise.system
.stream.out|_ThreadID=16;_ThreadName=httpWorkerThread-4848-0;|DEBUG -
Ignoring constructor [public
org.apache.cxf.jaxws.EndpointImpl(org.apache.cxf.Bus,java.lang.Object,java.la
ng.String)] of bean 'bestandenServiceSoap':
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'bestandenServiceSoap': Unsatisfied dependency
expressed through constructor argument with index 2 of type
[java.lang.String]: Ambiguous constructor argument types - did you specify
the correct bean references as constructor arguments?

 

So it seems the definition has changed ? Or is this due to the changes in the
Aegis configuration between

the previous version of cxf and 2.1 ??

 

Any help appreciated,

Regards,
Leo de Blaauw


RE: Did something change in the spring configuration options for jaxws:endpoint ?

Posted by Leo de Blaauw <Le...@qnh.nl>.
Hi Bjorn,

Well, we use the following snippet with spring and cxf 2.1:
 
<jaxws:endpoint id="rubriekServiceSoap" implementor="#rubriekSoapService"
address="/rubriekservice">

  <jaxws:serviceFactory>

    <ref bean='jaxws-and-aegis-service-factory' />

  </jaxws:serviceFactory>

</jaxws:endpoint>

 
<bean id="rubriekSoapService"
class="nl.gids.core.webservices.impl.RubriekServiceImpl">

Notice the absence of your service factory, in theory i believe this should
default but in our case
we had to add it.
 
Other then that I dont see much wrong with your code and spring context.

Regards,
Leo
 

    <!-- ============================== 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>



Re: Did something change in the spring configuration options for jaxws:endpoint ?

Posted by Daniel Kulp <dk...@apache.org>.
Patch applied.   I'll try and get new snapshots up over the weekend.

Dan


On May 30, 2008, at 10:01 AM, bjornharvold wrote:

>
> Cool Ian!
>
> I added my vote to the issue. I suggest anyone else coming across  
> this issue
> do the same.
> -- 
> View this message in context: http://www.nabble.com/Did-something-change-in-the-spring-configuration-options-for-jaxws%3Aendpoint---tp17080657p17559627.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

---
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog





Re: Did something change in the spring configuration options for jaxws:endpoint ?

Posted by bjornharvold <bj...@harvold.com>.
Cool Ian!

I added my vote to the issue. I suggest anyone else coming across this issue
do the same.
-- 
View this message in context: http://www.nabble.com/Did-something-change-in-the-spring-configuration-options-for-jaxws%3Aendpoint---tp17080657p17559627.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Did something change in the spring configuration options for jaxws:endpoint ?

Posted by Ian Roberts <i....@dcs.shef.ac.uk>.
bjornharvold wrote:
> Try moving the <import>s to the top of your Spring config file.  I know 
> the order of definition of Spring beans isn't supposed to matter, but in 
> the case of CXF the bus dependency is handled by the XML parsing code 
> rather than by a separate BeanFactoryPostProcessor or similar, so the 
> bus definition (in one of the imported files) needs to be processed 
> before the jaxws:endpoint.
> 
> I've been meaning to submit a JIRA about this but never got around to 
> it, this may be the prod I needed...

https://issues.apache.org/jira/browse/CXF-1619

Ian

-- 
Ian Roberts               | Department of Computer Science
i.roberts@dcs.shef.ac.uk  | University of Sheffield, UK

Re: Did something change in the spring configuration options for jaxws:endpoint ?

Posted by bjornharvold <bj...@harvold.com>.
Putting the imports at the top did the job! Thanks!!


Try moving the <import>s to the top of your Spring config file.  I know 
the order of definition of Spring beans isn't supposed to matter, but in 
the case of CXF the bus dependency is handled by the XML parsing code 
rather than by a separate BeanFactoryPostProcessor or similar, so the 
bus definition (in one of the imported files) needs to be processed 
before the jaxws:endpoint.

I've been meaning to submit a JIRA about this but never got around to 
it, this may be the prod I needed...

Ian

-- 
View this message in context: http://www.nabble.com/Did-something-change-in-the-spring-configuration-options-for-jaxws%3Aendpoint---tp17080657p17541028.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Did something change in the spring configuration options for jaxws:endpoint ?

Posted by Ian Roberts <i....@dcs.shef.ac.uk>.
Try moving the <import>s to the top of your Spring config file.  I know 
the order of definition of Spring beans isn't supposed to matter, but in 
the case of CXF the bus dependency is handled by the XML parsing code 
rather than by a separate BeanFactoryPostProcessor or similar, so the 
bus definition (in one of the imported files) needs to be processed 
before the jaxws:endpoint.

I've been meaning to submit a JIRA about this but never got around to 
it, this may be the prod I needed...

Ian

bjornharvold wrote:
> 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.
> 
> 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>


-- 
Ian Roberts               | Department of Computer Science
i.roberts@dcs.shef.ac.uk  | University of Sheffield, UK

Antwort: Re: Did something change in the spring configuration options for jaxws:endpoint ? [Virus checked]

Posted by ja...@external.t-mobile.at.
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 <bj...@harvold.com> 
05/29/2008 06:08
Bitte antworten an
users@cxf.apache.org


An
users@cxf.apache.org
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
org.springframework.context.support.ClassPathXmlApplicationContext@10b9d04:
display name
[org.springframework.context.support.ClassPathXmlApplicationContext@10b9d04];
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
[org.springframework.context.support.ClassPathXmlApplicationContext@10b9d04]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@10e790c
May 28, 2008 11:46:28 PM
org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons
INFO: Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@10e790c:
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
org.springframework.beans.factory.support.DefaultListableBeanFactory@10e790c:
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.





Re: Did something change in the spring configuration options for jaxws:endpoint ?

Posted by bjornharvold <bj...@harvold.com>.
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\apache-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
org.springframework.context.support.ClassPathXmlApplicationContext@10b9d04:
display name
[org.springframework.context.support.ClassPathXmlApplicationContext@10b9d04];
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
[org.springframework.context.support.ClassPathXmlApplicationContext@10b9d04]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@10e790c
May 28, 2008 11:46:28 PM
org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons
INFO: Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@10e790c:
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.headers.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
org.springframework.beans.factory.support.DefaultListableBeanFactory@10e790c:
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.headers.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.