I am trying to write webapp where the server side provides only json / REST services, and gui is written to html5, spine, puppet, etc. using async XHR. Html, js, css etc. They are static and cached (when deployed to production).
I need to deploy this to JBoss EAP6 (in general, equivalent to AS7 for this problem). During development, I would like to be able to edit my javascript and html templates and instantly view the results in a browser. In production, I need my static content (front-end) to explode and not be deployed in any kind of Java EE structure (so there is no war or ear (or sar)).
So basically, I need to deploy wars in jboss, as usual, and I also need jboss to work as an http server for the static part of the application.
I played with the idea of ββcopying my content to the welcome-content directory in the root of EAP6. Although this works seamlessly with content, I cannot work with this structure for development because I cannot live with the overhead of time copying my changes to another directory. I also tried using the symlink from welcome-content for my static content in dev environment, but this does not work in this version of jboss.
Edit: I have answers that tell me how to get around the problem, but I really don't get hung up on the workaround - it's easy. I am really looking specifically at how to configure jboss to serve static content.
TIA.
Engineer dollery
source share