JBoss5: Cannot deploy due to java.util.zip.ZipException: error in opening zip file

前端 未结 25 2487
情书的邮戳
情书的邮戳 2020-12-03 06:15

I have a web client and a EJB project, which I created with Eclipse 3.4. When I want to deploy it on Jboss 5.0.1, I receive the error below. I searched a lot but I wasn\'t a

相关标签:
25条回答
  • 2020-12-03 06:20

    I had this exact issue and discovered that I had corrupt/empty jar files in the WEB-INF/lib directory. Once I replaced each with a good copy, deployment went off without a hitch.

    0 讨论(0)
  • 2020-12-03 06:21

    I just discovered that if you don't specify a version number at the maven-war-plugin it will use some kind of alpha version. give it the version number 2.0, for me that worked.

    0 讨论(0)
  • 2020-12-03 06:21

    I have the problem, but it is due to their being zip files down in the webapp. When Eclipse tries to deploy the webapp to the dev tomcat server, it is trying to unzip the zip files. Yes, I inherited this webapp. Now I'll try to add it to a filter to keep this from happening, wish me luck.

    0 讨论(0)
  • 2020-12-03 06:22

    Ok, I finally found the solution to my problem. It seems that there's a bug in Eclipse which prevent the creation of the .settings/org.eclipse.wst.common.component file. This file should be created when setting the EJB3 and Java6 facets in project properties.

    Here is an org.eclipse.wst.common.component example file :

    <?xml version="1.0" encoding="UTF-8"?>
    <project-modules id="moduleCoreId" project-version="1.5.0">
        <wb-module deploy-name="project_name">
            <wb-resource deploy-path="/" source-path="/src/main/java"/>
            <wb-resource deploy-path="/" source-path="/src/main/resources"/>
            <wb-resource deploy-path="/" source-path="/src/test/java"/>
            <wb-resource deploy-path="/" source-path="/src/test/resources"/>
            <property name="java-output-path"/>
        </wb-module>
    </project-modules>
    

    The deploy paths must be defined in order to be able to create the EJB Jar file used by the server on deployment. Once created, Jboss publish the EJB module correctly.

    0 讨论(0)
  • 2020-12-03 06:22

    I also have this, but when I add an maven-war-plugin and maven-ejb-plugin to my projects everything works again...

    0 讨论(0)
  • 2020-12-03 06:22

    try install web tools platform (WTP) from the eclipse update... I heard that there was some kind of bug, you will need version 3.0.4. I can't find the link, sorry... hope this will help!

    0 讨论(0)
提交回复
热议问题