Using Nashorn with OpenJDK 17 and IdP 4.3.1

Vlad Mencl vladimir.mencl at reannz.co.nz
Tue Feb 20 21:01:55 UTC 2024


Thanks!

Just tested that - and it works.  Rhino plugin reports as installed into 
IdP, but the scripting engine also loads and attribute-resolver.xml 
loads with the ScriptedAttributeDefinition it contains.

> 2024-02-21 09:57:09,874 -  - INFO [net.shibboleth.idp.admin.impl.LogImplementationDetails:55] - Shibboleth IdP Version 4.3.1
> 2024-02-21 09:57:09,875 -  - INFO [net.shibboleth.idp.admin.impl.LogImplementationDetails:56] - Java version='17.0.9' vendor='Private Build'
> 2024-02-21 09:57:09,882 -  - INFO [net.shibboleth.idp.admin.impl.LogImplementationDetails:71] - Plugins:
> 2024-02-21 09:57:09,883 -  - INFO [net.shibboleth.idp.admin.impl.LogImplementationDetails:73] - 		net.shibboleth.plugin.storage.jdbc : v1.0.4
> 2024-02-21 09:57:09,884 -  - INFO [net.shibboleth.idp.admin.impl.LogImplementationDetails:73] - 		net.shibboleth.idp.plugin.rhino : v1.1.0
> 2024-02-21 09:57:09,905 -  - INFO [net.shibboleth.idp.admin.impl.LogImplementationDetails:100] - Enabled Modules:
> 2024-02-21 09:57:09,906 -  - INFO [net.shibboleth.idp.admin.impl.LogImplementationDetails:102] - 		Password Authentication
> 2024-02-21 09:57:09,907 -  - INFO [net.shibboleth.idp.admin.impl.LogImplementationDetails:102] - 		Hello World
> 2024-02-21 09:57:09,908 -  - INFO [net.shibboleth.idp.admin.impl.LogImplementationDetails:102] - 		Consent Interceptors

(And yes, as you predicted, the script blows up when executed :-)


Anything where these plugins would be different in how they expose the 
ScriptEngine to Java's Service Loader  ?


Cheers,
Vlad


On 21/02/24 09:35, Cantor, Scott wrote:
>> Just wondering: could this possibly be because I'm running the IdP under
>> Tomcat - and the way Tomcat handles classloaders, the ScriptEngine
>> Service Loader does not look into an app's classpath ?
> 
> I wouldn't know.
> 
>> Sorry, at a complete loss here - any help appreciated.
> 
> You could trial it out with Rhino, which I know works, even if the scripts themselves wouldn't work.
> 
> -- Scott
> 
> 

-- 
Vladimir Mencl
Lead Software Engineer

Research & Education
Advanced Network NZ Ltd

E  vladimir.mencl at reannz.co.nz
www.reannz.co.nz


More information about the users mailing list