Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Failed to run a simple maven projet

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello.
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




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.
 
Ranch Hand
Posts: 293
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

From the error it looks like you might be trying to deploy your app when WildFly isn't running. Do you have an instance of WildFly running on localhost?
 
Alex Ataman
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Dave Salter wrote:Hi,

From the error it looks like you might be trying to deploy your app when WildFly isn't running. Do you have an instance of WildFly running on localhost?



I tried to run the server first of all as you said.
I created the new maven project with javaee6-basic-archetype, first I launched the server in eclipse then I built a maven project.
The last build was successful, but I cann't run a simple swing project on the server. The main function doesn't called by server.

As I understand wildfly doesn't support <packaging>app-client</packaging>.
 
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic