I'm using hudson/jenkins since a longer time now. Currently I'm using
freestyle projects to build my maven3 based jobs.
Today I would migrate these freestyle jobs to real maven2/3 jobs, to get
all the nice stuff around it. But unfortunately the jobs stops with the
following exception:
---
Found mavenVersion 3.0.2 from file
jar:file:/opt/hudson/home/tools/Maven_3.0/lib/maven-core-3.0.2.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties
Parsing POMs
[workspace] $ /opt/hudson/home/tools/JDK_6_update_21/bin/java
-Djava.awt.headless=true -Xms128m -Xmx1024m -cp
/opt/hudson/home/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.395.jar:/opt/hudson/home/tools/Maven_3.0/boot/plexus-classworlds-2.4.jar
org.jvnet.hudson.maven3.agent.Maven3Main
/opt/hudson/home/tools/Maven_3.0
/opt/jboss-4.2.3.GA/server/default/tmp/deploy/tmp6364687603061803834hudson-exp.war/WEB-INF/lib/remoting-1.396.jar
/opt/hudson/home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.395.jar
59091
Exception in thread "main" java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.<init>(Socket.java:375)
at java.net.Socket.<init>(Socket.java:189)
at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:115)
at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:60)
ERROR: Failed to launch Maven. Exit code = 1
An attempt to send an e-mail to empty list of recipients, ignored.
Finished: FAILURE
-----
If I call this command at commandline, i got exactly the same message.
Could someone tell me, whats going wrong here? Where could I get the
Sources for Maven3Main?
The same job as freestyle works very stable.
I'm using hudson inside of jboss-4.2.3GA. I've tried hudson 1.395,
jenkins 1.396, maven 2.2.21, maven 3.0.2 in several combinations. OS is
Linux 2.6.32-27 Ubuntu.
Any ideas, what I miss here?
Thx in advance for any tip.
regards
Steffen...
I've tracked down the error a little bit.
In the connection refused snippet, the socket port is opened on the eth0
interface of my linux server, for example 213.34.56.XYV:59091. I use a
'netstat -atpn' to see, that the port 59091 is in LISTEN mode.
tcp 0 0 213.9.XX.XXX:59091 0.0.0.0:* LISTEN 10267/java
But in Maven3Main the client Socket is opened with
118: -> final Socket s = new Socket((String) null, tcpPort);
So the Client Socket was tried to create on localhost:59091 but this fails.
Does anybody have the same issue? I'm wondering whats wrong with my
linux box.