| Author |
Problems with nonProxyHosts
|
Hans Tester
Greenhorn
Joined: Jun 28, 2006
Posts: 2
|
|
Hello, I use a tomcat 4.1.30 and have 2 applications on it which do calls to URLs to retrieve data. the first one needs a proxy server because it retrieves data from an outside link. So I added code to the Catalina.bat: set JAVA_OPTS=-Dhttps.proxyHost=any-IP-Address -Dhttps.proxyPort=6666 -Djavax.net.ssl.trustStore=C:\Programme\Java\jdk1.5.0_04\jre\lib\security\cacerts which works! But the second application doesn't need the proxy, so I tried to handle this by adding -Dhttps.nonProxyHosts=the-other-host but this doesn't help! There ist always the error java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 405 Method not allowed" If I remove the entry in Catalina.bat completely, the second application works, but the first of course not. And the other way around. Any ideas why this doesn't work? The calls are using https. thanks
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
Hans, We also have a forum for Sockets and Internet Protocols. I'm starting to wonder if this question would do better there. Let me know if you want me to move it there (a closed copy will remain in this forum). -Ben
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
Hans Tester
Greenhorn
Joined: Jun 28, 2006
Posts: 2
|
|
Hello, I'm not sure whether this is a problem of Tomcat configuration or protocols, but maybe you are right, so if a copy stays here... thanks
|
 |
 |
|
|
subject: Problems with nonProxyHosts
|
|
|