嗨evryone我在dev JavaEE中的新东西我想创建一个应用程序网络,我已经创建了我的BD和包含持久性,接口和服务的ejb部分,在战争部分我创建了包bean和webapp .. ... 我在构建maven的ejb中做了一个
clean install当我去战争部分时我做
wildfly:deploy我遇到了这个大失败:(
mars 02, 2016 3:03:09 PM org.xnio.Xnio clinit INFO: XNIO version 3.2.2.Final mars 02, 2016 3:03:10 PM org.xnio.nio.NioXnio clinit INFO: XNIO NIO Implementation Version 3.2.2.Final mars 02, 2016 3:03:10 PM org.jboss.remoting3.EndpointImpl clinit INFO: JBoss Remoting version 4.0.3.Final `[INFO]` BUILD FAILURE `[INFO]` Total time: 10.396 s `[INFO]` Finished at: 2016-03-02T15:03:15+02:00 `[INFO]` Final Memory: 15M/195M [ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.0.2.Final:deploy (default-cli) on project pfeweb: Could not execute goal deploy on C:\Users\Amine_Info\workspace\pfeweb\target\pfeweb.war. 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 http-remoting://127.0.0.1:9991. The connection timed out
请我需要帮助它已经4天寻找解决方案,我没有找到任何帮助 谢谢所有
答案 0 :(得分:0)
这是我的pom.xml
<modelVersion>4.0.0</modelVersion>
<groupId>tn.orange.pfe</groupId>
<artifactId>pfeweb</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<failOnMissingWebXml>false</failOnMissingWebXml>
</properties>
<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
</dependency>
<dependency>
<groupId>tn.orange.pfe</groupId>
<version>0.0.1-SNAPSHOT</version>
<artifactId>pfeejb</artifactId>
<type>ejb</type>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>5.2</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>1.0.2.Final</version>
<configuration>
<hostname>localhost</hostname>
<port>19991</port>
<username>admin</username>
<password>wildflyadmin</password>
<filename>${project.artifactId}.war</filename>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
答案 1 :(得分:0)
可能有两种情况: 1.-你的wildfly服务器没有运行所以当wildfly插件试图部署它时,它无法通过127.0.0.1:9991进行身份验证
2.-或者wildfly服务器正在运行,但您没有正确指定ip或端口。为此,您必须在pom.xml文件和settings.xml中正确设置它们。有关详细信息,请参阅此post