Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to avoid mixed code warning from third party lib loading binary resources?
    primarykey
    data
    text
    <p>I'm working on an enormous applet, loads over 100 jars, 50 of which are third-party. All of them are signed and trusted.</p> <p>Unfortunately, one, openmap, loads binary files (shape and layer files). I cannot sign these files (AFAIK), because they aren't jars, don't have manifests, etc.</p> <p>Since the jar loads binary files, I get the mixed code warning when running. The only thing I've figured out to avoid this is to mark EVERY .jar as "Trusted-Library: true". Changing the manifest on all the .jars means that all the .jars have to be re-signed, which is a political problem.</p> <p>I know the dialog can be disabled in the java control panel. I'm looking for another workaround. Naively, I would like to be able to somehow mark openmap or my jar that uses it to be trusted (or whatever it takes) to load those files without the warning. I tried making openmap a trusted-library, that doesn't eliminate the error. If I try making my jar that uses openmap a trusted library, then I run into issues because my jar depends on yet other jars and the class definitions in my jar can't be loaded because those dependent classes are in another classloader.</p> <p>Edit:<br> This appears to trigger the dialog (Clicked "Yes, block potentially unsafe" to get this logging statement)</p> <blockquote> <p>security: resource name "http://localhost:8080/maps/politicalWorld/vmap_political_world/vmap_area_thin.shp" in <a href="http://localhost:8080/app/client-lib/" rel="nofollow">http://localhost:8080/app/client-lib/</a> : java.lang.SecurityException: trusted loader attempted to load sandboxed resource from <a href="http://localhost:8080/app/client-lib/" rel="nofollow">http://localhost:8080/app/client-lib/</a></p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload