ClassNotFoundException:打开 JAR 文件时出错...jboss/lib/endorsed/._resolver.jar

发布于 2024-12-09 16:32:54 字数 446 浏览 6 评论 0原文

当使用 bin/run.sh 启动 JBoss 时,我立即收到此错误:

Error occurred during initialization of VM
java/lang/ClassNotFoundException: error in opening JAR file /home/polopoly/jboss/lib/endorsed/._resolver.jar

确实有一个文件 jboss/lib/endorsed/resolver.jar,但不是 ._resolver.jar。 '._' 从哪里来?我在启动脚本中找不到类似的内容。

Jboss 位于 Amazon 云计算机中,并已以 .tgz 形式被 scp 到 jar 内。这可能是错误的根源吗?但我做了“grep -R '._resolver.jar'”。在 jboss 目录中没有结果,因此没有包含该字符串的脚本文件。

When starting my JBoss using bin/run.sh I immediately get this error:

Error occurred during initialization of VM
java/lang/ClassNotFoundException: error in opening JAR file /home/polopoly/jboss/lib/endorsed/._resolver.jar

There is indeed a file jboss/lib/endorsed/resolver.jar, but not a ._resolver.jar. Where is the '._' coming from?! I can't find anything like that in the start scripts.

The Jboss is in a Amazon cloud machine and have been scp'd there as a .tgz inside a jar. Could this be a source of error? But I did a "grep -R '._resolver.jar' ." in the jboss dir with no results, so there is no script file with that string.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

提笔书几行 2024-12-16 16:32:54

在 Linux 上提取 MAC tar 存档后,使用类似以下命令

find -type f -name '._*' | xargs rm -f

,JBoss 将正确统计数据。

After you extracted your MAC tar archive on Linux use something like:

find -type f -name '._*' | xargs rm -f

on it, and JBoss will stat correctly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文