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

后端 未结 15 2593
眼角桃花
眼角桃花 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 03:51

    I had the same problem (java.lang.IllegalArgumentException: Invalid or unreadable WAR file). For me, the cause was that I had catalina-6.0.43.jar included in my WAR file. To get rid of the error, I created a new WAR file that didn't include this jar, then Tomcat 7 was able to successfully start the application. Unfortunately, this solution only worked for Tomcat 7. I'm still getting the same error when I try to deploy the exact same WAR on Tomcat 8.

提交回复
热议问题