Deployment by maven
times101 Apr 8, 2014 6:30 AMHello,
Am trying to do a remote deploy on our server (standalone full) but it fails with:
java.net.ConnectException: JBAS012144: Could not connect to remote://192.*.*.*:9999. The connection timed out
Caused by: java.lang.IllegalStateException: Error could not execute operation '{
"address" => [],
"operation" => "read-attribute",
"name" => "launch-type"
}'.
at org.jboss.as.plugin.common.AbstractServerConnection.isDomainServer(AbstractServerConnection.java:186)
at org.jboss.as.plugin.common.AbstractServerConnection.getClient(AbstractServerConnection.java:132)
at org.jboss.as.plugin.common.AbstractServerConnection.isDomainServer(AbstractServerConnection.java:109)
at org.jboss.as.plugin.deployment.AbstractDeployment.validate(AbstractDeployment.java:187)
at org.jboss.as.plugin.deployment.AbstractDeployment.doExecute(AbstractDeployment.java:146)
my pom.xml:
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.5.Final</version>
<configuration>
<hostname>192.*.*.*</hostname>
<port>9999</port>
<username>user</username>
<password>secret</password>
<filename>${project.build.finalName}.ear</filename>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
My standalone-full.xml is same as out of the box, the key entries been:
a) <subsystem xmlns="urn:jboss:domain:jmx:1.1">
<show-model value="true"/>
<remoting-connector use-management-endpoint="false"/>
</subsystem>
b) <interfaces>
<interface name="management">
<any-ipv4-address/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
<interface name="unsecure">
<inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
</interface>
</interfaces>
c)
<socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/> |
Also I can Telnet from my local machine to the remote on port 9999 and these are the ports on the remote server where jboss is running:
Proto | Local Address | Foreign Address | State | |
tcp | 0.0.0.0:5455 | 0.0.0.0:* | LISTEN | |
tcp | 0.0.0.0:9999 | 0.0.0.0:* | LISTEN | |
tcp | 0.0.0.0:111 | 0.0.0.0:* | LISTEN | |
tcp | 0.0.0.0:8080 | 0.0.0.0:* | LISTEN | |
tcp | 0.0.0.0:22 | 0.0.0.0:* | LISTEN | |
tcp | 0.0.0.0:4447 | 0.0.0.0:* | LISTEN | |
tcp | 0.0.0.0:5445 | 0.0.0.0:* | LISTEN | |
tcp | 0.0.0.0:9990 | 0.0.0.0:* | LISTEN | |
tcp | 0.0.0.0:37191 | 0.0.0.0:* | LISTEN | |
tcp | 127.0.0.1:3528 | 0.0.0.0:* | LISTEN | |
tcp | 192.*.*.*:22 | 192.*.*.79:63248 | ESTABLISHED | |
tcp | 192.*.*.*:22 | 192.*.*.65:59411 | ESTABLISHED | |
tcp | 192.*.*.*:22 | 192.*.*.65:55127 | ESTABLISHED | |
tcp | 192.*.*.*:22 | 192.*.*.65:59409 | ESTABLISHED | |
tcp | 192.*.*.*:22 | 192.*.*.79:63273 | ESTABLISHED | |
tcp | 192.*.*.*:9999 | 192.*.*.79:63272 | ESTABLISHED | |
tcp | 192.*.*.*:22 | 192.*.*.79:61862 | ESTABLISHED |
Can please someone let me know what's going wrong.
Thanks,