将Jboss6迁移到WildFly8.2
在通配符lfy8.2中处理https keystone连接。在使用http://blog.eisele.net/2015/01/ssl-with-wildfly-8-and-undertow.html将我的应用程序配置到独立的-Ful.xml conf上之后。在我的应用程序中,我能够同时访问http和https --我必须单独访问https,阻止http。在将security-constraint添加到web.xml之后,我能够重定向到https。但是我不想在我的新版本中包含任何在web.xml中的内容,它会影响到我以前的jboss用户。
在一种情况下,有些人使用jboss6应用程序而没有SSL配置,有些人在Https中使用相同的应用程序。jboss的旧版本允许在server.xml本身中配置http和https。在通配符中,我们必须编辑应用程序war文件,而不是服务器配置文件。
注意:我得到了这个链接,在sscc=t中解决了同样的问题。按照指示做了改变。但是它不起作用,我们使用的是独立的-Full.xml,而不是standalone.xml。
进行更改后,我将得到web服务端口错误:
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)发布于 2015-06-05 03:59:35
对于Http和Https,启用了对独立的-Ful.xml(即用于自定义服务器)或standalone.xml的更改,如下所示
1:在消息传递-hornetq-服务器子系统连接器中,http更改为https。
<http-connector name="http-connector" socket-binding="https">
<http-connector name="http-connector-throughput" socket-binding="https">2:在下拖曳子系统的变化
<http-listener name="default" socket-binding="http"/>至
<https-listener name="default-ssl" socket-binding="https" security-realm="UndertowRealm"/> 注意事项:https-侦听器名称默认-ssl在消息子系统http-acceptor和远程处理子系统http-连接器中使用此名称。
3:给消息传递-hornetq-服务器子系统http-acceptor和远程处理子系统http-连接器的连接器-ref作为https-侦听器名称。
<subsystem xmlns="urn:jboss:domain:messaging:2.0">....
<http-acceptor http-listener="default-ssl" name="http-acceptor"/>
<http-acceptor http-listener="default-ssl" name="http-acceptor-throughput">...</subsystem>
<subsystem xmlns="urn:jboss:domain:remoting:2.0">....
<http-connector name="http-remoting-connector" connector-ref="default-ssl" security-realm="ApplicationRealm"/>....</subsystem>错误:向添加了修改-wsdl地址,真和wsdl-端口到80,而不是https阻止http。
<subsystem xmlns="urn:jboss:domain:webservices:1.2">
<modify-wsdl-address>true</modify-wsdl-address>
<wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
<wsdl-port>80</wsdl-port>
<endpoint-config name="Standard-Endpoint-Config"/>
<endpoint-config name="Recording-Endpoint-Config">
<pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
<handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
</pre-handler-chain>
</endpoint-config>
<client-config name="Standard-Client-Config"/>
</subsystem>https://stackoverflow.com/questions/30450740
复制相似问题