Cannot access HTTPS from Weblogic

前端 未结 2 488
难免孤独
难免孤独 2020-12-15 12:46

I have a problem with Weblogic accessing an HTTPS server, I can access other HTTPS urls, like google or microsoft. The code that tries to connect to the url is:

<         


        
2条回答
  •  一生所求
    2020-12-15 13:27

    For me using -DUseSunHttpHandler=true works but I can't have this parameter, because then I have problems with restarting Managed Server on redeploy.

    This helped me:

    url = new URL(null,"https://yoururl.com",new sun.net.www.protocol.https.Handler());
    

提交回复
热议问题