Announcement Announcement Module
Collapse
No announcement yet.
CXF Webservice 2.4.2 with Spring 3.0.5, issue with @autowired Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Have you declared a single bean of type "xyz"?

    Comment


    • #3
      Yes i have already declared that.

      Forgot to mention in original post.

      Comment

      Working...
      X