Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

We are moving to JBoss 5.1.0 with autodeployment disabled. Therefore, we need to use twiddle to do our deployments.

The only place I have got stuck is deploying .xml files. These files are independent of our .war/.ear files and contain things such as Log4J configuration. As an example, we have a file called myapp_log4j.xml which, if deployed by hand, would be deployed in conf. It would then be read using:

InputStream in = LoggerFactory.class.getResourceAsStream("/myapp_log4j.xml");

This works fine if the .xml file is placed in the conf folder directly.

I have tried the following but it doesn't work:

twiddle.sh invoke "jboss.system:service=MainDeployer" deploy /tmp/deployfiles/myapp_log4j.xml

What command should I use to make this file available using twiddle?

share|improve this question

1 Answer 1

./twiddle.sh -u userid -p password -s localhost invoke "jboss.system:service=MainDeployer" deploy /tmp/sample/mtours.war <-- location of the application

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.