...
- 将 WAR 文件内容提取到 <UNZIPPED_SOAVIRT_WAR> 中。
- 打开 <UNZIPPED_SOAVIRT_WAR>/WEB-INF/config.properties 配置文件并指定以下选项:
- WildFly 使用的端口,例如,
server.port.http=8080
或server.port.https=8443
。Config.properties 文件中指定的端口必须与 WildFly 配置中指定端口相匹配。 - 许可证
- 工作空间
- WildFly 使用的端口,例如,
- 压缩 <UNZIPPED_SOAVIRT_WAR> 备份为 WAR。
- 启动 <WILDFLY_HOME>/bin/jboss-cli.bat 并运行
connect
指令。 - 运行
undeploy <OLD_WAR>
。 - 运行
deploy path/to/<NEW_WAR>
。 浏览到 http://localhost:8080/ (根据需求调整端口)。以下消息之一确认应用程序已正确更新:
Panel 此路径上未发现虚拟资产或代理: No virtual asset or proxy found at this path: /
已启用的虚拟资产Enabled virtual assets:
...
Panel 此服务器上没有部署。无法响应该请求:/。There are no deployments on this server. Cannot respond to this request: /.