我有問題(來自受信任的CA證書)部署簽名Applet上一個新的Web服務器。它在我的舊網站服務器上運行良好,但是當我將它傳輸到新主機時,它被Java安全設置阻止。簽名的小受阻與反向代理瀏覽器上(「未知源」)
我在HTML文件部署這樣的:
<div id="applet">
<script>
var attributes = {codebase:'http://ab123.wwwdns.example.com/Applet/',
code: 'db.main.ExApplet',
archive: 'ExampleApplet.jar',
width: '1150',
height: '700',
permissions: 'sandbox'};
var parameters = {};
var version = '1.6';
deployJava.runApplet(attributes, parameters, version);
</script>
</div>
我的清單文件包含以下行:
Manifest-Version: 1.0
Application-Name: Example Name
Permissions: sandbox
Caller-Allowable-Codebase: *.example.com http://ab123.wwwdns.example.com http://other.example.com
Codebase: *.example.com http://ab123.wwwdns.example.com http://other.example.com
Application-Library-Allowable-Codebase: *.example.com http://ab123.wwwdns.example.com http://other.example.com
Entry-Point: db.main.ExApplet
(以前我只指定試過* .example.com的,但這個沒有任何工作)
我想這個問題是關係到一個事實,即小應用程序,現在可以通過兩個不同的URL來訪問(ab123.wwwdns.example.com和other.exampl e.com)?
這裏是從Java控制檯(Java的8更新71建設15插件在Firefox)的摘錄:
java.lang.reflect.InvocationTargetException
...
Caused by: com.sun.deploy.security.BlockedException: Your security settings have blocked an untrusted application from running
at com.sun.deploy.security.BlockedDialog.show(Unknown Source)
at com.sun.deploy.security.SandboxSecurity.checkRunUntrusted(Unknown Source)
at
com.sun.deploy.security.SandboxSecurity.checkUnsignedSandboxSecurity(Unknown Source)
...
任何提示的歡迎!