JBoss Community

undeploy workaround in AS7 domain

created by Steve Dodge in JBoss AS7 Development - View the full discussion

Using the Deploy and undeploy with the CLI I can successfully deploy war archives to my server groups.  I'm using JBoss AS 7.0.0.Beta3.  When I un-deploy using --all-relevant-server-groups flag, the deployment is removed from the server groups but still stays in the domain deployment repository.  Then when I do a simple undeploy with no args I get this.

 

 

    <deployments>
        <deployment name="e32web.war" runtime-name="e32web.war" sha1="be6c6e6e619d0504cb32252c598cbf21800b2041"/>
    </deployments>
    <server-groups>
        <server-group name="main-server-group" profile="default">
            <jvm name="default">
                <heap size="64m" max-size="512m"/>
            </jvm>
            <socket-binding-group ref="standard-sockets"/>
        </server-group>
        <server-group name="other-server-group" profile="default">
            <jvm name="default">
                <heap size="64m" max-size="512m"/>
            </jvm>
            <socket-binding-group ref="standard-sockets"/>
        </server-group>
    </server-groups>

 

 

[localhost:9999 /] undeploy e32web.war
Undeploy failed: {"domain-failure-description" => "No handler for undeploy at address [(\"deployment\" => \"e32web.war\")]"}

 

Instead I have to do this with "remove":

 

[localhost:9999 /] cd deployment=e32web.war
[localhost:9999 e32web.war] :remove

 

I even took advantage of using tab completion for e32web.war

Now my domain.xml has no <deployments> element

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community