Search code examples
intellij-ideajboss7.x

Wildfly Server local server debug panel shows error "http connector is not enabled for server profile"


I setup a local JBoss/Wildfly server launch configuraiton in Intellij Idea. When I attempt to start the server, the configuration panel pops up and shows following error.

Error: HTTP connector is not enabled for server profile

Picture of Idea Launch Console wit Error

I could not find anything in the Idea help what this means and how to fix it. The server is a keycloak distro but is just plain wildfly 10 with an extra subsystem.

Has anyone seen this before and knows how to fix the error?


Solution

  • I can't reproduce this with fresh installation of keycloak 3.2.1 from here

    IDEA looks for the 2 following xpath's searching for a HTTP connector settings:

    "/ns:server/ns:profile/*[local-name()='subsystem']/*[local-name()='server']/*[local-name()='http-listener'][@*[local-name()='socket-binding' and .='http']]",
    "/ns:server/ns:profile/*[local-name()='subsystem']/*[local-name()='connector'][@*[local-name()='socket-binding' and .='http']]"};
    

    For me playing with the fresh keycloak distribution the first xpath hits at the following markup:

    <subsystem xmlns="urn:jboss:domain:undertow:3.0">
            <buffer-cache name="default"/>
            <server name="default-server">
                <http-listener name="default" socket-binding="http" redirect-socket="https"/>
    

    Please check your configuration around this place. If this does not help, please attach your standalone.xml or at least the relevant part of it.