2015-07-13 18 views
0

我得到JIRA插件本trece了Apache POI:我把这些XML-apis.jar,STAX-apis.jar和xercesImpl.jar怎么办:我POM,XML

下面是与Apache所致POI 3.9:

Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.poi.xssf.usermodel.XSSFWorkbook]:  
Constructor threw exception; nested exception is java.lang.NoSuchMethodError:  
javax.xml.stream.XMLEventFactory.newFactory()Ljavax/xml/stream/XMLEventFactory; at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115) at 

Caused by: java.lang.NoSuchMethodError: javax.xml.stream.XMLEventFactory.newFactory()Ljavax/xml/stream/XMLEventFactory; at org.apache.poi.openxml4j.opc.internal.marshallers.PackagePropertiesMarshaller 

我看着这个FAQ Apache的POI http://poi.apache.org/faq.html#faq-N1017E

如何把这些XML-apis.jar,STAX-apis.jar或xercesImpl.jar:我POM,XML的依赖。

+0

你想添加依赖项还是排除它们? – Victor

+0

是的,我想将它们添加到依赖关系 –

+0

为什么你使用这样一个旧版本的Apache POI?为什么不使用最新的? (目前3.12) – Gagravarr

回答