未找到org.bouncycastle.cert.ocsp.BasicOCSPResp的类文件 [英] class file for org.bouncycastle.cert.ocsp.BasicOCSPResp not found

查看:730
本文介绍了未找到org.bouncycastle.cert.ocsp.BasicOCSPResp的类文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我错误地在我的Netbeans项目上运行了干净,该项目最近没有重大的API变化。现在构建突然失败并出现以下错误:找不到org.bouncycastle.cert.ocsp.BasicOCSPResp的
类文件

I made the mistake of running clean on my Netbeans project, which has had no major API changes at all lately. Now the build suddenly fails with the following error: class file for org.bouncycastle.cert.ocsp.BasicOCSPResp not found

据我所知,我是在我的项目中没有使用任何这样的库。我确实发现它是某种类型的iText依赖,但即使我注释掉所有与iText相关的代码,错误仍然存​​在。

To my knowledge, I'm not using any such library in my project. I did find that it is an iText dependency of some sort, but even when I comment out all of my iText-related code, the error persists.

我试过添加1.49版本的bouncycastle到我的Netbeans项目,无济于事。 (实际上,这确实解决了我遇到的第一个bouncycastle没有类错误,但是第二个错误是下一个问题)。我查看了存档,发现BasicOCSPResp位于org.bouncycastle.ocsp下。我还尝试在版本1.47,1.46甚至1.32上查看,并在org.bouncycastle.ocsp下找到BasicOCSPResp,而不是在所有版本中找到org.bouncycastle.cert.ocsp。

I have tried adding the 1.49 version of bouncycastle to my Netbeans project, to no avail. (Actually, that did cure the first bouncycastle no-class-found error I had, but this second error was the next problem). I looked in the archive and found that BasicOCSPResp is found under org.bouncycastle.ocsp. I also tried peeking at versions 1.47, 1.46, and even 1.32 and found BasicOCSPResp under org.bouncycastle.ocsp and not org.bouncycastle.cert.ocsp in all of them.

这是构建堆栈跟踪:
注意:创建静态元数据工厂......

Here is the build stacktrace: Note: Creating static metadata factory ...

error: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for      
org.bouncycastle.cert.ocsp.BasicOCSPResp not found

注释处理器抛出未捕获的异常。
有关详细信息,请参阅以下堆栈跟踪。

An annotation processor threw an uncaught exception. Consult the following stack trace for details.

java.lang.RuntimeException: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.bouncycastle.cert.ocsp.BasicOCSPResp not found
at org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor.process(CanonicalModelProcessor.java:407)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:627)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:556)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:701)


推荐答案

Bouncy Castle在几个罐子里上课。对于 BasicOCSPResp ,您需要确保bcpkix jar在类路径上。最新版本为 bcpkix-jdk15on-149.jar

Bouncy Castle has classes in several jars. For BasicOCSPResp you need to make sure a bcpkix jar is on the classpath. The latest version is bcpkix-jdk15on-149.jar.

这篇关于未找到org.bouncycastle.cert.ocsp.BasicOCSPResp的类文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆