XIncludeAwareParserConfiguration 不能转换为 org.apache.xerces.xni.parser.XMLParserConfiguration
Posted
技术标签:
【中文标题】XIncludeAwareParserConfiguration 不能转换为 org.apache.xerces.xni.parser.XMLParserConfiguration【英文标题】:XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration 【发布时间】:2017-06-10 10:02:12 【问题描述】:UPDATE:这个异常偶尔是由 Maven 抛出的,无法理解为什么构建结果会有所不同...
大家好, 当我将我的 Web 应用程序部署在与我不同的机器上时,当我尝试使用
打开 XLSX 文件时收到此异常Workbook wb = WorkbookFactory.create(new File(IVENTORY_TEMPLATE));
这是完整的堆栈跟踪:
java.lang.ClassCastException:org.apache.xerces.parsers. 在 org.apache.xerces.parsers.DOMParser.(未知来源) 在 org.apache.xerces.parsers.DOMParser.(未知来源) 在 org.apache.xerces.jaxp.DocumentBuilderImpl.(未知来源) 在 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(未知来源) 在 __redirected.__DocumentBuilderFactory.newDocumentBuilder(__DocumentBuilderFactory.java:122) 在 org.apache.poi.util.DocumentHelper.newDocumentBuilder(DocumentHelper.java:84) 在 org.apache.poi.util.DocumentHelper.readDocument(DocumentHelper.java:137) 在 org.apache.poi.openxml4j.opc.internal.ContentTypeManager.parseContentTypesFile(ContentTypeManager.java:374) 在 org.apache.poi.openxml4j.opc.internal.ContentTypeManager.(ContentTypeManager.java:100) 在 org.apache.poi.openxml4j.opc.internal.ZipContentTypeManager.(ZipContentTypeManager.java:54) 在 org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:257) 在 org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:774) 在 org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:308) 在 org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:261) 在 org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:222) 在 org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:201) 在 it.habble.servlet.inventory.InventoryBuilder.processFile(InventoryBuilder.java:680) 在 it.habble.servlet.inventory.InventoryServlet.doPost(InventoryServlet.java:155) 在 javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [..]我在打包为 EAR 存档的多模块 maven Web 应用程序(web、ejb、jpa)中使用 POI 3.15。 这是我来自 EAR 项目的 maven 依赖树
[信息] maven-dependency-plugin:2.8:tree (default-cli) @ habble-ear --- [信息] it.habble:habble-ear:ear:1.0 [信息] +- it.habble:habble-report:jar:1.0:compile [信息] | +- xml-apis:xml-apis:jar:1.4.01:compile [信息] | +- xerces:xercesImpl:jar:2.11.0:compile [信息] | | \- (xml-apis:xml-apis:jar:1.4.01:compile - 重复省略) [信息] | +- org.apache.poi:poi-ooxml:jar:3.15:compile [信息] | | +- (org.apache.poi:poi:jar:3.15:compile - 重复省略) [信息] | | +- (org.apache.poi:poi-ooxml-schemas:jar:3.15:compile - 重复省略) [信息] | | \- com.github.virtuald:curvesapi:jar:1.04:compile [信息] | +- org.apache.poi:ooxml-schemas:jar:1.3:compile [信息] | | \- org.apache.xmlbeans:xmlbeans:jar:2.3.0:compile [信息] | | \- stax:stax-api:jar:1.0.1:compile [信息] | +- org.apache.poi:poi-excelant:jar:3.15:compile [信息] | | +- (org.apache.poi:poi:jar:3.15:compile - 重复省略) [信息] | | +- (org.apache.poi:poi-ooxml:jar:3.15:compile - 重复省略) [信息] | | \- org.apache.ant:ant:jar:1.8.2:compile [信息] | | \- org.apache.ant:ant-launcher:jar:1.8.2:compile [信息] | +- org.apache.poi:openxml4j:jar:1.0-beta:compile [信息] | | +- dom4j:dom4j:jar:1.6.1:编译 [信息] | | | \- (xml-apis:xml-apis:jar:1.0.b2:compile - 与 1.4.01 冲突省略) [信息] | | \- (log4j:log4j:jar:1.2.8:compile - 因与 1.2.17 冲突而省略) [信息] | +- org.jfree:jfreechart:jar:1.0.19:compile [信息] | | \- org.jfree:jcommon:jar:1.0.23:compile [信息] | +- net.sf.jasperreports:jasperreports:jar:6.1.0:compile [信息] | | +- commons-beanutils:commons-beanutils:jar:1.9.0:compile [信息] | | | +- (commons-logging:commons-logging:jar:1.1.1:compile - 与 1.2 冲突省略) [信息] | | | \- (commons-collections:commons-collections:jar:3.2.1:compile - 重复省略) [信息] | | +- commons-collections:commons-collections:jar:3.2.1:compile [信息] | | +- commons-digester:commons-digester:jar:2.1:compile [信息] | | | +- (commons-beanutils:commons-beanutils:jar:1.8.3:compile - 与 1.9.0 冲突省略) [信息] | | | \- (commons-logging:commons-logging:jar:1.1.1:compile - 与 1.2 冲突省略) [信息] | | +- (commons-logging:commons-logging:jar:1.1.1:compile - 与 1.2 冲突省略) [信息] | | +- com.lowagie:itext:jar:2.1.7.js2:compile [信息] | | | +- bouncycastle:bcmail-jdk14:jar:138:compile [信息] | | | +- bouncycastle:bcprov-jdk14:jar:138:compile [信息] | | | \- org.bouncycastle:bctsp-jdk14:jar:1.38:compile [信息] | | | +- org.bouncycastle:bcprov-jdk14:jar:1.38:compile [信息] | | | \- org.bouncycastle:bcmail-jdk14:jar:1.38:compile [信息] | | | \- (org.bouncycastle:bcprov-jdk14:jar:1.38:compile - 重复省略) [信息] | | +- jfree:jcommon:jar:1.0.15:compile [信息] | | +- jfree:jfreechart:jar:1.0.12:compile [信息] | | | \- (jfree:jcommon:jar:1.0.15:compile - 重复省略) [信息] | | +- (xml-apis:xml-apis:jar:1.3.02:compile - 与 1.4.01 冲突省略) [信息] | +- (it.habble:habble-common:jar:1.0:compile - 重复省略) [信息] | +- (com.google:gcm:jar:0.0.2:compile - 重复省略) [信息] +- it.habble:habble-ejbs:ejb:1.0:compile [信息] | +- (log4j:log4j:jar:1.2.17:compile - 重复省略) [信息] | +- org.springframework.security:spring-security-core:jar:3.2.5.RELEASE:compile [信息] | | +- (aopalliance:aopalliance:jar:1.0:compile - 重复省略) [信息] | +- org.apache.poi:poi:jar:3.15:compile [信息] | | +- (commons-codec:commons-codec:jar:1.10:compile - 与 1.9 冲突省略) [信息] | | \- org.apache.commons:commons-collections4:jar:4.1:compile [信息] | +- (org.apache.poi:poi-ooxml:jar:3.15:compile - 重复省略) [信息] | +- org.apache.poi:poi-ooxml-schemas:jar:3.15:compile [信息] | | \- (org.apache.xmlbeans:xmlbeans:jar:2.6.0:compile - 与 2.3.0 冲突省略) [信息] | +- (org.apache.poi:ooxml-schemas:jar:1.3:compile - 重复省略) [信息] | +- org.apache.poi:poi-contrib:jar:3.6:compile [信息] | | +- (org.apache.poi:poi:jar:3.6:compile - 与 3.15 冲突省略) [信息] | | +- (commons-logging:commons-logging:jar:1.1:runtime - 与 1.2 冲突省略) [信息] | | \- (log4j:log4j:jar:1.2.13:runtime - 因与 1.2.17 冲突而省略) [信息] | +- (org.apache.poi:poi-excelant:jar:3.15:compile - 重复省略) [信息] | +- org.apache.poi:ooxml-security:jar:1.1:compile [信息] | | \- (org.apache.xmlbeans:xmlbeans:jar:2.3.0:compile - 重复省略) [信息] | +- (org.apache.poi:openxml4j:jar:1.0-beta:compile - 重复省略) [信息] | +- javax.servlet:servlet-api:jar:2.4:compile [信息] | +- (it.habble:habble-ejb-client:jar:1.0:compile - 重复省略) [信息] | \- (it.habble:habble-jpa:jar:1.0:compile - 重复省略) [信息] +- it.habble:habble-ejb-client:jar:1.0:compile [信息] | +- (org.postgresql:postgresql:jar:9.4.1208.jre7:compile - 重复省略) [信息] | +- (log4j:log4j:jar:1.2.17:compile - 重复省略) [信息] | +- (org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile - 重复省略) [信息] | +- (org.springframework.security:spring-security-core:jar:3.2.5.RELEASE:compile - 重复省略) [信息] | +- org.richfaces.core:richfaces-core-api:jar:4.1.0.Final:compile [信息] | | \- com.google.guava:guava:jar:r08:compile [信息] | +- org.richfaces.core:richfaces-core-impl:jar:4.1.0.Final:compile [信息] | | +- (org.richfaces.core:richfaces-core-api:jar:4.1.0.Final:compile - 重复省略) [信息] | | +- net.sourceforge.cssparser:cssparser:jar:0.9.5:compile [信息] | | | \- org.w3c.css:sac:jar:1.3:compile [信息] | | \- (com.google.guava:guava:jar:r08:compile - 重复省略) [信息] | +- org.richfaces.ui:richfaces-components-api:jar:4.1.0.Final:compile [信息] | | \- (org.richfaces.core:richfaces-core-api:jar:4.1.0.Final:compile - 重复省略) [信息] | +- org.richfaces.ui:richfaces-components-ui:jar:4.1.0.Final:compile [信息] | | +- (org.richfaces.ui:richfaces-components-api:jar:4.1.0.Final:compile - 重复省略) [信息] | | \- (org.richfaces.core:richfaces-core-api:jar:4.1.0.Final:compile - 重复省略) [信息] | \- (it.habble:habble-jpa:jar:1.0:compile - 重复省略) [信息] +- it.habble:habble-web:war:1.0:compile [信息] +- org.springframework:spring-aop:jar:4.1.3.RELEASE:compile [信息] | +- aopalliance:aopalliance:jar:1.0:compile [信息] | +- (org.springframework:spring-beans:jar:4.1.3.RELEASE:compile - 重复省略) [信息] | \- (org.springframework:spring-core:jar:4.1.3.RELEASE:compile - 重复省略) [信息] +- org.springframework:spring-aspects:jar:4.1.3.RELEASE:compile [信息] | \- org.aspectj:aspectjweaver:jar:1.8.4:compile [信息] +- org.springframework:spring-beans:jar:4.1.3.RELEASE:compile [信息] | \- (org.springframework:spring-core:jar:4.1.3.RELEASE:compile - 重复省略) [信息] +- org.springframework.webflow:spring-binding:jar:2.4.1.RELEASE:compile [信息] | +- commons-logging:commons-logging:jar:1.1.1:compile [信息] | +- opensymphony:ognl:jar:2.6.11:compile [信息] | +- (org.springframework:spring-beans:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-context:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-core:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | \- (org.springframework:spring-expression:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] +- org.springframework:spring-context:jar:4.1.3.RELEASE:compile [信息] | +- (org.springframework:spring-aop:jar:4.1.3.RELEASE:compile - 重复省略) [信息] | +- (org.springframework:spring-beans:jar:4.1.3.RELEASE:compile - 重复省略) [信息] | +- (org.springframework:spring-core:jar:4.1.3.RELEASE:compile - 重复省略) [信息] | \- (org.springframework:spring-expression:jar:4.1.3.RELEASE:compile - 与 4.0.6.RELEASE 冲突省略) [信息] +- org.springframework:spring-context-support:jar:4.1.3.RELEASE:compile [信息] | +- (org.springframework:spring-beans:jar:4.1.3.RELEASE:compile - 重复省略) [信息] | +- (org.springframework:spring-context:jar:4.1.3.RELEASE:compile - 重复省略) [信息] | \- (org.springframework:spring-core:jar:4.1.3.RELEASE:compile - 重复省略) [INFO] +- org.springframework:spring-expression:jar:4.1.3.RELEASE:compile [信息] | \- (org.springframework:spring-core:jar:4.1.3.RELEASE:compile - 重复省略) [信息] +- org.springframework.webflow:spring-faces:jar:2.4.1.RELEASE:compile [信息] | +- (commons-logging:commons-logging:jar:1.1.1:compile - 重复省略) [信息] | +- (org.springframework.webflow:spring-binding:jar:2.4.1.RELEASE:compile - 重复省略) [信息] | +- org.springframework.webflow:spring-webflow:jar:2.4.1.RELEASE:compile [信息] | | +- (commons-logging:commons-logging:jar:1.1.1:compile - 重复省略) [信息] | | +- (opensymphony:ognl:jar:2.6.11:compile - 重复省略) [信息] | | +- (org.springframework.webflow:spring-binding:jar:2.4.1.RELEASE:compile - 重复省略) [信息] | | +- (org.springframework.webflow:spring-js:jar:2.4.1.RELEASE:compile - 重复省略) [信息] | | +- (org.springframework:spring-beans:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | | +- (org.springframework:spring-context:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | | +- (org.springframework:spring-core:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | | +- (org.springframework:spring-expression:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | | +- (org.springframework:spring-web:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | | \- (org.springframework:spring-webmvc:jar:4.0.6.RELEASE:compile - 重复省略) [信息] | +- (org.springframework:spring-beans:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-context:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-core:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-expression:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-web:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | \- (org.springframework:spring-webmvc:jar:4.0.6.RELEASE:compile - 重复省略) [信息] +- org.springframework:spring-core:jar:4.1.3.RELEASE:compile [信息] | \- (commons-logging:commons-logging:jar:1.2:compile - 与 1.1.1 冲突省略) [信息] +- org.springframework:spring-instrument:jar:4.1.3.RELEASE:compile [信息] +- org.springframework:spring-instrument-tomcat:jar:4.1.3.RELEASE:compile [信息] +- org.springframework:spring-orm:jar:4.1.3.RELEASE:compile [信息] | +- (org.springframework:spring-beans:jar:4.1.3.RELEASE:compile - 重复省略) [信息] | +- (org.springframework:spring-core:jar:4.1.3.RELEASE:compile - 重复省略) [信息] | +- (org.springframework:spring-jdbc:jar:4.1.3.RELEASE:compile - 重复省略) [信息] | \- org.springframework:spring-tx:jar:4.1.3.RELEASE:compile [信息] | +- (org.springframework:spring-beans:jar:4.1.3.RELEASE:compile - 重复省略) [信息] | \- (org.springframework:spring-core:jar:4.1.3.RELEASE:compile - 重复省略) [信息] +- org.springframework:spring-oxm:jar:4.1.3.RELEASE:compile [信息] | +- (org.springframework:spring-beans:jar:4.1.3.RELEASE:compile - 重复省略) [信息] | \- (org.springframework:spring-core:jar:4.1.3.RELEASE:compile - 重复省略) [信息] +- org.springframework.webflow:spring-js:jar:2.4.1.RELEASE:compile [信息] | +- (commons-logging:commons-logging:jar:1.1.1:compile - 重复省略) [信息] | +- org.springframework.webflow:spring-js-resources:jar:2.4.1.RELEASE:compile [信息] | +- (org.springframework:spring-beans:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-context:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-core:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-web:jar:4.0.6.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | \- (org.springframework:spring-webmvc:jar:4.0.6.RELEASE:compile - 重复省略) [信息] +- org.springframework.security.oauth:spring-security-oauth2:jar:2.0.9.RELEASE:compile [信息] | +- (org.springframework:spring-beans:jar:4.0.9.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-core:jar:4.0.9.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-context:jar:4.0.9.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-webmvc:jar:4.0.9.RELEASE:compile - 与 4.0.6.RELEASE 冲突省略) [信息] | +- (org.springframework.security:spring-security-core:jar:3.2.8.RELEASE:compile - 因与 3.2.5.RELEASE 冲突而省略) [信息] | +- (org.springframework.security:spring-security-config:jar:3.2.8.RELEASE:compile - 与 3.2.5.RELEASE 冲突省略) [信息] | +- (org.springframework.security:spring-security-web:jar:3.2.8.RELEASE:compile - 因与 3.2.5.RELEASE 冲突而省略) [信息] | +- commons-codec:commons-codec:jar:1.9:compile [信息] | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile [信息] | \- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile [信息] +- org.springframework.security:spring-security-remoting:jar:3.2.5.RELEASE:compile [信息] | +- (aopalliance:aopalliance:jar:1.0:compile - 重复省略) [信息] | +- (org.springframework.security:spring-security-core:jar:3.2.5.RELEASE:compile - 重复省略) [信息] | +- (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | \- (org.springframework:spring-web:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] +- org.springframework.security:spring-security-openid:jar:3.2.5.RELEASE:compile [信息] | +- com.google.inject:guice:jar:2.0:compile [信息] | | \- (aopalliance:aopalliance:jar:1.0:compile - 重复省略) [信息] | +- org.openid4java:openid4java-nodeps:jar:0.9.6:compile [信息] | | +- (commons-logging:commons-logging:jar:1.1.1:compile - 重复省略) [信息] | | \- net.jcip:jcip-annotations:jar:1.0:compile [信息] | +- (org.springframework.security:spring-security-core:jar:3.2.5.RELEASE:compile - 重复省略) [信息] | +- (org.springframework.security:spring-security-web:jar:3.2.5.RELEASE:compile - 与 3.2.8.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-aop:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-web:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- net.sourceforge.nekohtml:nekohtml:jar:1.9.20:runtime [信息] | | \- (xerces:xercesImpl:jar:2.10.0:runtime - 因与 2.11.0 冲突而省略) [信息] | \- (org.apache.httpcomponents:httpclient:jar:4.2.3:runtime - 与 4.5.2 冲突省略) [信息] +- org.springframework.security:spring-security-taglibs:jar:3.2.5.RELEASE:compile [信息] | +- (org.springframework.security:spring-security-acl:jar:3.2.5.RELEASE:compile - 重复省略) [信息] | +- (org.springframework.security:spring-security-core:jar:3.2.5.RELEASE:compile - 重复省略) [信息] | +- (org.springframework.security:spring-security-web:jar:3.2.5.RELEASE:compile - 与 3.2.8.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-aop:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-expression:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | \- (org.springframework:spring-web:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] +- org.springframework.security:spring-security-ldap:jar:3.2.5.RELEASE:compile [信息] | +- org.springframework.ldap:spring-ldap-core:jar:1.3.2.RELEASE:compile [信息] | | \- commons-lang:commons-lang:jar:2.4:compile [信息] | +- (org.springframework.security:spring-security-core:jar:3.2.5.RELEASE:compile - 重复省略) [信息] | +- (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | \- (org.springframework:spring-tx:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] +- org.springframework.security:spring-security-crypto:jar:3.2.5.RELEASE:compile [信息] | \- (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - 因与 4.1.3.RELEASE 冲突而省略) [信息] +- org.springframework.security:spring-security-config:jar:3.2.5.RELEASE:compile [信息] | +- (aopalliance:aopalliance:jar:1.0:compile - 重复省略) [信息] | +- (org.springframework.security:spring-security-core:jar:3.2.5.RELEASE:compile - 重复省略) [信息] | +- (org.springframework:spring-aop:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | \- (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - 因与 4.1.3.RELEASE 冲突而省略) [信息] +- org.springframework.security:spring-security-cas:jar:3.2.5.RELEASE:compile [信息] | +- org.jasig.cas.client:cas-client-core:jar:3.3.3:compile [信息] | | +- org.opensaml:opensaml:jar:2.5.1-1:compile [信息] | | | +- org.opensaml:openws:jar:1.4.2-1:compile [信息] | | | | +- org.opensaml:xmltooling:jar:1.3.2-1:compile [信息] | | | | | +- (org.slf4j:slf4j-api:jar:1.6.1:compile - 与 1.7.21 冲突省略) [信息] | | | | | +- org.slf4j:log4j-over-slf4j:jar:1.6.1:compile [信息] | | | | | | \- (org.slf4j:slf4j-api:jar:1.6.1:compile - 因与 1.7.21 冲突而省略) [信息] | | | | | +- org.slf4j:jul-to-slf4j:jar:1.6.1:compile [信息] | | | | | | \- (org.slf4j:slf4j-api:jar:1.6.1:compile - 因与 1.7.21 冲突而省略) [信息] | | | | | +- joda-time:joda-time:jar:1.6.2:compile [信息] | | | | | +- org.bouncycastle:bcprov-jdk15:jar:1.45:compile [信息] | | | | | +- org.apache.santuario:xmlsec:jar:1.4.4:compile [信息] | | | | | +- ca.juliusdavies:not-yet-commons-ssl:jar:0.3.9:compile [信息] | | | | | | \- (commons-httpclient:commons-httpclient:jar:3.0:compile - 与 3.1 冲突省略) [信息] | | | | | +- (net.jcip:jcip-annotations:jar:1.0:compile - 重复省略) [信息] | | | | | +- (xml-apis:xml-apis:jar:1.4.01:runtime - 重复省略) [信息] | | | | | +- (xerces:xercesImpl:jar:2.10.0:runtime - 因与 2.11.0 冲突而省略) [信息] | | | | | +- (xml-resolver:xml-resolver:jar:1.2:runtime - 重复省略) [信息] | | | | | \- (xalan:xalan:jar:2.7.1:runtime - 重复省略) [信息] | | | | +- (commons-codec:commons-codec:jar:1.3:compile - 与 1.9 冲突省略) [信息] | | | | +- (commons-httpclient:commons-httpclient:jar:3.1:compile - 重复省略) [信息] | | | | +- (xml-apis:xml-apis:jar:1.4.01:runtime - 重复省略) [信息] | | | | +- (xerces:xercesImpl:jar:2.10.0:runtime - 因与 2.11.0 冲突而省略) [信息] | | | | +- (xml-resolver:xml-resolver:jar:1.2:runtime - 重复省略) [信息] | | | | \- (xalan:xalan:jar:2.7.1:runtime - 重复省略) [信息] | | | +- (commons-collections:commons-collections:jar:3.1:compile - 因与 3.2.1 冲突而省略) [信息] | | | +- (commons-lang:commons-lang:jar:2.1:compile - 与 2.4 冲突省略) [信息] | | | +-速度:速度:jar:1.5:编译 [信息] | | | | +- (commons-collections:commons-collections:jar:3.1:compile - 因与 3.2.1 冲突而省略) [信息] | | | | \- (commons-lang:commons-lang:jar:2.1:compile - 与 2.4 冲突省略) [信息] | | | +- org.owasp.esapi:esapi:jar:2.0GA:编译 [信息] | | | +- (xml-apis:xml-apis:jar:1.4.01:runtime - 重复省略) [信息] | | | +- (xerces:xercesImpl:jar:2.10.0:runtime - 因与 2.11.0 冲突而省略) [信息] | | | +- xml-resolver:xml-resolver:jar:1.2:runtime [信息] | | | \- xalan:xalan:jar:2.7.1:runtime [信息] | | | \- xalan:serializer:jar:2.7.1:runtime [信息] | | | \- (xml-apis:xml-apis:jar:1.3.04:runtime - 因与 1.4.01 冲突而省略) [信息] | | \- (org.slf4j:slf4j-api:jar:1.7.1:compile - 与 1.7.21 冲突省略) [信息] | +- (org.springframework.security:spring-security-core:jar:3.2.5.RELEASE:compile - 重复省略) [信息] | +- (org.springframework.security:spring-security-web:jar:3.2.5.RELEASE:compile - 与 3.2.8.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | \- (org.springframework:spring-web:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] +- org.springframework.security:spring-security-web:jar:3.2.5.RELEASE:compile [信息] | +- (aopalliance:aopalliance:jar:1.0:compile - 重复省略) [信息] | +- (org.springframework.security:spring-security-core:jar:3.2.5.RELEASE:compile - 重复省略) [信息] | +- (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略) [信息] | +- (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - 与 4.1.3.RELEASE 冲突省略)您能否发现配置错误或您对如何解决此问题有任何建议?我们很确定 Excel 文件(使用 Excel 2007 和 OpenOffice 创建)没有任何问题。
【问题讨论】:
我会检查 Xerces 依赖项 - 尝试降级它或检查您的 AppServer 是否存在冲突版本。如果您可以设置类加载器顺序,请尝试 parent_last。那么这个错误发生在 Maven 构建和 AppServer 上? 谢谢,我更好地查看了 Maven 依赖项以找出问题 【参考方案1】:我删除了org.apache.poi:poi-contrib
、org.apache.poi:ooxml-security
和架构。我必须考虑所有关于这些库的消息,例如“省略重复|冲突”。离开 xml-beans 2.6.0(Apache POI 开发人员推荐的版本)和所有具有相同版本的 POI 库似乎可以解决问题
【讨论】:
以上是关于XIncludeAwareParserConfiguration 不能转换为 org.apache.xerces.xni.parser.XMLParserConfiguration的主要内容,如果未能解决你的问题,请参考以下文章