Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » (Solved) Hudson ignoring http.proxyHost / http.ProxyPort(Hudson and Nexus in the same Tomcat instance interact with each other through JVM -Parameter)
(Solved) Hudson ignoring http.proxyHost / http.ProxyPort [message #1061816] Tue, 04 June 2013 08:36 Go to next message
H. L. is currently offline H. L.Friend
Messages: 2
Registered: June 2013
Junior Member
Hi

I'm using Hudson 3.0.1-b2 on a Debian-Linux. The JAVA_OPTS are loking like this:

JAVA_OPTS="-Dhttp.proxyHost=10.10.70.24 -Dhttp.proxyPort=8080 -Djava.net.useSystemProxies=false -Djava.awt.headless=true -XX:+HeapDumpOnOutOfMemoryError -Xmx2048M -Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true -Dorg.apache.el.parser.COERCE_TO_ZERO=false -XX:MaxPermSize=256m -XX:+UseParallelGC -Duser.timezone=Europe/Berlin"

These options are processed by the startup script and passed over to the java process

/usr/lib/jvm/java-6-openjdk-i386/bin/java -Djava.util.logging.config.file=/var/lib/tomcat7/conf/logging.properties -Dhttp.proxyHost=10.10.70.24 -Dhttp.proxyPort=8080 -Djava.net.useSystemProxies=false -Djava.awt.headless=true -XX:+HeapDumpOnOutOfMemoryError -Xmx2048M -Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true -Dorg.apache.el.parser.COERCE_TO_ZERO=false -XX:MaxPermSize=256m -XX:+UseParallelGC -Duser.timezone=Europe/Berlin -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -classpath /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat7 -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/tmp/tomcat7-tomcat7-tmp org.apache.catalina.startup.Bootstrap start

But when i check the system info Hudson tells me:

http.proxyHost 10.10.70.23
http.proxyPort 8080

1) Hudson ignores the http.proxyHost from the startup

2) Somewhere finds another entry - I have no clue from where.

Any suggestions are appreciated

Thanks
Holger




[Updated on: Wed, 05 June 2013 07:42]

Report message to a moderator

Re: Hudson ignoring http.proxyHost / http.ProxyPort [message #1061913 is a reply to message #1061816] Tue, 04 June 2013 17:01 Go to previous messageGo to next message
Bob Foster is currently offline Bob FosterFriend
Messages: 74
Registered: January 2013
Member
From Tomcat?
Re: Hudson ignoring http.proxyHost / http.ProxyPort [message #1061963 is a reply to message #1061913] Wed, 05 June 2013 07:39 Go to previous message
H. L. is currently offline H. L.Friend
Messages: 2
Registered: June 2013
Junior Member
Hi

Just found out by myself. Nexus Repo-Manager is running in the same Tomcat instance. And Nexus writes it's proxy settings (and most likely other settings as well) to the JVM. So, Hudson gets his proxy setting from Nexus Smile

I filed that as a question to Sonatype-Support and received a quick answer:

"Nexus should not be run in the same JVM as any other server.
Sometimes the JVM implementation forces an application to set JVM system properties that will affect all applications running in that JVM. That is what you are seeing here - Nexus resets system properties, and hudson is picking these up because it is running in the same JVM. This is completely untested. For the best experience, use the Nexus OSS bundle which uses Jetty to run Nexus instead"

Every day you learn something new.

Bye
Holger




Previous Topic:Command execution failure
Next Topic:StackOverFlow after updating JDepend plugin
Goto Forum:
  


Current Time: Mon Nov 24 15:17:04 GMT 2014

Powered by FUDForum. Page generated in 0.02357 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software