急救。CXF 整合Spring bean 如何配置。请高手赐教。

wadehou 2011-03-04 07:52:01
1: webservice 实现类中。 private SaveInfoService saveinfoservice;
public SaveInfoService getSaveinfoservice() {
return saveinfoservice;
}
public void setSaveinfoservice(SaveInfoService saveinfoservice) {
this.saveinfoservice = saveinfoservice;
}
SaveInfo saveinfo=saveinfoservice.getById(id);
saveinfoservice 这个对象我在spring中进行了管理。
<bean id="saveinfoservice" class="com.omhy.saveinfo.model.service.SaveInfoService">
<property name="saveDao">
<ref local="saveDao" />
</property>
</bean> 程序运行的时候 saveinfoservice 这个对象 这个对象为空。

2:我单独 这样配置。 <jaxws:endpoint id="cxfService" address="/cxfService"
implementorClass="com.omhy.saveinfo.action.IAxisDemoService">
<jaxws:implementor>
<bean id="cxfServiceImpl"
class="com.omhy.saveinfo.action.AxisDemoService">
<property name="saveinfoservice">
<ref bean="saveinfoservice" />
</property>
</bean>
</jaxws:implementor>
</jaxws:endpoint>
那个实现类 根本不能进行访问。 错误信息:unwinding now
org.apache.cxf.interceptor.Fault
...全文
91 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧