JBoss AS 7 deployment problems

I have recently encountered a problem while deploying web application to JBoss AS 7 when my application just undeployed itself automatically after deployment.
No errors, nothing in logs, no nothing.

Application I was trying to use was pre-populating data on the database during deployment and that caused invisible deployment timeout on JBoss, especially on our rather slow Team City agent.

If you’ll find yourself in such a situation there is an easy fix for that, all you have to do is to add ‘deployment-timetout’ setting into your configuration file (standalone.xml)

        <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
            <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" deployment-timeout="120"/>

I have set it to be 120 seconds (I guess the default one is 60 if not specified)

Leave a Reply