您的位置:首页 > 编程语言 > Java开发

几个Java EE和WebService的问题和解决方案

2017-03-08 21:51 218 查看

The import Java.util cannot be resolved

解决方案:右键项目——-buildpath——–最下面那个configuration 的选择libraries找到JRE(这个时候你会发现这个jre前面有!或者是红X)选中remove掉重新为该项目选择一个JRE选中项目(选择自己配置的jdk的jre)

这种情况一般出现在导入新的项目的时候

A configuration error occurred during startup,Please verify the preferece field with the prompt

解决方案:选择window -preference。搜索jdk。。在自己使用的那tomcat中配置使用的JDK即可(最好选用myeclipse自带的jdk)

org.apache.cxf.interceptor.Fault: No binding operation info while invoking unknown method with params unknown.

解决方案:在你配置的路径后加上?wsdl即可。http://zhao-pc:8080/springcx/ws/weather——》http://zhao-pc:8080/springcx/ws/weather?wsdl

Cannot create URL for this address soap.udp://239.255.255.250:3702

解决方案:删除如下的两个cxf-services-ws-discovery-api.jar包

和cxf-services-ws-discovery-service-3.0.0 jar

parsing XML document from class path resource [applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist

这个错误多半是因为applicationContext.xml的路径问题,但是也很有可能是因为你从其他地方导入的jar包没有被自动build path这就需要你手动选中并build path了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: