JBoss EAP 6.1中的验证程序不接受StatxSource

JBoss EAP 6.1中的验证程序不接受StatxSource,jboss,xml-parsing,jboss6.x,xml-validation,stax,Jboss,Xml Parsing,Jboss6.x,Xml Validation,Stax,在JBoss服务器中验证StatxSource时出现问题, 我的尝试: 我尝试使用StAX一次进行解析和验证。 如本节所述 我能够以独立应用程序的形式执行该程序,但当我在JBoss EAP 6.1服务器中以web应用程序的形式尝试时,出现以下异常 例外情况: java.lang.IllegalArgumentException: Source parameter of type javax.xml.transform.stax.StAXSource' is not accepted

在JBoss服务器中验证StatxSource时出现问题,

我的尝试:
我尝试使用StAX一次进行解析和验证。
如本节所述

我能够以独立应用程序的形式执行该程序,
但当我在
JBoss EAP 6.1
服务器中以web应用程序的形式尝试时,出现以下异常

例外情况:

java.lang.IllegalArgumentException: Source parameter of type      
javax.xml.transform.stax.StAXSource' is not accepted by this validator.
at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source)
从StatxSource到StreamSource修改了多个帧作品, ,…等

我不确定,为什么JBoss不支持StatxSource,有什么线索吗?

通过添加xercesImpl 2.11.0依赖项,问题得到了解决。(如中所述)

解决方案:添加
xerces 2.11.0
依赖项。

<dependency>         
   <groupId>xerces</groupId>         
   <artifactId>xercesImpl</artifactId>
   <version>2.11.0</version>
</dependency>

薛西斯
).
具有针对
java.xml.validation
的实现增强功能,并支持针对JAXP验证器的
StatxSource



更新:添加了项目。

参考文献: