英文:
Error in implementation of Web Service in eclipse
问题
在使用Tomcat作为服务器在Eclipse中创建Web服务时,我遇到了以下错误:
> IWAB0398E 从Java生成WSDL时出错:java.lang.ClassNotFoundException: 无法找到uk.ac.open.t320.Hello(由org.eclipse.jst.ws.axis.consumption.core_1.0.600.v201910301957引起)。
这是我的代码:
package uk.ac.open.t320;
public class Hello {
public String helloName(String name)
{
return "你好," + name;
}
}
英文:
When I am creating a web service in eclipse with tomcat as the server, I am getting this error:
> IWAB0398E Error in generating WSDL from Java: java.lang.ClassNotFoundException: uk.ac.open.t320.Hello cannot be found by org.eclipse.jst.ws.axis.consumption.core_1.0.600.v201910301957.
This is my code-
package uk.ac.open.t320;
public class Hello {
public String helloName(String name)
{
return "Hello there"+ name;
}
}
答案1
得分: 1
请参考此问题链接:https://stackoverflow.com/questions/45166063/error-in-generating-wsdl-from-java
右键点击 uk.ac.open.t320 -> 导出 -> Jar 文件 -> 导出到 /WEB-INF/lib
英文:
Refer to this question:https://stackoverflow.com/questions/45166063/error-in-generating-wsdl-from-java
Right click uk.ac.open.t320 -> Export->Jar file->export to /WEB-INF/lib
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论