1 2 Previous Next 17 Replies Latest reply on Jun 27, 2017 6:32 AM by dipakpawar231 Go to original post
      • 15. Re: @ArquillianResource always injects localhost:8080
        a-st

        Hi dipakpawar231,

         

        I did a build of wildfly-arquillian project including you patch and found out what was causing the issue with http://localhost:8080 beeing injected every time.

         

        In org.jboss.as.arquillian.container.ManagementClient#init method socketBinding is determined in line 201 by calling vhosts.get(0).getValue().get("http-listener", "default").get("socket-binding") which in my case returned undefined, because my http-listener in undertow subsystem was named "http" instead of "default". Just compare values of subsystem -> server -> http-listener[name]

         

        Before:

        <subsystem xmlns="urn:jboss:domain:undertow:3.1">
            <buffer-cache name="default"/>
            <server name="default-server">
                <http-listener name="http" socket-binding="http"/>
                <https-listener name="https" enabled-protocols="TLSv1" enabled-cipher-suites="TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA" security-realm="HTTPSRealm" socket-binding="https"/>
                <host name="default-host" alias="localhost">
                    <filter-ref name="server-header"/>
                    <filter-ref name="x-powered-by-header"/>
                </host>
            </server>
            <servlet-container name="default">
                <jsp-config/>
                <websockets/>
            </servlet-container>
            <filters>
                <response-header name="server-header" header-name="Server" header-value="JBoss-EAP/7"/>
                <response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>
            </filters>
        </subsystem>
        

         

        After:

        <subsystem xmlns="urn:jboss:domain:undertow:3.1">
            <buffer-cache name="default"/>
            <server name="default-server">
                <http-listener name="default" socket-binding="http"/>
                <https-listener name="https" enabled-protocols="TLSv1" enabled-cipher-suites="TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA" security-realm="HTTPSRealm" socket-binding="https"/>
                <host name="default-host" alias="localhost">
                    <filter-ref name="server-header"/>
                    <filter-ref name="x-powered-by-header"/>
                </host>
            </server>
            <servlet-container name="default">
                <jsp-config/>
                <websockets/>
            </servlet-container>
            <filters>
                <response-header name="server-header" header-name="Server" header-value="JBoss-EAP/7"/>
                <response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>
            </filters>
        </subsystem>
        
        • 16. Re: @ArquillianResource always injects localhost:8080
          dipakpawar231

          Hey,

           

          Thanks for detail explanation about your case. In this case we need to either overwrite http-listener name from arquillian.xml if user is using other than default name. wdyt bmajsak?

          • 17. Re: @ArquillianResource always injects localhost:8080
            dipakpawar231

            Hey,

             

            We have released new version of Wildfly Arquillian `2.1.0.Alpha3` with fix. I have created new issue for your case. You can look at here.

             

            Thanks,

            Dipak

            1 2 Previous Next