微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

webservice cxf客户端调用问题

开发IDE是eclipse3.4.2

spring+cxf
服务器启动没有问题;客户端调用出现问题。

抛出的异常为

警告: Failed to create application context.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource [meta-inf/cxf/cxf.xml]: Instantiation of bean Failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception;

 

解决方法

修改项目的.classpath文件

找到   

<classpathentry kind="con"  path=" melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER"/>

修改

<classpathentry kind="con" path="com.genuitec.eclipse.j2eedt.core.J2EE14_CONTAINER "/>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐