java.lang.IllegalArgumentException: Invalid or unreadable WAR file : error in opening zip file

后端 未结 15 2557
眼角桃花
眼角桃花 2020-12-14 03:19


I got this error in Catalina.2011-03-30.log when my display.war file executed on Tomcat. The error is shown below:

Mar 30, 2011 8:01:31 PM org.apac         


        
15条回答
  •  感情败类
    2020-12-14 04:01

    The Cause is clearly shown:

    java.lang.IllegalArgumentException: Invalid or unreadable WAR file : error in opening zip file  
    

    A WAR (Web ARchive) file is a zip file containing your classes, libraries and resources for your web application.

    Rename your WAR file from a.war to a.zip. If you can't open the zip file using Winzip/7-Zip/WinRar, rebuild your WAR file again.

    Hope this helps.

提交回复
热议问题