[jboss-jira] [JBoss JIRA] (AS7-3338) Deployment of a WAR archive with malformed web.xml ends up in undefined state

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Tue Jan 17 15:43:19 EST 2012


     [ https://issues.jboss.org/browse/AS7-3338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated AS7-3338:
----------------------------------

    Fix Version/s: 7.1.0.Final
         Assignee: Alexey Loubyansky  (was: Brian Stansberry)
      Component/s: CLI
                       (was: Web)


Alexey, it looks like DeployHandler is doing the add and then the deploy in separate ops, instead of in a composite op. Result is the overall "deploy" is not atomic.
                
> Deployment of a WAR archive with malformed web.xml ends up in undefined state
> -----------------------------------------------------------------------------
>
>                 Key: AS7-3338
>                 URL: https://issues.jboss.org/browse/AS7-3338
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: CLI, Domain Management
>    Affects Versions: 7.1.0.Final
>            Reporter: Dominik Pospisil
>            Assignee: Alexey Loubyansky
>             Fix For: 7.1.0.Final
>
>         Attachments: deployment2.war
>
>
> Deployment of a WAR archive with malformed web.xml ends up in undefined state. The undeploy operation of the malformed archive is triggered however it is rolled back. As a result, the deployment is not available however it is listed in the configuration model.
> 15:05:15,997 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."deployment2.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."deployment2.war".PARSE: Failed to process phase PARSE of deployment "deployment2.war"
>         at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
>         at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
>         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.7.0_b147-icedtea]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.7.0_b147-icedtea]
>         at java.lang.Thread.run(Thread.java:722) [:1.7.0_b147-icedtea]
> Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to parse "/content/deployment2.war/WEB-INF/web.xml" at [1,1]
>         at org.jboss.as.web.deployment.WebParsingDeploymentProcessor.deploy(WebParsingDeploymentProcessor.java:112)
>         at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
>         ... 5 more
> 15:05:16,001 INFO  [org.jboss.as.server] (management-handler-threads - 3) JBAS015856: Undeploy of deployment "deployment2.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"deployment2.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"deployment2.war\".PARSE: Failed to process phase PARSE of deployment \"deployment2.war\""}}
> 15:05:16,005 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) Stopped deployment deployment2.war in 3ms
> 15:05:16,006 INFO  [org.jboss.as.controller] (management-handler-threads - 3) JBAS014774: Service status report
> JBAS014777:   Services which failed to start:      service jboss.deployment.unit."deployment2.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."deployment2.war".PARSE: Failed to process phase PARSE of deployment "deployment2.war"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list