Archive for the ‘Uncategorized’ Category

Deploying war outside of deploy directory on jboss 4.2.3.GA

January 6, 2010

In order to deploy a war file outside of the deploy directory on jboss 4.2.3.GA you need to add the location of the file in jboss-service.xml. This file is found inside jboss/server/default/conf/jboss-service.xml. The attribute name is URLs.

For e.g. if your war file resides at C:\Apps\Foo, then you need to add like this:

<attribute name=”URLs”>
deploy/,file:\C:\Apps\Foo
</attribute>

For multiple war files, you need to end the URI with “\” so that jboss scans directory for all the war to deploy. If you are not deploying any war inside deploy directory you can remove the “deploy/”.

This is on Windows XP.


Design a site like this with WordPress.com
Get started