-
Jan 24th, 2012, 09:39 AM
#1
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules