Exception in thread "main" com.sun.xml.internal.ws.model.RuntimeModelerException: 必须在没有程序包的类上指定 @Web

来源:互联网 发布:软件企业所得税 编辑:程序博客网 时间:2024/05/16 07:30

WebService 异常:

1

Exception inthread "main" com.sun.xml.internal.ws.model.RuntimeModelerException:必须在没有程序包的类上指定@WebService.targetNamespace。类: Axis2Test2

解决:

@WebService标注的类不能和main方法在一个包下

@WebService标注的类和main方法类分开后,问题解决

2. Exception in thread "main"java.lang.IllegalArgumentException:class hello.Axis2Test2 has neither @WebService nor @WebServiceProviderannotation

实现类忘记加@WebService注解

阅读全文
0 0
原创粉丝点击