I'm using
JBoss 4.2.3 GA
In my server.xml ( located @ jboss-web.deployer ) I added a Context element to my Host so that I can serve files from an external directory structure. It looks like this
<Host name="localhost" etc etc>
<Context docBase="C:\myfolder\stuff" path="\warehouse" />
</Host>
Inside of C:\myfolder\stuff I added a WEB-INF directory, since JBoss now reconizes this as a web deployment of sorts. In WEB-INF I added a web.xml which defines security constraints and roles. I then added a jboss-web.xml inside of WEB-INF, and in this file I define the security-domain.
When I start the server and navigate to this resource, my secuirty policy ( as defined in login-config ) does not execuite. It turns out that JBoss is not reading in my jboss-web.xml file , it only reads the web.xml file.
Now, as an experiment I took the conents of C:\myfolder\stuff and turned it into a WAR. Then I deployed this WAR file into ${JBOSS_DIR}\default\deploy. Low and behold the jboss-web.xml was read, the security domain applied, and the policy defined in my login-config was used.
How do I get my context/external directory to be treated like something in the deploy dir... so that the jboss-web.xml is read and such??? Are there attributes I have to add? I am stumped.