Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven安装目标-JBoss-java.net.ConnectException:JBAS012144:无法连接到远程://localhost:9999。连接超时了_Java_Maven_Jboss_Jboss7.x - Fatal编程技术网

Maven安装目标-JBoss-java.net.ConnectException:JBAS012144:无法连接到远程://localhost:9999。连接超时了

Maven安装目标-JBoss-java.net.ConnectException:JBAS012144:无法连接到远程://localhost:9999。连接超时了,java,maven,jboss,jboss7.x,Java,Maven,Jboss,Jboss7.x,我试图使用maven运行我的JavaWeb应用程序,但是我得到了以下错误 [ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.1.1 Final:deploy (default-cli) on project SpringMVC: Error executing FORCE_DEPLOY: ould not execute operation '{ [ERROR] "operation" =>

我试图使用maven运行我的JavaWeb应用程序,但是我得到了以下错误

[ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.1.1
Final:deploy (default-cli) on project SpringMVC: Error executing FORCE_DEPLOY:
ould not execute operation '{
[ERROR] "operation" => "read-children-names",
[ERROR] "child-type" => "deployment"
[ERROR] }': java.net.ConnectException: JBAS012144: Could not connect to remote:
/localhost:9999. The connection timed out
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swi
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 re
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecution
xception
我将jboss配置为maven插件,如下所示

<plugin>
            <groupId>org.jboss.as.plugins</groupId>
            <artifactId>jboss-as-maven-plugin</artifactId>
            <version>7.1.1.Final</version>
            <configuration>
                <force>true</force>                
                <hostname>localhost</hostname>
                <username>admin</username>
                <password>admin123</password>                
                <fileNames>
                    <fileName>target/SpringMVC.war</fileName>
                </fileNames>
            </configuration>
        </plugin>

org.jboss.as.plugins
jboss作为maven插件
7.1.1.最终版本
真的
本地服务器
管理
管理员123
target/SpringMVC.war
下面是my standalone.xml配置

<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
        <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>   
        <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
        <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
        <socket-binding name="ajp" port="8009"/>
        <socket-binding name="http" port="8080"/>
        <socket-binding name="https" port="8443"/>
        <socket-binding name="osgi-http" interface="management" port="8090"/>
        <socket-binding name="remoting" port="4447"/>
        <socket-binding name="txn-recovery-environment" port="4712"/>
        <socket-binding name="txn-status-manager" port="4713"/>
        <outbound-socket-binding name="mail-smtp">
            <remote-destination host="localhost" port="25"/>
        </outbound-socket-binding>
    </socket-binding-group>


有谁能帮我解决这个问题吗?

我遇到了同样的问题,很难找到解决方案,这对我很有效——奇怪的是,它不需要用户名或密码。看起来旧的插件无法与JBoss EAP 7一起使用

<plugin>
    <groupId>org.wildfly.plugins</groupId>
    <artifactId>wildfly-maven-plugin</artifactId>
    <version>1.0.2.Final</version>
</plugin>

org.wildfly.plugins
wildfly maven插件
1.0.2.1最终版本

在JBOSS/Wildfly配置文件(例如standalone.xml)中似乎没有配置管理本机接口。确保配置文件显示:

<management-interfaces>
    <native-interface security-realm = "ManagementRealm">
        <socket-binding native = "management-native" />
    </ native-interface>
    <http-interface security-realm = "ManagementRealm">
        <http-upgrade enabled = "true" />
        <socket-binding http = "management-http" />
    </ http-interface>
</ management-interfaces>

When starting the server, a message like the following should be observed:
17: 46: 45,684 INFO [org.jboss.as.remoting] (MSC service thread 1-2) WFLYRMT0001: Listening on 127.0.0.1:9999

        
    
    
        
        
    
启动服务器时,应观察如下消息:
17:46:45684信息[org.jboss.as.remoting](MSC服务线程1-2)WFLYRMT001:监听127.0.0.1:9999