首页 文章

EAR没有部署在maven的jBoss服务器上

提问于
浏览
1

我正在尝试使用maven在jBoss服务器上部署我的EAR . 这是我的pom条目

<plugin>
            <groupId>org.jboss.as.plugins</groupId>
            <artifactId>jboss-as-maven-plugin</artifactId>
            <version>7.1.1.Final</version>

            <executions>

             <execution>
                    <id>jboss-undeploy</id>
                    <goals>
                        <goal>undeploy</goal>
                    </goals>
                    <phase>clean</phase>
             </execution>

             <execution>
                    <id>jboss-deploy</id>
                    <goals>
                        <goal>deploy</goal>
                    </goals>
                    <phase>install</phase>
                  </execution>
            </executions>

             <configuration>
                <force>true</force>
                <jbossHome>${jboss.directory}</jbossHome>
                <serverName>dummyserver-standard</serverName>

                <hostName>localhost</hostName>
               <username>ashutosh</username>
              <password>password</password>
                <port>7001</port>
                <fileNames>
                    <fileName>/target/RightsEar-1.0-SNAPSHOT.ear</fileName>
                </fileNames>
            </configuration>
        </plugin>

我运行命令“clean install -U -X”,因为我已经配置了我的pom以在安装阶段部署EAR . 我低于错误

java.net.ConnectException: JBAS012144: Could not connect to remote://localhost:7001.    
The connection timed out

我在stackoverflow中尝试了很多解决方案,但没有任何帮助 . 请建议我的解决方案..任何帮助表示赞赏

1 回答

  • 1

    经过大量的点击和试验后我终于部署了我的EAR,但它只运行了2次,之后它向我显示EAR结构不正确的错误 . 我用google搜索它,发现它是jBoss 7.1.1中的一个错误 .

    link

相关问题