-
1. Re: Symbolic links in jboss eap 7.0
Tomaz Cerar Aug 16, 2016 8:25 AM (in response to passionate developer)platform?
exact jdk?
configuration used?
what exactly do you want to achieve?
-
2. Re: Symbolic links in jboss eap 7.0
passionate developer Aug 17, 2016 3:28 AM (in response to Tomaz Cerar)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 Aug 20, 2016 12:10 AM (in response to passionate developer)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:
~~
/subsystem=undertow/servlet-container=default/setting=jsp:write-attribute(name=development,value=true)
~~
-
4. Re: Symbolic links in jboss eap 7.0
Tomaz Cerar Aug 22, 2016 6:02 AM (in response to passionate developer)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"/>
</host>..
</server>
<handlers>
<file name="welcome-content" path="${jboss.home.dir}/welcome-content" directory-listing="true"/>
<file name="images" path="/path/to/my/images" directory-listing="true"/>
</handlers>