jboss-as-maven-plugin kann nicht bereitstellen, um remote-JBoss AS7?

Habe ich versucht, für Tage, um jboss-as-maven-plugin bereitstellen von web-Projekten auf entfernten JBoss AS7, aber es hat nicht funktioniert.

Hier ist mein pom.xml:

<!-- JBoss Application Server -->
<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>
            <!-- Only remote server needs -->
            <configuration>
                <hostname>192.168.1.104</hostname>
                <port>9999</port>
                <username>admin</username>
                <password>admin123</password>
            </configuration>
        </execution>    
    </executions>
</plugin>

Mithilfe dieser Konfiguration kann ich bereitstellen, um localhost ohne <configuration> auch keine <username> und <password>.

Bereitstellen zu meiner real IP-Adresse habe ich geändert ${JBOSS_HOME}/configuration/standlone.xml, durch ändern jboss.bind.address aus 127.0.0.1 zu 0.0.0.0 (trennen JBoss-Adresse), so kann ich bereitstellen von Projekten durch den Einsatz von:

<configuration>
    <!-- 192.168.1.106 is my ip -->
    <hostname>192.168.1.06</hostname>
    <port>9999</port>
</configuration>

Funktioniert es auch, aber durch die änderung <hostname> zu zeigen auf meinem anderen Rechner (am selben router) funktioniert es nicht, aber, dass der computer eine Anforderung empfängt und die Anforderung wird durch Schnitt etwas. (Ich dachte, es kann sein, JBoss)

Die Fehlermeldung in der Maven Konsole ist wie folgt:

 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://192.168.1.104:9999. The connection timed out -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Wer kann mir sagen, JBoss as 7.1.0 ist nicht erlaubt remote bereitstellen?

Für einige Sicherheits-Probleme?

InformationsquelleAutor Junv | 2012-02-10
Schreibe einen Kommentar