To serve external static content in JBoss you need to add a Context element mapping the url eg. /application/test_data to the external folder as follows:

Edit /server/default/deploy/jbossweb-tomcat50.sar/server.xml and add a Context element just under the host tag.




Replace C:/test_data with the path to the folder on the server.

Redeploy the application to make sure that the config change has been picked up and then test that the files can be accessed.

Note: this content will be accessible without logging into the application if the url is known.