Reputation: 1438
I am trying to deploy a war file from a unix box to another unix box where the jboss eap is running using the below goals
mvn clean install jboss-as:deploy
Deployment works fine for some projects with small war size. But fails for projects with war sizes aroung 40MB with below error
[INFO]
[INFO] --- jboss-as-maven-plugin:7.3.Final:deploy (default-cli) @ ---
INFO: XNIO Version 3.0.7.GA
Jun 13, 2014 6:35:49 AM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.0.7.GA
Jun 13, 2014 6:35:49 AM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 3.2.12.GA
Authenticating against security realm: ManagementRealm
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 59.685s
[INFO] Finished at: Fri Jun 13 06:36:28 GMT+00:00 2014
[INFO] Final Memory: 41M/996M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.3.Final:deploy
(default-cli) on project: Deployment failed and was rolled back. -> [Help 1]
[ERROR]
Can someone help?
Upvotes: 0
Views: 3399
Reputation: 97381
The deployment scanner has a default timeout setting of 60 seconds. This means that if your deployment does not complete within a minute, it will be canceled.
More information can be found here, but in essence, you need to change the timeout setting in your standalone.xml
or domain.xml
configuration file.
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir"
scan-interval="5000" deployment-timeout="300" />
<!-- sets the timeout to 5 minutes -->
</subsystem>
Upvotes: 2