[jboss-jira] [JBoss JIRA] (WFLY-2836) http-listener requires 'https' socket-binding
dfisher (JIRA)
issues at jboss.org
Thu Feb 6 11:00:30 EST 2014
[ https://issues.jboss.org/browse/WFLY-2836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12942315#comment-12942315 ]
dfisher commented on WFLY-2836:
-------------------------------
{quote}
you can just add redirect-socket="some-biding" and it will resolve your problem.
{quote}
Fair enough, however, would you expect this configuration to work?
{code}
<server name="default-server">
<http-listener name="httpl1" socket-binding="http1" redirect-socket="https1"/>
<http-listener name="httpl2" socket-binding="http2" redirect-socket="https2"/>
<https-listener name="httpsl1" socket-binding="https1" security-realm="ApplicationRealm"/>
<https-listener name="httpsl2" socket-binding="https2" security-realm="ApplicationRealm"/>
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
</host>
</server>
....
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
<socket-binding name="http1" port="8080"/>
<socket-binding name="http2" port="9080"/>
<socket-binding name="https1" port="8443"/>
<socket-binding name="https2" port="9443"/>
</socket-binding-group>
{code}
It produces the following errors:
{code}
ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([
("subsystem" => "undertow"),
("server" => "default-server"),
("https-listener" => "httpsl1")
]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.undertow.listener.httpsl1 is missing [jboss.binding.https]"]}
ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([
("subsystem" => "undertow"),
("server" => "default-server"),
("https-listener" => "httpsl2")
]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.undertow.listener.httpsl2 is missing [jboss.binding.https]"]}
{code}
It appears the 'https' dependency affects the https-listener as well.
> http-listener requires 'https' socket-binding
> ---------------------------------------------
>
> Key: WFLY-2836
> URL: https://issues.jboss.org/browse/WFLY-2836
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Web (Undertow)
> Affects Versions: 8.0.0.CR1
> Reporter: dfisher
> Assignee: Tomaz Cerar
> Priority: Minor
> Fix For: 8.0.0.Final
>
>
> Using a http-listener without the redirect-socket attribute requires the configuration to define a socket-binding with name "https".
> The following error is produced attempting to configure wildfly without https:
> {code}
> ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([
> ("subsystem" => "undertow"),
> ("server" => "default-server"),
> ("http-listener" => "default")
> ]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.undertow.listener.default is missing [jboss.binding.https]"]}
> {code}
> I believe this constant is defined in ListenerResourceDefinition on line 80.
> If this is the desired behavior, the undertow schema should probably be updated to make redirect-socket required or at least document the dependency.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list