Failed to run a simple maven projet
ataman Oct 1, 2014 8:19 AMHello.
I just created a simple maven project of "maven-archetype-j2ee-simple" archetype where I created a simple server socket.
For a 4 days I have tried to deploy and to run this project on the wildfly 8.1.0 server withou success.
my POM.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>sce</groupId>
<artifactId>AvatarServerSide</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>AvatarServerSide</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>1.0.2.Final</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>false</skip>
<hostname>${hostname}</hostname>
<port>${port}</port>
<username>${username}</username>
<password>${password}</password>
</configuration>
</plugin>
</plugins>
</build>
</project>
When I trying to build project via terminal on ubuntu i got the next error:
[ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.0.2.Final:deploy (default) on project AvatarServerSide: Could not execute goal deploy on /mnt/winwork/Projects/College/FinalProject/AvatarServerSide/target/AvatarServerSide-0.0.1-SNAPSHOT.jar. Reason: I/O Error could not execute operation '{
[ERROR] "operation" => "read-attribute",
[ERROR] "address" => [],
[ERROR] "name" => "launch-type"
[ERROR] }': java.net.ConnectException: JBAS012174: Could not connect to remote://127.0.0.1:9999. The connection failed: Connection refused
Please help me, I am a newbie in Java EE.