无法连接到remote://localhost:9999.连接超时Jboss 7.1.1 Final [英] Could not connect to remote://localhost:9999. The connection timed out Jboss 7.1.1 Final

查看:163
本文介绍了无法连接到remote://localhost:9999.连接超时Jboss 7.1.1 Final的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将构建版本部署到端口9999上的本地和远程Jboss AS 7.1.1 Final.Maven使用jboss插件'jboss-as-maven-plugin:7.1.1.Final'来管理服务器的构建.我已经确认服务器已启动并且正在运行,并且可以在9999访问该端口.但是多次"构建失败,并且本地和远程Jboss都出现以下错误.在独立模式单节点集群中配置的Jboss ic.

I am deploying builds to local and remote Jboss AS 7.1.1 Final at port 9999. Maven uses jboss plugin 'jboss-as-maven-plugin:7.1.1.Final' to manage builds to servers. I have confirmed that server is up and running and port is accessible at 9999. But "many times" build fails with following error for both local and remote Jboss. Jboss ic configured in Standalone mode single node cluster.

严格构建并不会每次都失败,但在大多数情况下都不会失败.不确定是否需要将Maven插件升级到更高版本.

Stranglely build doesn't fail every time but most of the time. Not sure if we need to upgrade Maven plugin to higher version.

[INFO] o.h.m.e.h.MavenExecutionResultHandler-构建失败,并显示 异常[INFO] o.h.m.e.h.MavenExecutionResultHandler-[1] org.apache.maven.lifecycle.LifecycleExecutionException:失败 执行目标 org.jboss.as.plugins:jboss-as-maven-plugin:7.1.1.Final:取消部署 (default-cli)在项目测试中:执行UNDEPLOY [DEBUG]时出错 正在关闭与远程[ERROR]的连接,无法执行目标 org.jboss.as.plugins:jboss-as-maven-plugin:7.1.1.Final:取消部署 (default-cli)在项目测试中:执行UNDEPLOY时出错: java.net.ConnectException:JBAS012144:无法连接到 远程://本地主机:9999.连接超时-> [帮助1]

[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s) [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.1.1.Final:undeploy (default-cli) on project Test: Error executing UNDEPLOY [DEBUG] Closing connection to remote [ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.1.1.Final:undeploy (default-cli) on project Test: Error executing UNDEPLOY: java.net.ConnectException: JBAS012144: Could not connect to remote://localhost:9999. The connection timed out -> [Help 1]

更新

<plugin>
   <groupId>org.jboss.as.plugins</groupId>
   <artifactId>jboss-as-maven-plugin</artifactId>
   <version>7.1.1.Final</version>
   <configuration>
     <filename>${project.build.finalName}.jar</filename>
     <username>${userName}</username>
     <password>${password}</password>
   </configuration>
</plugin>

我现在正在使用最新版本的Maven插件,但现在看来连接超时错误更加常见.我开始考虑在尝试使用应用程序的不同子项目进行过多的远程部署时,Jboss的行为是否有所不同.我有一个从主POM部署的21个子项目.示例配置如下

I am now using latest version of Maven plug-in but it seems that connection timeout error is more frequent now. I am starting to think if Jboss behaves differently when trying to make too many remote deployment with different sub projects of the application. I am having 21 sub projects being deployed from a master POM. Sample configuration is as follows

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.master</groupId>
    <artifactId>master</artifactId>
    <version>1.0.0</version>
    <packaging>pom</packaging>
    <name>Master</name>
    <url>http://maven.apache.org</url>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <modules>
        <module>module1</module>
        <module>module2</module>
        <module>module3</module>
        <module>module4</module>
        <module>module5</module>
        <module>module6</module>
        <module>module7</module>
        <module>module8</module>
        <module>module9</module>
        <module>module10</module>
        <module>module11</module>
        <module>module12</module>
        <module>module13</module>
    </modules>

推荐答案

首先,检查插件配置. 例如:

First, check plugin configuration. For example:

    <plugin>
        <groupId>org.jboss.as.plugins</groupId>
        <artifactId>jboss-as-maven-plugin</artifactId>
        <version>7.9.Final</version>
        <inherited>true</inherited>
        <configuration>
            <hostname>${jboss.hostname}</hostname>
            <port>${jboss.port}</port>
            <username>${jboss.user}</username>
            <password>${jboss.pass}</password>
            <timeout>30000</timeout>
        </configuration>
    </plugin>

如果主机名,端口号(默认值为9999),用户名和密码都可以,则可以尝试增加超时"(默认值为5000ms,可以尝试设置30000ms). 它对我有用.

If hostname, port number(default 9999), username and password are ok, you can try increasing "timeout" (default is 5000ms, you can try with 30000ms). It worked for me.

这篇关于无法连接到remote://localhost:9999.连接超时Jboss 7.1.1 Final的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆