Tomcat在Java 11下的未知类加载器

huangapple go评论79阅读模式
英文:

Tomcat unknown classloader with java 11

问题

我将项目中的Java版本从Java 8更改为Java 11,当Tomcat启动时,它会部署我指定的.war文件,然而在Java 11下,它无法成功部署它们,Tomcat版本为5.5。以下是Catalina日志:

INFO: 正在启动Servlet引擎:Apache Tomcat/5.5.36
Sep 02, 2020 10:09:00 AM org.apache.catalina.core.StandardHost start
INFO: 已禁用XML验证
Sep 02, 2020 10:09:00 AM org.apache.catalina.loader.WebappLoader setClassPath
INFO: 未知的加载器 jdk.internal.loader.ClassLoaders$AppClassLoader@2cdf8d8a 类 jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 02, 2020 10:09:00 AM org.apache.catalina.loader.WebappLoader setClassPath
INFO: 未知的加载器 jdk.internal.loader.ClassLoaders$AppClassLoader@2cdf8d8a 类 jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 02, 2020 10:09:00 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: 正在部署Web应用程序存档 axis2.war
Sep 02, 2020 10:09:03 AM org.apache.catalina.loader.WebappLoader setClassPath
INFO: 未知的加载器 jdk.internal.loader.ClassLoaders$AppClassLoader@2cdf8d8a 类 jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 02, 2020 10:09:05 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: 正在部署Web应用程序存档 MicroClient.war
Sep 02, 2020 10:09:05 AM org.apache.catalina.loader.WebappLoader setClassPath
INFO: 未知的加载器 jdk.internal.loader.ClassLoaders$AppClassLoader@2cdf8d8a 类 jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 02, 2020 10:09:05 AM org.apache.catalina.core.StandardContext start
SEVERE: 错误 listenerStart

有关问题可能出现的地方是否有任何建议?

英文:

I changed the java of my project from java 8 to java 11 and
when tomcat starts it deploys .war files i have specified,
however with Java 11 it failed to deploy them , the tomcat is version 5.5
here is the log from Catalina

INFO: Starting Servlet Engine: Apache Tomcat/5.5.36
Sep 02, 2020 10:09:00 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Sep 02, 2020 10:09:00 AM org.apache.catalina.loader.WebappLoader setClassPath
INFO: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@2cdf8d8a class jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 02, 2020 10:09:00 AM org.apache.catalina.loader.WebappLoader setClassPath
INFO: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@2cdf8d8a class jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 02, 2020 10:09:00 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive axis2.war
Sep 02, 2020 10:09:03 AM org.apache.catalina.loader.WebappLoader setClassPath
INFO: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@2cdf8d8a class jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 02, 2020 10:09:05 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive MicroClient.war
Sep 02, 2020 10:09:05 AM org.apache.catalina.loader.WebappLoader setClassPath
INFO: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@2cdf8d8a class jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 02, 2020 10:09:05 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart

Any suggestions where the problem can be?

答案1

得分: 1

Tomcat 5.5在2012年10月9日发布,即在其于2012年9月宣布的终止支持日期后的8年,发布后不久就进入了不再维护的状态。

Java 11于2018年9月发布,比Tomcat 5.5进入不再维护状态晚了6年。

> 针对上述发布日期,您可以进行计算。建议升级!

英文:

Tomcat 5.5 was last released 2012-10-09, e.g. 8 years ago, just after its announced end-of-life in September 2012.

Java 11 was released in September 2018, 6 years after Tomcat 5.5 went to unmaintained state.

> Any suggestion where the problem can be?

You do the math on release dates above. Upgrade!

huangapple
  • 本文由 发表于 2020年9月2日 16:04:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/63701243.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定