【发布时间】:2015-08-07 15:59:42
【问题描述】:
将 Jboss6 迁移到 WildFly8.2
在 wildlfy8.2 中处理 https keystone 连接。使用http://blog.eisele.net/2015/01/ssl-with-wildfly-8-and-undertow.html 在standalone-full.xml conf 上配置我的应用程序后。我能够在我的应用程序上同时访问 http 和 https 我必须单独访问 https 来阻止 http。在 web.xml 中添加 security-constraint 后,我能够重定向到 https。但我不想在新版本的 web.xml 中包含任何内容,这会影响我的旧 jboss 用户。
在某些情况下,有些人使用 jboss6 应用程序而没有 SSL 密钥库配置,而有些人在 Https 中使用相同的应用程序。 旧版本的 jboss 允许在 server.xml 本身中配置 http 和 https。在wildfly中,我们必须编辑应用程序war文件而不是服务器配置文件。
注意:我得到这个链接,在https://developer.jboss.org/thread/253008?_sscc=t 中解决了同样的问题。按照指示进行了更改。但它不起作用,我们使用的是standalone-full.xml而不是standalone.xml。
进行更改后,我收到网络服务端口错误:
jboss.deployment.subunit."XXX.ear"."XXXEJB3.jar".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "XXXEJB3.jar" of deployment "XXX.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_31]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_31]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_31]
Caused by: java.lang.IllegalStateException: JBAS017350: Could not find the port number listening for protocol HTTP/1.1
at org.wildfly.extension.undertow.WebServerService.getPort(WebServerService.java:67)
at org.jboss.as.webservices.config.WebServerInfoImpl.getPort(WebServerInfoImpl.java:36)
【问题讨论】:
标签: xml wildfly jboss6.x wildfly-8