Webstart https:在证书上使用服务器,而不在loadbalancer上 [英] Webstart https: works with server on certificate and not on loadbalancer

查看:222
本文介绍了Webstart https:在证书上使用服务器,而不在loadbalancer上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为我的Java webstart应用程序创建https安全连接。我所做的只是配置我的Tomcat使用证书,我就完成了。我可以做

I'm trying to create a https secure connection for my Java webstart application. All I did was to configure my Tomcat to use a certificate and I was done. I could just do

https:// nsjns:8443 / abc / xyz.jnlp并且它下载了我的应用程序并且工作正常。

"https://nsjns:8443/abc/xyz.jnlp" and it downloaded my application and worked fine.

用于生产,我们购买了一个证书,这个证书保存在负载均衡器上,负载均衡器后面是实际的Web服务器。如果我使用浏览器,我可以看到服务器,并可以通过在浏览器中键入url来下载我的jnlp文件。但是,我无法使用Java webstart执行jnlp文件,因为我得到以下异常。

for production, we purchased a certificate and this cert was kept on the load balancer with the actual web server behind the load balancer. If I use the browser I can see the server and can download my jnlp file by typing the url in the browser. However, I cannot execute the jnlp file using Java webstart as I get the below exception.

Java.io.IOException: Server returned HTTP response code: 503 for URL: "http://test.tec.com/abc.jnlp"
                at sun.reflect.GeneratedConstructorAccessor13.newInstance(Unknown Source)
                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
                at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
                at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1674)
                at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1672)
                at java.security.AccessController.doPrivileged(Native Method)
                at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1670)
                at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1243)
                at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
                at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
                at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
                at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
                at com.sun.deploy.net.DownloadEngine._downloadCacheEntry(Unknown Source)
                at com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(Unknown Source)
                at com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(Unknown Source)
                at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
                at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
                at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
                at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
                at com.sun.javaws.Launcher.launch(Unknown Source)
                at com.sun.javaws.Main.launchApp(Unknown Source)
                at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
                at com.sun.javaws.Main.access$000(Unknown Source)
                at com.sun.javaws.Main$1.run(Unknown Source)
                at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: http://test.tec.com/abc.jnlp
                at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625)
                at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
                ... 17 more

它将我的网址从https解析为http。我是这个人的新手。请帮助我提出您的想法和建议。我缺少什么?

It is resolving my url from https to http. I'm new to all this. Please help me with your ideas and suggestions. What am I missing to do?

推荐答案

不太可能与您的证书有任何关系。尝试使用IP地址而不是webstart URL中的主机名。

Unlikely to have anything to do with your certificate. Try using the IP address instead of the hostname in the webstart URL.

您没有说明您正在运行webstart的平台,但是如果IP地址正常工作则启动webstart控制面板: javaws -viewer 并转到Java选项卡上的网络设置。假设它还没有这么说,请选择直接连接(即没有代理)并告诉我们之后是否有效。

You don't say what platform you are running webstart on, but if the IP address works then launch the webstart control panel: javaws -viewer and go to Network Settings on the Java tab. Assuming it doesn't already say so, select Direct Connection (i.e. no proxy) and tell us if it works after that.

这篇关于Webstart https:在证书上使用服务器,而不在loadbalancer上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆