Scripted Attribute Resolver ClassNotFoundException

Brent Putman putmanb at
Tue May 31 14:42:23 EDT 2016

On 5/31/16 2:30 PM, cbaker wrote:
> I'm trying to write a scripted attribute resolver that uses the java
> BouncyCastle libraries to do some RSA encryption.

I agree with Scott's other comments.  To add...

>   When trying to call
> Java.type("org.bouncycastle.openssl.PEMParser") I get a
> ClassNotFoundException in idp-process.  

As far as the actual error goes: start with the obvious.  Do you
actually have that class in your dependency jar set?

> I've included the appropriate jar files in
> {shibhome}/edit-webapp/WEB-INF/lib 

Are you sure?

I note that at least in BC 1.53, which the IdP currently ships, that
class doesn't come in bcprov-jdk15on.jar.  It comes in
bcpkix-jdk15on.jar.  The IdP doesn't come with that jar by default.  Are
you adding that jar?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list