[jboss-dev-forums] [JBoss AS7 Development] - undeploy workaround in AS7 domain

Steve Dodge do-not-reply at jboss.com
Fri Jun 10 15:15:15 EDT 2011


Steve Dodge [http://community.jboss.org/people/mtb2ride] created the discussion

"undeploy workaround in AS7 domain"

To view the discussion, visit: http://community.jboss.org/message/609703#609703

--------------------------------------------------------------
Using the  http://community.jboss.org/docs/DOC-16769 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
[http://community.jboss.org/message/609703#609703]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110610/034398b7/attachment.html 


More information about the jboss-dev-forums mailing list