[英]No SchemaFactory that implements the schema language specified by: http://www.w3.org/2001/XMLSchema could be loaded
When trying to expose a Service with Aegis databinding in CXF DOSGi I get this error in Java 8. In java 7 it works fine. 当尝试在CXF DOSGi中使用Aegis数据绑定公开服务时,我在Java 8中遇到此错误。在java 7中它工作正常。
Caused by: java.lang.IllegalArgumentException: No SchemaFactory that implements the schema language specified by: http://www.w3.org/2001/XMLSchema could be loaded at javax.xml.validation.SchemaFactory.newInstance(SchemaFactory.java:215) at org.apache.cxf.aegis.type.XMLTypeCreator.(XMLTypeCreator.java:122) 引起:java.lang.IllegalArgumentException:没有实现以下指定的模式语言的SchemaFactory: http : //www.w3.org/2001/XMLSchema可以在javax.xml.validation.SchemaFactory.newInstance(SchemaFactory.java: 215)at org.apache.cxf.aegis.type.XMLTypeCreator。(XMLTypeCreator.java:122)
See full stacktrace here 在这里查看完整的堆栈跟踪
I think the reason is that the code does not see the impl class com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory
. 我认为原因是代码没有看到impl类com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory
。
Any ideas how to fix this? 任何想法如何解决这一问题?
Btw. 顺便说一句。 the exception can be observed by running the CXF-DOSGi build in Java 8. 通过在Java 8中运行CXF-DOSGi构建可以观察到异常。
I still do not have found a real solution for this. 我仍然没有找到真正的解决方案。 For now I have committed a workaround on CXF master to ignore this exception in the static code. 现在我已经在CXF master上提交了一个解决方法,以忽略静态代码中的这个异常。 So the Aegis binding is not schema checked but at least works. 所以Aegis绑定不是模式检查,但至少有效。 See CXF-6959 . 见CXF-6959 。
I would be happy about any hints to get this fully working again. 我会很高兴有任何提示让它再次完全运作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.