I am constantly getting following error with my java call out proxy. I am trying to generate a hash code of certificate.
Error 500: java.lang.NoClassDefFoundError: org/bouncycastle/util/encoders/Base64
I have uploaded the dependency to resources at org level as suggested one of community post. but that did not help. please advise.
http://hostport/v1/organizations/fis/resourcefiles?name=bcprov-jdk16-146.jar&type=java
Solved! Go to Solution.
Can you please try adding the JAR at the environment level? Don't remove from the org level. Just add the JAR to the env level also - see if that works. I added this same JAR at the env level and it worked.
Can you please try adding the JAR at the environment level? Don't remove from the org level. Just add the JAR to the env level also - see if that works. I added this same JAR at the env level and it worked.
I have uploaded same jar at environment level and restart message processors (as suggested in another community posting). But no luck so far... still getting Error 500: java.lang.NoClassDefFoundError: org/bouncycastle/util/encoders/Base64
Can you please post the command for how you uploaded the JAR file?
Can you please try this instead? The Content-Type is different.
curl -u $USR -H "Content-Type: application/octet-stream" --data-binary @bcprov-jdk16-146.jar -X POST "http://$HOST:8080/v1/organizations/$ORG/environments/$ENV/resourcefiles?name=bcprov-jdk16-146.jar&type=java" -i -v
This worked !! thanks @Srinandan Sridhar