3 Replies Latest reply on Oct 25, 2016 1:17 AM by Sashidhar B

    store static contents outside WildFly installation and access them via Http ?

    Sashidhar B Newbie

      Dear All,

       

      I would like to store the static files (inlcuding some jsp's ) also outside the ear/war file and access it using http.

       

      This concepts was available in jboss as 7 and also i have seen in Jboss EAP 6.4 using jboss-web.xml and adding the attribute as <overlay>path to external file</overlay>

       

      but this concept is not working in wildfly 10.

       

      I gone through the link : How to store static contents outside WildFly installation and access them via Http ? «  JBoss , where it says that  location  and hander tag will be used.

       

      I have done this and found that , it will be accesible only through  http://<HOST>:<PORT>/images/a.jpg. (without context root of appication).

       

      If i need to access as http://<HOST>:<PORT>/<CONTEXT_ROOT>/images/a.jpg,  or if i need to achive this as per application, how can i do this.

       

      Pls help me as i stuck here. It will be appreciated . Thanks in advance.