Unable to deploy applications using the management console via https in JBoss EAP 7.1

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.1.4

Issue

  • Deploying an application using the web-console via https is not possible, the server.log shows:
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."application.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."application.war".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE of deployment "application.war"
                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:172)
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                at java.lang.Thread.run(Thread.java:748)
        Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYSRV0160: Failed to mount deployment content
                at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:95)
                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:165)
                ... 5 more
        Caused by: java.util.zip.ZipException: error in opening zip file
                at java.util.zip.ZipFile.open(Native Method)
                at java.util.zip.ZipFile.<init>(ZipFile.java:225)
                at java.util.zip.ZipFile.<init>(ZipFile.java:155)
                at java.util.zip.ZipFile.<init>(ZipFile.java:169)
                at org.jboss.vfs.VFSUtils.unzip(VFSUtils.java:874)
                at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:504)
                at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:533)
                at org.jboss.as.server.deployment.DeploymentMountProvider$Factory$ServerDeploymentRepositoryImpl.mountDeploymentContent(DeploymentMountProvider.java:108)
                at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:91)
                ... 6 more
  • When trying to assign a war previously uploaded to the content repository it fails when a server in the server group is running. The error message is as follows:
{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"APP.war\".STRUCTURE" => "WFLYSRV0153: Failed to process phase STRUCTURE of deployment \"APP.war\"
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYSRV0160: Failed to mount deployment content
    Caused by: java.util.zip.ZipException: error in opening zip file"}}

if the server of the server group is stopped and retry, the deployment is correctly assigned and enabled, but the application does not work.

  • When the deployment file is uploaded, the file size is smaller than the original file in the /data/content.

Resolution

For previous versions of 7.1.6, as a workaround:

  1. Use CLI to deploy the applications.
  2. Configure the management console with SSL using Elytron as described in How to secure management interface in JBoss EAP 7.1 with Elytron in domain mode?

To permanently fix the issue, apply the This content is not included.Enterprise Application Platform 7.1 Update 6

Root Cause

Jira Content from issues.jboss.org is not included.JBEAP-15548 was filed for this issue, and fixed in JBoss EAP 7.1.6.

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.