[JIRA] Created: (HUDSON-6234) Hudson fails to build a project on Tomcat6 deployed to specific IP address

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Created: (HUDSON-6234) Hudson fails to build a project on Tomcat6 deployed to specific IP address

Hudson issues mailing list
Hudson fails to build a project on Tomcat6 deployed to specific IP address
--------------------------------------------------------------------------

                 Key: HUDSON-6234
                 URL: http://issues.hudson-ci.org/browse/HUDSON-6234
             Project: Hudson
          Issue Type: Bug
          Components: maven2
    Affects Versions: current
         Environment: Debian Linux unstable

java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)

tomcat6, 6.0.24-5
            Reporter: uded
            Priority: Critical


My Tomcat server is configured to run on a specific IP address (virtual), which differs from the main IP address of the server:

{code:xml,title=server.xml}
...
<Connector port="80" protocol="HTTP/1.1"
        connectionTimeout="20000"
        URIEncoding="UTF-8"
        address="XXX.XXX.XXX.XXX"
        redirectPort="8443" />
...
{code}

When Maven 2 builder is executed, it fails with following message:

{noformat}
$ java -cp /home/hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.353.jar:/usr/share/maven2/boot/classworlds.jar hudson.maven.agent.Main /usr/share/maven2 /var/lib/tomcat6/webapps/hudson/WEB-INF/lib/remoting-1.353.jar /home/hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.353.jar 54485
Exception in thread "main" java.net.SocketException: Network is unreachable
        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:525)
        at java.net.Socket.connect(Socket.java:475)
        at java.net.Socket.<init>(Socket.java:372)
        at java.net.Socket.<init>(Socket.java:186)
        at hudson.maven.agent.Main.main(Main.java:119)
        at hudson.maven.agent.Main.main(Main.java:62)
ERROR: Failed to launch Maven. Exit code = 1
{noformat}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Updated: (HUDSON-6234) Hudson fails to build a Maven 2 project on Tomcat6 deployed to specific IP address

Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-6234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

uded updated HUDSON-6234:
-------------------------

    Summary: Hudson fails to build a Maven 2 project on Tomcat6 deployed to specific IP address  (was: Hudson fails to build a project on Tomcat6 deployed to specific IP address)

> Hudson fails to build a Maven 2 project on Tomcat6 deployed to specific IP address
> ----------------------------------------------------------------------------------
>
>                 Key: HUDSON-6234
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-6234
>             Project: Hudson
>          Issue Type: Bug
>          Components: maven2
>    Affects Versions: current
>         Environment: Debian Linux unstable
> java version "1.6.0_17"
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
> tomcat6, 6.0.24-5
>            Reporter: uded
>            Priority: Critical
>
> My Tomcat server is configured to run on a specific IP address (virtual), which differs from the main IP address of the server:
> {code:xml,title=server.xml}
> ...
> <Connector port="80" protocol="HTTP/1.1"
>         connectionTimeout="20000"
>         URIEncoding="UTF-8"
>         address="XXX.XXX.XXX.XXX"
>         redirectPort="8443" />
> ...
> {code}
> When Maven 2 builder is executed, it fails with following message:
> {noformat}
> $ java -cp /home/hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.353.jar:/usr/share/maven2/boot/classworlds.jar hudson.maven.agent.Main /usr/share/maven2 /var/lib/tomcat6/webapps/hudson/WEB-INF/lib/remoting-1.353.jar /home/hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.353.jar 54485
> Exception in thread "main" java.net.SocketException: Network is unreachable
> 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:525)
> at java.net.Socket.connect(Socket.java:475)
> at java.net.Socket.<init>(Socket.java:372)
> at java.net.Socket.<init>(Socket.java:186)
> at hudson.maven.agent.Main.main(Main.java:119)
> at hudson.maven.agent.Main.main(Main.java:62)
> ERROR: Failed to launch Maven. Exit code = 1
> {noformat}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-6234) Hudson fails to build a Maven 2 project on Tomcat6 deployed to specific IP address

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-6234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137809#action_137809 ]

uded commented on HUDSON-6234:
------------------------------

It seems that in source code the Socket object created to handle the connection is created with a null as INetAddress. That not gonna fly in this situation.

119: final Socket s = new Socket((String)null,tcpPort);

I'm not a Hudson hacker but it seems that a host address or IP used to access (?) the hudson web app should be passed on OR a host address or IP of agent running the build...

> Hudson fails to build a Maven 2 project on Tomcat6 deployed to specific IP address
> ----------------------------------------------------------------------------------
>
>                 Key: HUDSON-6234
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-6234
>             Project: Hudson
>          Issue Type: Bug
>          Components: maven2
>    Affects Versions: current
>         Environment: Debian Linux unstable
> java version "1.6.0_17"
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
> tomcat6, 6.0.24-5
>            Reporter: uded
>            Priority: Critical
>
> My Tomcat server is configured to run on a specific IP address (virtual), which differs from the main IP address of the server:
> {code:xml,title=server.xml}
> ...
> <Connector port="80" protocol="HTTP/1.1"
>         connectionTimeout="20000"
>         URIEncoding="UTF-8"
>         address="XXX.XXX.XXX.XXX"
>         redirectPort="8443" />
> ...
> {code}
> When Maven 2 builder is executed, it fails with following message:
> {noformat}
> $ java -cp /home/hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.353.jar:/usr/share/maven2/boot/classworlds.jar hudson.maven.agent.Main /usr/share/maven2 /var/lib/tomcat6/webapps/hudson/WEB-INF/lib/remoting-1.353.jar /home/hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.353.jar 54485
> Exception in thread "main" java.net.SocketException: Network is unreachable
> 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:525)
> at java.net.Socket.connect(Socket.java:475)
> at java.net.Socket.<init>(Socket.java:372)
> at java.net.Socket.<init>(Socket.java:186)
> at hudson.maven.agent.Main.main(Main.java:119)
> at hudson.maven.agent.Main.main(Main.java:62)
> ERROR: Failed to launch Maven. Exit code = 1
> {noformat}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Issue Comment Edited: (HUDSON-6234) Hudson fails to build a Maven 2 project on Tomcat6 deployed to specific IP address

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-6234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137809#action_137809 ]

uded edited comment on HUDSON-6234 at 4/13/10 4:02 PM:
-------------------------------------------------------

It seems that in source code the Socket object created to handle the connection is created with a null as INetAddress. That not gonna fly in this situation.

{code}
final Socket s = new Socket((String)null,tcpPort);
{code}

I'm not a Hudson hacker but it seems that a host address or IP used to access the hudson web app should be passed on *OR* a host address or IP of agent running the build...

      was (Author: uded):
    It seems that in source code the Socket object created to handle the connection is created with a null as INetAddress. That not gonna fly in this situation.

119: final Socket s = new Socket((String)null,tcpPort);

I'm not a Hudson hacker but it seems that a host address or IP used to access (?) the hudson web app should be passed on OR a host address or IP of agent running the build...
 

> Hudson fails to build a Maven 2 project on Tomcat6 deployed to specific IP address
> ----------------------------------------------------------------------------------
>
>                 Key: HUDSON-6234
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-6234
>             Project: Hudson
>          Issue Type: Bug
>          Components: maven2
>    Affects Versions: current
>         Environment: Debian Linux unstable
> java version "1.6.0_17"
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
> tomcat6, 6.0.24-5
>            Reporter: uded
>            Priority: Critical
>
> My Tomcat server is configured to run on a specific IP address (virtual), which differs from the main IP address of the server:
> {code:xml,title=server.xml}
> ...
> <Connector port="80" protocol="HTTP/1.1"
>         connectionTimeout="20000"
>         URIEncoding="UTF-8"
>         address="XXX.XXX.XXX.XXX"
>         redirectPort="8443" />
> ...
> {code}
> When Maven 2 builder is executed, it fails with following message:
> {noformat}
> $ java -cp /home/hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.353.jar:/usr/share/maven2/boot/classworlds.jar hudson.maven.agent.Main /usr/share/maven2 /var/lib/tomcat6/webapps/hudson/WEB-INF/lib/remoting-1.353.jar /home/hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.353.jar 54485
> Exception in thread "main" java.net.SocketException: Network is unreachable
> 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:525)
> at java.net.Socket.connect(Socket.java:475)
> at java.net.Socket.<init>(Socket.java:372)
> at java.net.Socket.<init>(Socket.java:186)
> at hudson.maven.agent.Main.main(Main.java:119)
> at hudson.maven.agent.Main.main(Main.java:62)
> ERROR: Failed to launch Maven. Exit code = 1
> {noformat}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-6234) Hudson fails to build a Maven 2 project on Tomcat6 deployed to specific IP address

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-6234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138339#action_138339 ]

uded commented on HUDSON-6234:
------------------------------

Seems to be working on 1.356 - no mention of the fix in change log though...

> Hudson fails to build a Maven 2 project on Tomcat6 deployed to specific IP address
> ----------------------------------------------------------------------------------
>
>                 Key: HUDSON-6234
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-6234
>             Project: Hudson
>          Issue Type: Bug
>          Components: maven2
>    Affects Versions: current
>         Environment: Debian Linux unstable
> java version "1.6.0_17"
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
> tomcat6, 6.0.24-5
>            Reporter: uded
>            Priority: Critical
>
> My Tomcat server is configured to run on a specific IP address (virtual), which differs from the main IP address of the server:
> {code:xml,title=server.xml}
> ...
> <Connector port="80" protocol="HTTP/1.1"
>         connectionTimeout="20000"
>         URIEncoding="UTF-8"
>         address="XXX.XXX.XXX.XXX"
>         redirectPort="8443" />
> ...
> {code}
> When Maven 2 builder is executed, it fails with following message:
> {noformat}
> $ java -cp /home/hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.353.jar:/usr/share/maven2/boot/classworlds.jar hudson.maven.agent.Main /usr/share/maven2 /var/lib/tomcat6/webapps/hudson/WEB-INF/lib/remoting-1.353.jar /home/hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.353.jar 54485
> Exception in thread "main" java.net.SocketException: Network is unreachable
> 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:525)
> at java.net.Socket.connect(Socket.java:475)
> at java.net.Socket.<init>(Socket.java:372)
> at java.net.Socket.<init>(Socket.java:186)
> at hudson.maven.agent.Main.main(Main.java:119)
> at hudson.maven.agent.Main.main(Main.java:62)
> ERROR: Failed to launch Maven. Exit code = 1
> {noformat}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Closed: (HUDSON-6234) Hudson fails to build a Maven 2 project on Tomcat6 deployed to specific IP address

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-6234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

uded closed HUDSON-6234.
------------------------

    Resolution: Fixed

Starting from 1.355 seems to be OK

> Hudson fails to build a Maven 2 project on Tomcat6 deployed to specific IP address
> ----------------------------------------------------------------------------------
>
>                 Key: HUDSON-6234
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-6234
>             Project: Hudson
>          Issue Type: Bug
>          Components: maven2
>    Affects Versions: current
>         Environment: Debian Linux unstable
> java version "1.6.0_17"
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
> tomcat6, 6.0.24-5
>            Reporter: uded
>            Priority: Critical
>
> My Tomcat server is configured to run on a specific IP address (virtual), which differs from the main IP address of the server:
> {code:xml,title=server.xml}
> ...
> <Connector port="80" protocol="HTTP/1.1"
>         connectionTimeout="20000"
>         URIEncoding="UTF-8"
>         address="XXX.XXX.XXX.XXX"
>         redirectPort="8443" />
> ...
> {code}
> When Maven 2 builder is executed, it fails with following message:
> {noformat}
> $ java -cp /home/hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.353.jar:/usr/share/maven2/boot/classworlds.jar hudson.maven.agent.Main /usr/share/maven2 /var/lib/tomcat6/webapps/hudson/WEB-INF/lib/remoting-1.353.jar /home/hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.353.jar 54485
> Exception in thread "main" java.net.SocketException: Network is unreachable
> 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:525)
> at java.net.Socket.connect(Socket.java:475)
> at java.net.Socket.<init>(Socket.java:372)
> at java.net.Socket.<init>(Socket.java:186)
> at hudson.maven.agent.Main.main(Main.java:119)
> at hudson.maven.agent.Main.main(Main.java:62)
> ERROR: Failed to launch Maven. Exit code = 1
> {noformat}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Reopened: (HUDSON-6234) Hudson fails to build a Maven 2 project on Tomcat6 deployed to specific IP address

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-6234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

tofuatjava reopened HUDSON-6234:
--------------------------------


I have still this problem and no idea what the problem is.

What I have done already:
* check the tomcat settings
* check the security settings for JVM
* turn of the firewall

running my hudson on a debian system with the latest available tomcat6

> Hudson fails to build a Maven 2 project on Tomcat6 deployed to specific IP address
> ----------------------------------------------------------------------------------
>
>                 Key: HUDSON-6234
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-6234
>             Project: Hudson
>          Issue Type: Bug
>          Components: maven2
>    Affects Versions: current
>         Environment: Debian Linux unstable
> java version "1.6.0_17"
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
> tomcat6, 6.0.24-5
>            Reporter: uded
>            Priority: Critical
>
> My Tomcat server is configured to run on a specific IP address (virtual), which differs from the main IP address of the server:
> {code:xml,title=server.xml}
> ...
> <Connector port="80" protocol="HTTP/1.1"
>         connectionTimeout="20000"
>         URIEncoding="UTF-8"
>         address="XXX.XXX.XXX.XXX"
>         redirectPort="8443" />
> ...
> {code}
> When Maven 2 builder is executed, it fails with following message:
> {noformat}
> $ java -cp /home/hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.353.jar:/usr/share/maven2/boot/classworlds.jar hudson.maven.agent.Main /usr/share/maven2 /var/lib/tomcat6/webapps/hudson/WEB-INF/lib/remoting-1.353.jar /home/hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.353.jar 54485
> Exception in thread "main" java.net.SocketException: Network is unreachable
> 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:525)
> at java.net.Socket.connect(Socket.java:475)
> at java.net.Socket.<init>(Socket.java:372)
> at java.net.Socket.<init>(Socket.java:186)
> at hudson.maven.agent.Main.main(Main.java:119)
> at hudson.maven.agent.Main.main(Main.java:62)
> ERROR: Failed to launch Maven. Exit code = 1
> {noformat}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]