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! Go to Solution.
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.