【发布时间】:2010-10-07 13:21:22
【问题描述】:
我正在尝试让架构验证适用于部署在 Weblogic 10.3.3 上的 JAX-WS Web 服务。
根据文档,这应该就像添加注释一样简单 “@SchemaValidation”到端点类。但是,当我尝试此操作时,在部署应用程序时会引发以下异常:
Caused by: javax.xml.ws.WebServiceException:
Annotation@com.sun.xml.internal.ws.developer.SchemaValidation
(handler=class com.sun.xml.internal.ws.server.DraconianValidationErrorHandler)
is not recognizable,
atleast one constructor of class com.sun.xml.internal.ws.developer.SchemaValidationFeature
should be marked with @FeatureConstructor
at com.sun.xml.ws.binding.WebServiceFeatureList.getWebServiceFeatureBean(WebServiceFeatureList.java:169)
at com.sun.xml.ws.binding.WebServiceFeatureList.parseAnnotations(WebServiceFeatureList.java:141)
错误消息抱怨“com.sun.xml.internal.ws.developer.SchemaValidationFeature”没有使用@FeatureConstructor 注释的构造函数。当我看那个类时,它确实似乎有一个:
@com.sun.xml.internal.ws.api.FeatureConstructor(value={"handler"})
public SchemaValidationFeature(java.lang.Class arg0);
我在谷歌上搜索过,但找不到比 this 没有得到任何答案的不幸灵魂更多的参考。如果有人能指出我正确的方向,那就太好了,因为此时我被卡住了。
【问题讨论】:
标签: java web-services jakarta-ee weblogic jax-ws