Replace Wildfly 10 homepage with a custom application contained in an ear file










0















I'm trying to replace the Wildfly 10 default homepage (accessed from http://hostname:port) by one of my own web application.

I found a good way to do it by removing some parts of the undertow subsystem of the standalone.xml of my wildfly and by adding a war to the default-web-module.

My problem is that I don't have a war, I have a ear (with a war in it), and it doesn't work with that.



Hereunder is the undertow part of my standalone.xml file :



<subsystem xmlns="urn:jboss:domain:undertow:3.1">
<buffer-cache name="default"/>
<server name="default-server">
<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
<https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
<host name="default-host" alias="localhost" default-web-module="myear.ear/mywar.war">
<access-log pattern="%i,X-Forwarded-For %h %i,SM_UNIVERSALID %t %H %p %U %q %s %D %T" prefix="http-in" suffix=".log"/>
</host>
</server>
<servlet-container name="default">
<jsp-config/>
<websockets/>
</servlet-container>
<filters>
<response-header name="server-header" header-name="Server" header-value="WildFly/10"/>
<response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>
</filters>
</subsystem>


Can this solution work with an ear instead of a war, or have I to find another way ?



Thank you in advance,



Seb










share|improve this question
























  • Did you try just using default-web-module="myear.ear" and setting the <context-root>/</context-root> for the module in your application.xml?

    – James R. Perkins
    Nov 9 '18 at 19:20











  • Yes, but it doesn't work.

    – Sébastien Vandamme
    Nov 13 '18 at 7:59
















0















I'm trying to replace the Wildfly 10 default homepage (accessed from http://hostname:port) by one of my own web application.

I found a good way to do it by removing some parts of the undertow subsystem of the standalone.xml of my wildfly and by adding a war to the default-web-module.

My problem is that I don't have a war, I have a ear (with a war in it), and it doesn't work with that.



Hereunder is the undertow part of my standalone.xml file :



<subsystem xmlns="urn:jboss:domain:undertow:3.1">
<buffer-cache name="default"/>
<server name="default-server">
<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
<https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
<host name="default-host" alias="localhost" default-web-module="myear.ear/mywar.war">
<access-log pattern="%i,X-Forwarded-For %h %i,SM_UNIVERSALID %t %H %p %U %q %s %D %T" prefix="http-in" suffix=".log"/>
</host>
</server>
<servlet-container name="default">
<jsp-config/>
<websockets/>
</servlet-container>
<filters>
<response-header name="server-header" header-name="Server" header-value="WildFly/10"/>
<response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>
</filters>
</subsystem>


Can this solution work with an ear instead of a war, or have I to find another way ?



Thank you in advance,



Seb










share|improve this question
























  • Did you try just using default-web-module="myear.ear" and setting the <context-root>/</context-root> for the module in your application.xml?

    – James R. Perkins
    Nov 9 '18 at 19:20











  • Yes, but it doesn't work.

    – Sébastien Vandamme
    Nov 13 '18 at 7:59














0












0








0








I'm trying to replace the Wildfly 10 default homepage (accessed from http://hostname:port) by one of my own web application.

I found a good way to do it by removing some parts of the undertow subsystem of the standalone.xml of my wildfly and by adding a war to the default-web-module.

My problem is that I don't have a war, I have a ear (with a war in it), and it doesn't work with that.



Hereunder is the undertow part of my standalone.xml file :



<subsystem xmlns="urn:jboss:domain:undertow:3.1">
<buffer-cache name="default"/>
<server name="default-server">
<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
<https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
<host name="default-host" alias="localhost" default-web-module="myear.ear/mywar.war">
<access-log pattern="%i,X-Forwarded-For %h %i,SM_UNIVERSALID %t %H %p %U %q %s %D %T" prefix="http-in" suffix=".log"/>
</host>
</server>
<servlet-container name="default">
<jsp-config/>
<websockets/>
</servlet-container>
<filters>
<response-header name="server-header" header-name="Server" header-value="WildFly/10"/>
<response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>
</filters>
</subsystem>


Can this solution work with an ear instead of a war, or have I to find another way ?



Thank you in advance,



Seb










share|improve this question
















I'm trying to replace the Wildfly 10 default homepage (accessed from http://hostname:port) by one of my own web application.

I found a good way to do it by removing some parts of the undertow subsystem of the standalone.xml of my wildfly and by adding a war to the default-web-module.

My problem is that I don't have a war, I have a ear (with a war in it), and it doesn't work with that.



Hereunder is the undertow part of my standalone.xml file :



<subsystem xmlns="urn:jboss:domain:undertow:3.1">
<buffer-cache name="default"/>
<server name="default-server">
<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
<https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
<host name="default-host" alias="localhost" default-web-module="myear.ear/mywar.war">
<access-log pattern="%i,X-Forwarded-For %h %i,SM_UNIVERSALID %t %H %p %U %q %s %D %T" prefix="http-in" suffix=".log"/>
</host>
</server>
<servlet-container name="default">
<jsp-config/>
<websockets/>
</servlet-container>
<filters>
<response-header name="server-header" header-name="Server" header-value="WildFly/10"/>
<response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>
</filters>
</subsystem>


Can this solution work with an ear instead of a war, or have I to find another way ?



Thank you in advance,



Seb







jboss ear wildfly-10 undertow






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 7 '18 at 12:59







Sébastien Vandamme

















asked Nov 6 '18 at 16:17









Sébastien VandammeSébastien Vandamme

667




667












  • Did you try just using default-web-module="myear.ear" and setting the <context-root>/</context-root> for the module in your application.xml?

    – James R. Perkins
    Nov 9 '18 at 19:20











  • Yes, but it doesn't work.

    – Sébastien Vandamme
    Nov 13 '18 at 7:59


















  • Did you try just using default-web-module="myear.ear" and setting the <context-root>/</context-root> for the module in your application.xml?

    – James R. Perkins
    Nov 9 '18 at 19:20











  • Yes, but it doesn't work.

    – Sébastien Vandamme
    Nov 13 '18 at 7:59

















Did you try just using default-web-module="myear.ear" and setting the <context-root>/</context-root> for the module in your application.xml?

– James R. Perkins
Nov 9 '18 at 19:20





Did you try just using default-web-module="myear.ear" and setting the <context-root>/</context-root> for the module in your application.xml?

– James R. Perkins
Nov 9 '18 at 19:20













Yes, but it doesn't work.

– Sébastien Vandamme
Nov 13 '18 at 7:59






Yes, but it doesn't work.

– Sébastien Vandamme
Nov 13 '18 at 7:59













1 Answer
1






active

oldest

votes


















0














Finally, I solved it by redirecting the index.html page of the welcome-content folder of WildFly to my application, it's simpler and it works perfectly.



Seb






share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53175809%2freplace-wildfly-10-homepage-with-a-custom-application-contained-in-an-ear-file%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Finally, I solved it by redirecting the index.html page of the welcome-content folder of WildFly to my application, it's simpler and it works perfectly.



    Seb






    share|improve this answer



























      0














      Finally, I solved it by redirecting the index.html page of the welcome-content folder of WildFly to my application, it's simpler and it works perfectly.



      Seb






      share|improve this answer

























        0












        0








        0







        Finally, I solved it by redirecting the index.html page of the welcome-content folder of WildFly to my application, it's simpler and it works perfectly.



        Seb






        share|improve this answer













        Finally, I solved it by redirecting the index.html page of the welcome-content folder of WildFly to my application, it's simpler and it works perfectly.



        Seb







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 13 '18 at 7:59









        Sébastien VandammeSébastien Vandamme

        667




        667



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53175809%2freplace-wildfly-10-homepage-with-a-custom-application-contained-in-an-ear-file%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kleinkühnau

            Makov (Slowakei)

            Deutsches Schauspielhaus