简体   繁体   English

没有SchemaFactory可以加载实现由http://www.w3.org/2001/XMLSchema指定的模式语言

[英]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.

相关问题 在Spring 4中获取“无法为XML模式命名空间[http://www.springframework.org/schema/security]找到Spring NamespaceHandler” - getting 'Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]' with spring 4 无法找到XML模式名称空间的Spring NamespaceHandler [http://www.springframework.org/schema/osgi] - Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/osgi] Knopflerfish OSGi桌面是否需要连接到www.knopflerfish.org? - Does Knopflerfish OSGi desktop require a connection to www.knopflerfish.org? 在独立的Equinox上加载org.w3c.dom.Node异常 - Loading org.w3c.dom.Node exception on standalone Equinox OSGI在发布时暴露了“ClassNotFoundException:org.w3c.dom。***”错误 - OSGI expose An “ClassNotFoundException: org.w3c.dom.***” Error when release 扩展 org.eclipse.equinox.http.registry.servlets 不起作用 - Extending org.eclipse.equinox.http.registry.servlets does not work 解决OSGi环境中“org.w3c.dom.Node”上的“加载器约束违规”错误 - Solving a “loader constraint violation” error on “org.w3c.dom.Node” in an OSGi environment 未解决的要求:导入包:bndtools / osgi中的org.apache.commons.codec.language - Unresolved requirement: Import-Package: org.apache.commons.codec.language in bndtools/osgi 无法解析模块:org.eclipse.cdt.launch.remote - Could not resolve module: org.eclipse.cdt.launch.remote Eclipse Thym 需要 'osgi.bundle; org.eclipse.jgit [3.0.0,5.0.0)' 但找不到 - Eclipse Thym requires 'osgi.bundle; org.eclipse.jgit [3.0.0,5.0.0)' but it could not be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM