Hi,
I have some glassfish unit tests that use jax-ws that are running on
solaris and failing on windows. The test is exec'ing wsimport.bat and
it's failing with this error (recreated with command line):
--- begin ---
D:\work\temp>wsimport
https://hostname:8181/security-wss-ssl/webservice/WssSslServletService/HelloServlet?WSDL
parsing WSDL...
[ERROR] Unable to tunnel through proxy. Proxy returns "HTTP/1.1 504
Gateway Timeout"
unknown location
Failed to parse the WSDL.
--- end ---
If I use "localhost" or the IP address rather than the host name, then
it finds the service but fails since the host name isn't what it's
expecting to match names in the certificate:
--- begin ---
D:\work\temp>wsimport
https://localhost:8181/security-wss-ssl/webservice/WssSslServletService/HelloServlet?WSDL
parsing WSDL...
[ERROR] HTTPS hostname wrong: should be <localhost>
unknown location
Failed to parse the WSDL.
--- end ---
If I turn off my system proxy settings for the LAN, then the test passes
for me. Any idea why wsimport is trying to use my proxy and not just
hitting the local server using the machine name (which is actually
"hostname" -- picked up from the environment in the test)? Is it because
I don't have a static IP address inside the network?
Thanks,
Bobby