ClassNotFoundException: error in opening JAR file ...jboss/lib/endorsed/._resolver.jar
When starting my JBoss using bin/run.sh I immediately get this error:
Error occurred during initialization of VM
j开发者_StackOverflow中文版ava/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.
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.
精彩评论