Struts 2 application fails to deploy in JBoss EAP 6 with ZipException: error in opening zip file

Solution Verified - Updated -

Issue

  • I´m getting this error when deploying an EAR application that uses struts 2 in JBoss EAP 6, Can you tell me what is the problem?
WARN  [com.opensymphony.xwork2.util.FileManager] (MSC service thread 1-5) Could not create JarEntryRevision for [vfs:/content/test.ear/lib/struts2-core-2.2.1.1]!: java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_30]
    at java.util.zip.ZipFile.<init>(ZipFile.java:127) [rt.jar:1.6.0_30]
    at java.util.jar.JarFile.<init>(JarFile.java:135) [rt.jar:1.6.0_30]
    at java.util.jar.JarFile.<init>(JarFile.java:99) [rt.jar:1.6.0_30]
    at com.opensymphony.xwork2.util.FileManager$JarEntryRevision.build(FileManager.java:307) [xwork-core-2.2.1.1.jar:2.2.1.1]
    at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:145) [xwork-core-2.2.1.1.jar:2.2.1.1]
    at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:105) [xwork-core-2.2.1.1.jar:2.2.1.1]
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:898) [xwork-core-2.2.1.1.jar:2.2.1.1]
       ...

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.0
  • Apache Struts 2.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.