java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
今天部署完一个测试war包,打开页面的时候报错:
HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
详细错误信息不贴了,缺少了包bcprov-jdkxx-xxx.jar,如:bcprov-jdk15on-1.58.jar
如果是maven项目的话,就添加依赖项:
Groupid: org.bouncycastle
ArtifactId: bcprov-jdk15on
Version: 1.58