我可以在这里运行Wildfly快速入门中提供的Eclipse中的大多数教程:
https://github.com/wildfly/quickstart/
然而,当我使用命令行进行部署时,我遇到了问题。对于最基本的HelloWorld教程,我收到了这样的消息:
mvn clean install是成功的。但是,部署失败:
mvn clean install wildfly:deploy错误消息:
打包webapp信息组装Webapp wildfly-helloworld in /home/abigail/study/quickstart/helloworld/target/wildfly-helloworld处理war项目信息复制webapp资源/home/abigail/study/quickstart/helloworld/src/main/webapp webapp组装在2毫秒内构建war: /home/abigail/study/quickstart/helloworld/target/wildfly-helloworld.war信息<<< wildfly-maven-plugin:1.0.2最终:部署(默认-cli)
信息
信息总时间: 6.836秒
信息完成时间: 2015-12-19T23:42:15-05:00
信息最终内存: 21M/162M
信息
在项目wildfly-helloworld上执行目标部署(默认-cli)失败错误:无法在/home/abigail/study/quickstart/helloworld/target/wildfly-helloworld.war.上执行目标部署原因: I/O错误无法执行操作'{
错误“=>”“读取属性”,
错误"address“=> [],
错误"name“=>”启动类型“
错误}':java.net.ConnectException: JBAS012144:无法连接到http-remoting://127.0.0.1:9990。连接超时
错误->帮助%1
错误
ERROR要查看错误的完整堆栈跟踪,请使用-e开关重新运行maven.
使用-X开关重新运行Maven以启用完整调试日志记录时出错。
错误
ERROR有关错误和可能的解决方案的更多信息,请阅读以下文章:
错误http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
发布于 2016-08-24 23:53:36
您必须检查是否为deployment.See this article创建了用户,这里有进一步的解释。
发布于 2016-10-18 20:18:23
当另一个应用程序使用默认的9990端口时,我也遇到了同样的问题。我将wildfly移到port 9991 (修改standalone.xml和host.xml),管理控制台开始工作,但部署仍然失败。然后我发现wildfly plugin默认使用相同的9990。
我通过修改我的程序的pom.xml来处理这个问题,将另一个端口(和我在单机版中使用的端口相同)放到wildfly插件的配置中。
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.wildfly.maven.plugin}</version>
<configuration>
<port>9991</port>
</configuration>
</plugin>https://stackoverflow.com/questions/34378056
复制相似问题