Yes you can do this, what you need is an extenral directory. Here's how: http://www.jboss.org/community/docs/DOC-9727
And here is a recent discussion on the same topic: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=139630
Thanks.. actually i figured it out after i posted last night. I just created a jboss-web.xml and put it in the WEB-INF folder of my project. The content of it is..
now i can get the pages from the web directory without a problem.
do you think this is the right approach?
I am confused. Your original post says that you can already access your content from http://localhost:8080/web and want to access it from http://localhost:8080/html instead, yet the contents of the jboss-web.xml file indicate that the context should be /web, which means you are still accessing things via http://localhost:8080/web. Or did you mistype the value of context-root?
Anyway, using a jboss-web.xml file and setting context-root is the correct way to use a context other that the default (the default context is always the name of the war file, without the extension).
Yes, it was a mistype... it should be /html
You can add a path in server.xml file
;Context docBase='C:\\local\\app\\htmlfiles' path='/html' ></Context>