Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

NoClassDefFoundError on PEMUtil using iloveapis2015-jwt-jwe-jws jwt_signed create-rs256

Not applicable

I want to use JWT access tokens with OAuth 2.0. I downloaded iloveapis2015-jwt-jwe-jws from GitHub, and deployed the jwt_signed sample using apigeetool. The deployment succeeded but attempting to POST the jtw_signed/create-rs256, I received:

{ "fault": { "faultstring": "java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.ssl.PEMUtil", "detail": { "errorcode": "Internal Server Error" } } }

I also manually built the jwt_signed callout and redeployed but received the same NoClassDefFoundError.

I checked the deployment and all expected jar files are in place including not-yet-commons-ssl.


Any suggestions?

Solved Solved
1 11 261
1 ACCEPTED SOLUTION

Former Community Member
Not applicable

I can confirm @Dino's suspicion. This is because of the Java security policy that is enforced on the trial orgs. I can run the same JWT proxy with no problems in a demo/paid org.

View solution in original post

11 REPLIES 11