tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Terence M. Bandoian" <>
Subject POI/XML issues in server environment
Date Thu, 17 Jun 2010 00:05:35 GMT
Any possibility that the Excel file was modified (e.g. FTP)?  I've used 
POI in a Tomcat 5.5 webapp on Windows Server and didn't see any problems 
like this.

-Terence Bandoian

Jorge Moya wrote:
> Hello guys.
> For the past couple of days, I've been working as an intern in a local
> company and I'd like to mention I'm kind of new with Tomcat and POI. My
> first task was to update a java code they had to extract information of
> excel 97-2003 files to the new POI so that I could also extract and work
> with Excel 2007+ files. I got it working with a local .class test and
> ant.xml build. I then proceeded to update the webservice app in our server
> to function along with Tomcat and this is where the problems began that have
> been bothering me for the past week. Whenever I try to extract .xlsx files I
> get the following error:
> org.apache.poi.openxml4j.exceptions.InvalidFormatException: Can't read
> content types part !
>         at
> org.apache.poi.openxml4j.opc.internal.ContentTypeManager.<init>(
>         at
> org.apache.poi.openxml4j.opc.internal.ZipContentTypeManager.<init>(
>         at
> org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(
>         at
> org.apache.poi.openxml4j.opc.OPCPackage.getParts(
>         at
>         at
>         at com.msights.core.utils.ExcelFile.loadFile(
>         at com.msights.core.utils.GroupLoader.loadFiles(
>         at
>         at
> Now, I've established a long conversation with the POI userlist and came to
> the conclusion I'm having some issues with some of the .jar files and
> classes. This is notably so because I established a local Tomcat environment
> and I can extract the information just fine. I'm kind of at odds on how I
> could fix that issues (Tomcat in the server manipulates a couple of webapps)
> and maybe you guys could offer me a solution.
> Java version is 1.5.0_18-b02
> Windows version is Windows Server 2003 SP2
> Tomcat version: 5.5.20
> Libraries:
> **
> Shared only has cewcanative.jar
> Any idea of what's causing the problem?
> Thanks in advance.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message