Read through.the rest of the FAQ for ideas. There's something wrong with your class path. Either duplicates, wrong versions, or missing components.
Can you check if you can read just HSSFWorkbooks? Are you using the lite poi-ooxml-schemas or the full ooxml-schemas jar? Hopefully not both. On Jan 26, 2017 01:34, <kejun.ch...@escco.co.jp> wrote: > Thanks for advices. > > I check the program and found the error location is the next line, but I > don't know still how to solve it. > ((XSSFWorkbook) (this.workbook)).close(); > > The error info is next: > [17-01-26 18:22:30.972] {resin-port-8080-35} > java.lang.ExceptionInInitializerError > at > com.sun.org.apache.xml.internal.serializer.ToUnknownStream.<init>( > ToUnknownS > tream.java:143) > at > com.sun.org.apache.xalan.internal.xsltc.runtime.output. > TransletOutputHandler > Factory.getSerializationHandler(TransletOutputHandlerFactory.java:160) > at > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl. > getOutputHandle > r(TransformerImpl.java:461) > at > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform( > Trans > formerImpl.java:344) > at > org.apache.poi.openxml4j.opc.StreamHelper.saveXmlInStream( > StreamHelper.java: > 80) > at > org.apache.poi.openxml4j.opc.internal.marshallers. > ZipPartMarshaller.marshall > RelationshipPart(ZipPartMarshaller.java:181) > at > org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:560) > at > org.apache.poi.openxml4j.opc.OPCPackage.save(OPCPackage.java:1557) > at > org.apache.poi.openxml4j.opc.OPCPackage.save(OPCPackage.java:1542) > at > org.apache.poi.openxml4j.opc.ZipPackage.closeImpl(ZipPackage.java:445) > at > org.apache.poi.openxml4j.opc.OPCPackage.close(OPCPackage.java:496) > at > org.apache.poi.POIXMLDocument.close(POIXMLDocument.java:210) > at efw.excel.Excel.close(Excel.java:104) > > And reading data from xlsx is correctly worked. > > > > -----Original Message----- > From: kejun.ch...@escco.co.jp [mailto:kejun.ch...@escco.co.jp] > Sent: Wednesday, January 25, 2017 5:15 PM > To: user@poi.apache.org > Subject: An error when I use poi3.15 in a resin4 web applicatoin > > Hello. > > I made a web application which is correct in tomcat. When I put it into > resin4, everything is good except POI3.15. > It became not to read xlsx, but xls reading is still correct. > > Error info is the next line. > > java.lang.NoClassDefFoundError: Could not initialize class > com.sun.org.apache.xml.internal.serializer.ToXMLStream > > I check every jar in POI and tomcat, but can't find the class. > I don't know whether it is bug of POI or not when I writing the mail. > > I am puzzled, please give me some advice. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@poi.apache.org For additional > commands, e-mail: user-h...@poi.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@poi.apache.org > For additional commands, e-mail: user-h...@poi.apache.org > >