4 Replies Latest reply on Aug 22, 2016 6:02 AM by Tomaz Cerar

    Symbolic links in jboss eap 7.0

    passionate developer Newbie



      We have recently migrated from jboss eap 6.4.0 to jboss eap 7.0, in 6.4 we created some symbolic links to the web content using mklink and deployed as exploded war, everything is working as expected before migration. After migration symbolic links stopped working with jboss eap 7.0 and jdk 8. i tried using symbolic-linking-enabled true but that didnt work. Any work around this in jboss eap 7

        • 1. Re: Symbolic links in jboss eap 7.0
          Tomaz Cerar Master


          exact jdk?

          configuration used?

          what exactly do you want to achieve?

          • 2. Re: Symbolic links in jboss eap 7.0
            passionate developer Newbie

            We are using JDK 8, JBoss EAP 7.0 on Windows 7 platform, We deployed war in exploded mode and created symbolic links to html, styles, images and scripts folders in order to check the changes instantly without redeploy , this is required only for development, symlinks created using mklink are working jboss eap 6.4 but they stopped working from 7 and giving 404 on all those web content once application is loaded. tried setting the symbolic-linking-enabled as true in jboss-web.xml but didnt work. Even used file handlers in standalone.xml but no luck on this.

            • 3. Re: Symbolic links in jboss eap 7.0
              Abhijit Humbe Master

              If you want to update jsp/html pages at runtime then you can enable 'development' mode from undertow subsystem. You can use below CLI command for same:




              • 4. Re: Symbolic links in jboss eap 7.0
                Tomaz Cerar Master

                I would not do what you are doing with symbolic links but rather with overriding the paths of static content in undertow subsystem.


                in undertow subsystem configure file-handler for each directory you want to override

                than under <host> map that handler to the path.

                And do that for all folders you want to serve "staticly"


                so for example to override /images directory do something like this


                <server name="default-server">
                  <http-listener name="default" socket-binding="http"/>

                  <host name="default-host" alias="localhost">
                  <location name="/" handler="welcome-content"/>
                  <location name="/images" handler="images"/>

                  <file name="welcome-content" path="${jboss.home.dir}/welcome-content" directory-listing="true"/>
                <file name="images" path="/path/to/my/images" directory-listing="true"/>