简体   繁体   English

jBoss作为Maven插件-无法连接到本地主机:9990

[英]jBoss as maven plugin - Cannot connect to localhost:9990

I'm trying to deploy to my jBoss as7 but the jboss-as-maven-plugin seems to be unable to connect to the server. 我正在尝试将jBoss as7部署到我的jBoss,但是jboss-as-maven-plugin似乎无法连接到服务器。

This error is always shown: 始终显示此错误:

[ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.6.Final:deploy (deploy-to-server) on project ecad-application-ws-ear: Could not execute goal deploy on  C:\JavaDevelopment\WorkSpaces\ecad2\ecad2\application\ws\ear\target\ecad-application-ws-ear-1.0.0-SNAPSHOT.ear. Reason: I/O Error could not execute operation '{
[ERROR] "operation" => "read-attribute",
[ERROR] "address" => [],
[ERROR] "name" => "launch-type"
[ERROR] }': java.net.ConnectException: JBAS012144: Could not connect to  remote://127.0.0.1:9990. The connection timed out

I've already read and tried things out on: JBoss AS 7 auto deploy plugin cannot connect to localhost:8080 but without success.. 我已经阅读并尝试过以下方法: JBoss AS 7自动部署插件无法连接到localhost:8080,但没有成功。

This is my plugin configuration: 这是我的插件配置:

<plugin>
            <groupId>org.jboss.as.plugins</groupId>
            <artifactId>jboss-as-maven-plugin</artifactId>
            <version>7.6.Final</version>
            <executions>
               <execution>
                    <id>deploy-to-server</id>
                    <phase>pre-integration-test</phase>
                    <goals>
                        <goal>deploy</goal>
                    </goals>
                    <configuration>
                        <port>9990</port>
                        <username>admin</username>
                        <password>admin1</password>
                        <hostname>127.0.0.1</hostname>
                    </configuration>
                </execution>  
            </executions>
        </plugin> 

Know that the admin port has been changed to 9990 and I can mannually connect to: localhost:9990 with username admin and pass admin1 .. 知道管理端口已更改为9990,我可以使用用户名admin手动连接到:localhost:9990并传递admin1 ..

I am using WildFly.It is working for me. 我正在使用WildFly,它正在为我工​​作。

<plugin>
    <groupId>org.wildfly.plugins</groupId>
        <artifactId>wildfly-maven-plugin</artifactId>
        <version>1.0.0.Final</version>
            <configuration>
                    <hostname>${wildfly-hostname}</hostname>
                    <port>${wildfly-port}</port>
                    <username>${wildfly-username}</username>
                    <password>${wildfly-password}</password>
                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>deploy</goal>
                        </goals>
                    </execution>
             </executions>
        </plugin>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM