I am trying to deploy my EAR on jBoss server using maven. This is my pom entry
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.1.1.Final</version>
<executions>
<execution>
<id>jboss-undeploy</id>
<goals>
<goal>undeploy</goal>
</goals>
<phase>clean</phase>
</execution>
<execution>
<id>jboss-deploy</id>
<goals>
<goal>deploy</goal>
</goals>
<phase>install</phase>
</execution>
</executions>
<configuration>
<force>true</force>
<jbossHome>${jboss.directory}</jbossHome>
<serverName>dummyserver-standard</serverName>
<hostName>localhost</hostName>
<username>ashutosh</username>
<password>password</password>
<port>7001</port>
<fileNames>
<fileName>/target/RightsEar-1.0-SNAPSHOT.ear</fileName>
</fileNames>
</configuration>
</plugin>
I run the command "clean install -U -X" because I have configured my pom to deploy the EAR in install phase. I am below error
java.net.ConnectException: JBAS012144: Could not connect to remote://localhost:7001.
The connection timed out
I have tried many solutions given in stackoverflow but nothing helped. Kindly suggest me the solution..any help is appreciated
After a lot of hit and trial finally I got my EAR deployed but it ran only 2 times after that it is showing me the error that EAR structure is not proper. I googled it and found that it is a bug in jBoss 7.1.1.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.