为了账号安全,请及时绑定邮箱和手机立即绑定

ubuntu 更新后 tomcat 8 停止工作

ubuntu 更新后 tomcat 8 停止工作

汪汪一只猫 2021-10-27 19:05:47
我最近将我的 ubuntu 桌面更新到 18.04。在此之后,我的 tomcat 在启动时失败。每次我使用命令重新启动 tomcat 时service tomcat8 restart,日志文件都会出现以下错误 -    Caused by: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext    at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)    at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)    at org.glassfish.hk2.utilities.cache.LRUHybridCache$OriginThreadAwareFuture.get(LRUHybridCache.java:164)    at org.glassfish.hk2.utilities.cache.LRUHybridCache.compute(LRUHybridCache.java:303)    ... 135 moreCaused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext    at java.base/java.lang.Class.getDeclaredMethods0(Native Method)    at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3119)    at java.base/java.lang.Class.getDeclaredMethods(Class.java:2268)    at org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperUtilities$3.run(ClassReflectionHelperUtilities.java:108)    at org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperUtilities$3.run(ClassReflectionHelperUtilities.java:104)    at java.base/java.security.AccessController.doPrivileged(Native Method)    at org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperUtilities.secureGetDeclaredMethods(ClassReflectionHelperUtilities.java:104)    at org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperUtilities.getDeclaredMethodWrappers(ClassReflectionHelperUtilities.java:133)    at org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperUtilities.getAllMethodWrappers(ClassReflectionHelperUtilities.java:192)    at org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperUtilities.getAllMethodWrappers(ClassReflectionHelperUtilities.java:193)然后我安装了 jdk8 并像这样运行 update-alternatives 命令 -
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 174 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信