-
1. Re: External directory
peterj Oct 24, 2008 11:30 AM (in response to bronzeiii)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 -
2. Re: External directory
bronzeiii Oct 24, 2008 12:10 PM (in response to bronzeiii)Hey PeterJ
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..
<jboss-web>
<context-root>/web</context-root>
</jboss-web>
now i can get the pages from the web directory without a problem.
do you think this is the right approach? -
3. Re: External directory
peterj Oct 24, 2008 12:20 PM (in response to bronzeiii)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). -
4. Re: External directory
bronzeiii Oct 24, 2008 1:18 PM (in response to bronzeiii)hey Peter
Yes, it was a mistype... it should be /html
thanks! -
5. Re: External directory
margotmedia May 18, 2009 4:38 PM (in response to bronzeiii)You can add a path in server.xml file
;Context docBase='C:\\local\\app\\htmlfiles' path='/html' ></Context>