You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by sridhar veerappan <sr...@gmail.com> on 2009/07/13 15:52:07 UTC

org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service

Hi,

I have configured my impl class(package demo.hw.server;), but when I deploy
the the package is getting in reverse order

*http://server.hw.demo/}CsmImplService.

* ERROR [[/csm]] StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'csm': Invocation of init method failed; nested exception is
javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Could not find
definition for service {*http://server.hw.demo/}CsmImplService.*
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)

Code:
servlet.xml

 <jaxws:endpoint
        id="csm"
        implementor="*demo.hw.server.CsmImpl"*
        wsdlLocation="WEB-INF/wsdl/ContactService.wsdl"
        address="/csm">
    </jaxws:endpoint>

Impl:
*package demo.hw.server;*
public class CsmImpl {
       /** {@inheritDoc}*/
    public GetCustomerBalanceResponse getBalance(String parameters) {
        GetCustomerBalanceResponse r = new GetCustomerBalanceResponse();
        GetCustomerBalance awr = new GetCustomerBalance();

        String number = parameters;
        awr.setAccountNumber("234234");


        r.getBalance();
        return r;
    }
}