I tried for several days to use jboss-as-maven-plugin to deploy web projects on a remote JBoss AS7, but this did not work.
Here is my pom.xml :
<plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId> <version>7.1.0.CR1b</version> <executions> <execution> <phase>install</phase> <goals> <goal>deploy</goal> </goals> <configuration> <hostname>192.168.1.104</hostname> <port>9999</port> <username>admin</username> <password>admin123</password> </configuration> </execution> </executions> </plugin>
Using this configuration, I can deploy localhost without a <configuration> , even without a <username> and <password> .
To expand my real IP address, I changed $ {JBOSS_HOME} /configuration/standlone.xml , changing jboss.bind.address from 127.0.0.1 to 0.0.0.0 (to decouple the JBoss address), so I can deploy projects using:
<configuration> <hostname>192.168.1.06</hostname> <port>9999</port> </configuration>
It works, but changing <hostname> to another computer (in the same router), it does not work, but this computer receives a request, and the request is cut by something. (I thought it could be JBoss)
The error message in the Maven console is as follows:
INFO: JBoss Remoting version 3.2.0.CR8 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 30.572s [INFO] Finished at: Fri Feb 10 23:41:25 CST 2012 [INFO] Final Memory: 18M/170M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.1.0. CR1b:deploy (default) on project MessagePushX-RELEASE: Could not execute goal de ploy on MessagePush.war. Reason: java.net.ConnectException: JBAS012144: Could no t connect to remote:
Who can tell me that JBoss, like 7.1.0, is not allowed for remote deployment?
For some security issues?
Junv
source share