aspose file tools
The moose likes Tomcat and the fly likes Problems with nonProxyHosts Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Problems with nonProxyHosts" Watch "Problems with nonProxyHosts" New topic
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problems with nonProxyHosts
 
Similar Threads
Tomcat not seeing setenv values in Windows 2003 Server
JNI from a servlet
Axis HTTP Proxy Settings
Login to ASP page
Using OneToOne as OneToMany