Nov 12, 2010

java.util.zip.ZipException: invalid entry size

error log on browser
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: java.util.zip.ZipException: invalid entry size (expected 1855 but got 1880 bytes)
at org.jboss.web.tomcat.service.jasper.TagLibCache.init(TagLibCache.java:106)

error log on console
java.util.zip.ZipException: invalid entry size (expected 1855 but got 1880 bytes)
at java.util.zip.ZipInputStream.readEnd(Unknown Source)

solution

in (jboss 4.0)
%JBOSS_HOME%\server\default\deploy\jbossweb-tomcat55.sar\conf\web.xml

<init-param>
    <param-name>engineOptionsClass</param-name>
    <param-value>org.jboss.web.tomcat.tc5.jasper.JspServletOptions</param-value>
</init-param>

in (jboss 4.2)
%JBOSS_HOME%\server\default\deploy\jboss-web.deployer\conf\web.xml

<init-param>
    <param-name>engineOptionsClass</param-name>
    <param-value>org.jboss.web.tomcat.service.jasper.JspServletOptions</param-value>
</init-param>

comments
did not find it effective

reference
http://blog.csdn.net/mir2ming/archive/2009/05/08/4160731.aspx

1 comment: