What is codebase for compiled Nashorn scripts?

Richard Evans richard.d.evans at oracle.com
Tue Oct 6 15:50:43 UTC 2015


I'm running with a Java Security manager, trying to give permissions to compiled Nashorn JavaScript, but cannot find the right codebase.

 

Some debug has shown an access control context entry like:

 

ProtectionDomain  (null <no signer certificates>)

HYPERLINK "mailto:jdk.nashorn.internal.runtime.ScriptLoader at 67e1a6ee"jdk.nashorn.internal.runtime.ScriptLoader at 67e1a6ee

<no principals>

HYPERLINK "mailto:java.security.Permissions at 28443842"java.security.Permissions at 28443842 (

("java.lang.RuntimePermission" "accessClassInPackage.jdk.nashorn.internal.runtime")

("java.lang.RuntimePermission" "accessClassInPackage.jdk.nashorn.internal.scripts")

("java.lang.RuntimePermission" "accessClassInPackage.jdk.nashorn.internal.objects")

("java.lang.RuntimePermission" "accessClassInPackage.jdk.nashorn.internal.runtime.linker")

("java.lang.RuntimePermission" "accessClassInPackage.jdk.nashorn.internal.runtime.arrays")

)

 

Looks like the codebase is null - how can this be specified in a policy file?  Or can the codebase be set somewhere?

 

Thanks

 

Richard

 

-- 
http://www.oracle.com/
Richard Evans | Product Architect
Phone: HYPERLINK "tel:+44%201223%20228408"+44 1223 228408 | Mobile: HYPERLINK "tel:+44%207973%20839664"+44 7973 839664 
Oracle Product Development
Newton House Cambrige Business Park | Cambridge | CB4 0WZ | United Kingdom

ORACLE Corporation UK Ltd is a company incorporated in England & Wales | Company Reg. No. 1782505 | Reg. office: Oracle Parkway, Thames Valley Park, Reading RG6 1RA 

http://www.oracle.com/commitment

Oracle is committed to developing practices and products that help protect the environment

 


More information about the nashorn-dev mailing list