JBoss AS 7 Domain Deployment issue
mattp0100 May 2, 2013 4:59 PMHey all,
I have several servers setup in a domain configuration using AS 7.1.1.Final.
I have started up each server and successfully connected to the domain controller, and deployed my war files to the proper server groups using the jboss-as-maven-plugin 7.4.Final.
After that initial deployment, however, my subsequent deployments fail with the error message "Server group '<group-name>' does not exist on the server." This will happen with 'deploy', 'redeploy' and 'undeploy' targets.
The server-groups are clearly defined in the domain.xml file, and the web interface shows the correct server groups when you go to manage deployments. I can deploy via the web interface.
My server-groups area of domain.xml:
<server-groups>
<server-group name="web" profile="base">
<jvm name="default">
<heap size="64m" max-size="512m"/>
<permgen size="128m" max-size="128m"/>
</jvm>
<socket-binding-group ref="base-sockets"/>
<deployments>
<deployment name="web.war" runtime-name="web.war"/>
<deployment name="web2.war" runtime-name="web2.war"/>
</deployments>
</server-group>
<server-group name="main" profile="backend">
<jvm name="default">
<heap size="512m" max-size="2G"/>
<permgen size="256m" max-size="256m"/>
</jvm>
<socket-binding-group ref="full-sockets"/>
<deployments>
<deployment name="main.war" runtime-name="main.war"/>
</deployments>
</server-group>
<server-group name="internal" profile="base">
<jvm name="default">
<heap size="256m" max-size="1G"/>
<permgen size="128m" max-size="128m"/>
</jvm>
<socket-binding-group ref="base-sockets"/>
<deployments>
<deployment name="internal.war" runtime-name="internal.war"/>
</deployments>
</server-group>
</server-groups>
One of my servers host.xml server definitions:
<servers>
<server name="main" group="main">
<jvm name="default">
<jvm-options>
<option value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"/>
</jvm-options>
</jvm>
</server>
</servers>
Output from a build when trying to undeploy:
[INFO] --- jboss-as-maven-plugin:7.4.Final:undeploy (undeploy) @ cluster-main ---
May 02, 2013 2:29:42 PM org.xnio.Xnio <clinit>
INFO: XNIO Version 3.0.7.GA
May 02, 2013 2:29:42 PM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.0.7.GA
May 02, 2013 2:29:42 PM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 3.2.12.GA
Authenticating against security realm: ManagementRealm
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.353s
[INFO] Finished at: Thu May 02 14:29:43 MDT 2013
[INFO] Final Memory: 15M/220M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.4.Final:undeploy (undeploy) on project cluster-main: Server group 'main' does not exist on the server. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.-groups>
All servers are up and running when this build took place. The web interface showed the server group defined and a server connected from that group. It seemed to be reaching the correct domain server as well, as I tested it out by taking down the domain server and trying the build again, and got a server timeout error instead. Anyone have any ideas as to what I might be doing wrong?
Thanks in advance.
Matt