title: JBoss as an http server?
body: <p>I'm trying to write a webapp where the server side provides only json/REST services, and the gui is written in html5, backbone, marionette, etc. using async XHR. The html, js, css, etc. is static and cachable (when deployed to production).</p>
  
  <p>I need to deploy this to JBoss EAP6 (broadly equivalent to AS7 for this problem). During development I'd like to be able to edit my javascript and html templates and have the results instantly visible in the browser. In production I need my static content (the front end) to be exploded and not deployed in any type of Java EE structure (so, no war or ear (or sar)).</p>
  
  <p>So, basically, I need to deploy wars to jboss, as usual, and I also need jboss to act as an http server for the static part of the app.</p>
  
  <p>I have played with the idea of copying my content into the <code>welcome-content</code> directory in the root of EAP6. While this serves the content with no problem I can't work with this structure for development because I can't live with the time overhead of copying my changes across to a different directory. I have also tried a symlink from <code>welcome-content</code> to my static content in the dev environment, but this doesn't work in this version of jboss.</p>
  
  <p>Edit: I have answers that are telling me how to work around the problem, but I'm not really stuck for a workaround -- that's easy. I'm really looking specifically for how to configure jboss to serve static content.</p>
  
  <p>TIA.    </p>