Results 1 to 3 of 3

Thread: CXF Webservice 2.4.2 with Spring 3.0.5, issue with @autowired

  1. #1
    Join Date
    Jul 2011
    Posts
    11

    Default CXF Webservice 2.4.2 with Spring 3.0.5, issue with @autowired

    hi,

    I am using cxf 2.4.2 and spring 3.0.5 versions.

    I am facing issue to autowire an property in a Webservice implementation class.

    @webservice
    interface abc{
    methods..
    }

    @webservice
    class a implements abc{

    @autowired
    private xyz xyz;


    methods..
    }

    class xyz{

    }

    As displayed in above code i am facing issue to autowire xyz in class a.

    I am able to deploy the application, but I get the xyz property value as null.

    I have already loaded org.springframework.web.context.ContextLoaderListe ner listener class in web.xml.

    Mentioned the <context:annotation-config/> tag and also
    <context:component-scan base-package="packagename" />

    Please provide some pointers.

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Seattle, Washington
    Posts
    467

    Default

    Have you declared a single bean of type "xyz"?

  3. #3
    Join Date
    Jul 2011
    Posts
    11

    Default

    Yes i have already declared that.

    Forgot to mention in original post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •