当前位置: 代码迷 >> Web前端 >> tomcat的java.util.zip.ZipInputStream.getUTF8String有关问题
  详细解决方案

tomcat的java.util.zip.ZipInputStream.getUTF8String有关问题

热度:762   发布时间:2012-08-29 08:40:14.0
tomcat的java.util.zip.ZipInputStream.getUTF8String问题

http://article.st59.com/3789.html



2011-9-30 9:55:05 org.apache.catalina.startup.HostConfig deployWAR
信息: Deploying web application archive SCM.war
2011-9-30 9:55:07 org.apache.catalina.startup.TldConfig lifecycleEvent
严重: Error processing TLD files for context with name [/SCM]
java.lang.IllegalArgumentException
at java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:317)
at java.util.zip.ZipInputStream.getFileName(ZipInputStream.java:436)
at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:255)
at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:82)
at java.util.jar.JarInputStream.getNextEntry(JarInputStream.java:130)
at java.util.jar.JarInputStream.getNextJarEntry(JarInputStream.java:167)
at org.apache.tomcat.util.scan.UrlJar.nextEntry(UrlJar.java:93)
at org.apache.catalina.startup.TldConfig.tldScanJar(TldConfig.java:537)
at org.apache.catalina.startup.TldConfig.access$100(TldConfig.java:58)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

启动tomcat时报错原因是:jar文件以ASCII格式上传到cvs服务器,然后下载的,这样jar文件就会被破坏,所以改为Binary格式上传,问题即可解决。
http://www.diybl.com/course/3_program/java/javajs/20100710/400975.html


原因 ,因为新打的jar包中,资源文件,有中文名导致.
  相关解决方案