GlassFish NoClassDefFoundError - Netbeans 项目
在 Netbeans (6.9.1) 中部署 Web 应用程序后,我有时会收到 NoClassDefFoundError 错误。实际上,Netbeans 没有部署整个项目(不复制类文件或其他相关文件),而只是部署其中的一部分,这实际上是个问题。
运行“清理和构建”几次和/或复制其余文件可以解决问题,但非常不方便。
有人知道这个问题的原因或解决方案吗?
I'm sometimes getting NoClassDefFoundError after deploying web application in Netbeans (6.9.1). It's actually problem with Netbeans not deploying entire project (not copying class files or other relevant files), but only part of it.
Running "Clean & Build" a few times and/or copying rest of the files solves the problem, but it's very inconvenient.
Anyone knows the cause or solution of this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试清除 Netbeans 缓存,或查看 Netbeans 7 的错误修复。
缓存位于 ~/.netbeans/6.9/var/cache。我找到了仅删除缓存中的索引/文件夹的说明,但这似乎还不够。
编辑:删除整个缓存似乎也无法解决它。
Try clearing your Netbeans cache, or check out the bug fixes for Netbeans 7.
The cache is at ~/.netbeans/6.9/var/cache. I found instructions to just delete the index/ folder in the cache, but that didn't seem to be enough.
EDIT: Deleting the entire cache didn't seem to resolve it, either.
您的答案不太清楚,但是,
我建议在 Netbeans 库中添加所需的 jar 文件,然后将该库导入到您的项目中。
如果这不起作用,那么我很高兴将完整的情况和错误写在这里...
Your answer is not much clear but,
I suggest to add your required jar files in Netbeans library then import the library into your project..
If this does not work then i'll be glad to having the complete situation and errors to be written here...