问题:Could not load [META-INF/services/javax.xml.xpath.XPathFactory]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
原因:shutdown.sh不能完全关闭改项目进程
解决:
1.查找项目java1,发现java1项目有两个进程同时运行
ps -ef | grep java1
2.kill -9 [进程号]
3.重启
博客指出项目出现无法加载 [META-INF/services/javax.xml.xpath.XPathFactory] 的问题,原因是 shutdown.sh 不能完全关闭项目进程。解决办法是先查找项目 java1 的进程,发现有两个进程同时运行,通过命令 ps -ef | grep java1 查找,再用 kill -9 [进程号] 结束进程,最后重启。
2916

被折叠的 条评论
为什么被折叠?



