JAX-WS Validate Schema in WebLogic with @SchemaValidation

后端 未结 2 669
花落未央
花落未央 2021-01-16 03:06

I wasn\'t able to find the solution and I found more people stuck in the same problem so I will post it here.


By default a JAX-WS server (at least for WebLogic

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-16 03:40

    In my case: Maven project with many modules. I got the next error when was trying to deploy application into tomcat:

    failed to parse runtime descriptor: javax.xml.ws.WebServiceException: Annotation @com.sun.xml.ws.developer.SchemaValidation(handler=class com.sun.xml.ws.server.DraconianValidationErrorHandler) is not recognizable, at least one constructor of class com.sun.xml.ws.developer.SchemaValidationFeature should be marked with @FeatureConstructor

    I resolved problem by don't including jaxws-rt.jar in WEB-INF/lib. It appears that this library already exists in the tomcat/lib folder.

    Just tuned up pom.xml, setted provided scope for this dependency entry. Now all works fine.

提交回复
热议问题