Java – Deploying a war outside of a deploy directory in jboss

javajboss

Hello: I am trying to deploy a war file outside of a deploy folder in jboss. I changed the context.xml with the following content:

<Context docBase="C:\Apps\foo.war" reloadable="true" privileged="true" antiResourceLocking="false" path="/"></Context>

The context file is inside jboss-5.1.0.GA\server\default\deploy\jbossweb.sar\ in 5.1.0.GA and jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer\ in 4.2.3.GA.

This is what I thought would be the only changes. But is not working. Can someone please tell me what other files do I have to modify?

Thanks.

Best Answer

I found out that I had to add the directory location at jboss-service.xml:

<attribute name="URLs">deploy/, file:\C:\Apps\foo.war</attribute>

This being in windows and jboss.4.2.3.GA and the application was successfully deployed and accessible through http://localhost:8080/foo.

Thanks.

Related Topic