i'm having problems deploy signed applet (certificate trusted ca) on new webserver. running fine on old webserver, when transfer new host, blocked java security settings.
i deploy in html file:
<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>
my manifest file contains following lines:
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
(previously tried specifying *.example.com did not work either)
i guess problem related fact applet can accessed 2 different urls (ab123.wwwdns.example.com , other.example.com)?
here excerpt java console (java 8 update 71 build 15 plugin on firefox):
java.lang.reflect.invocationtargetexception ... caused by: com.sun.deploy.security.blockedexception: security settings have blocked untrusted application running @ com.sun.deploy.security.blockeddialog.show(unknown source) @ com.sun.deploy.security.sandboxsecurity.checkrununtrusted(unknown source) @ com.sun.deploy.security.sandboxsecurity.checkunsignedsandboxsecurity(unknown source) ...
any hints welcome!
i resolved problems; found out 'unknown source' error due fact external libraries use not found. weird, used exact same architecture accessing external libraries did on old server, on new server did not work (to me unknown) reason.
here list of changes made make applet work during research , it's running fine, others have problems deploying applets well:
- i removed codebase attribute html file
- i used wildcard *.example.com in manifest file
- i moved external libraries same folder exampleapplet.jar , additionally did not add them exampleapplet.jar file anymore
- previously had dot (.) in class-path attribute, removed
html file
<div id="applet"> <script> var attributes = {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 file
manifest-version: 1.0 application-name: example name permissions: sandbox caller-allowable-codebase: *.example.com codebase: *.example.com application-library-allowable-codebase: *.example.com class-path: external1.jar external2.jar entry-point: db.main.exapplet
(previously class-path had looked , external libraries located under lib/ , additionally within exampleapplet.jar):
class-path: . lib/external1.jar lib/external2.jar
Comments
Post a Comment