简体   繁体   English

Tomcat 未启动> java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina

[英]Tomcat Not starting up> java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina

I am unable to start the tomcat 5.5 server due to following error message in the stderr.log.由于 stderr.log 中出现以下错误消息,我无法启动 tomcat 5.5 服务器。 Can someone please help me, it is kind of emergency.有人可以帮帮我吗,这是一种紧急情况。 Thanks in advance.提前致谢。

java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina   
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)   
at java.security.AccessController.doPrivileged(Native Method)   
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)   
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)   
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)    
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:222)   
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410)    

I was facing the same issue.我面临着同样的问题。 Then I noticed that I have accidentally deleted lib folder from tomcat directory.然后我注意到我不小心从tomcat目录中删除了lib文件夹。 The issue got resolved as lib folder back in place.当 lib 文件夹恢复原位时,问题得到了解决。

In my case I changed catatina.properties file found in tomcat_directory/conf from就我而言,我更改了在 tomcat_directory/conf 中找到的 catatina.properties 文件

common.loader='${catalina.base}/lib','${catalina.base}/lib/*.jar','${catalina.home}/lib','${catalina.home}/lib/*.jar'

To

common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar

However the file always used to get overwritten.然而,该文件总是被覆盖。 I was using eclipse.我正在使用日食。 So, I did the same change in the Servers Project in eclipse.所以,我在 Eclipse 的服务器项目中做了同样的改变。 In my case it was Servers/Tomact v9.0 Server/catalina.properties.在我的例子中,它是 Servers/Tomact v9.0 Server/catalina.properties。 I did the same change stated above in this file too.我也在这个文件中做了同样的改变。 It worked for me.它对我有用。

根据我的经验,我观察到当我们多次运行服务器时,tomcat有时会抛出这个问题,这导致服务器无法拾取罐子我的建议是重新启动eclipse,这解决了我的问题

I faced the same issue and stacktrace using 8.5.11 tomcat.我使用 8.5.11 tomcat 遇到了同样的问题和堆栈跟踪。 updating to tomcat 8.5.24 solved the issue.更新到 tomcat 8.5.24 解决了这个问题。

From my experience, I have observed that tomcat sometimes throws this when there are project dependent jars (could be transitively dependent as well) missing, or not being pointed to properly, or corrupted.根据我的经验,我观察到当项目依赖的 jar(也可能是传递依赖的)丢失、未正确指向或损坏时, tomcat有时会抛出此问题。 So, please check the health of the jars deployed in the server and their dependencies.因此,请检查部署在服务器中的 jar 及其依赖项的运行状况。 For example, if you are using maven to build your project jars, you could once clear the .m2/repository and rebuild the project and deploy again.例如,如果您使用maven构建项目 jar,您可以清除.m2/repository并重新构建项目并再次部署。

通过将 ejb.jar 文件添加到作为启动依赖包的 Tomcat/lib 文件夹中解决了该问题。

Sometimes, even though all the necessary things are perfect, this error would be reported if there is user VM arguments enclosed with the double quotes, I spent a day to get rid of this.有时,即使所有必要的东西都很完美,如果有用户虚拟机参数用双引号括起来,也会报告这个错误,我花了一天的时间来解决这个问题。 check in run --> run configuration, in arguments tab, VM Arguments, check for the user entries is enclosed with quotes/spaces, if so remove it and 'Run'检查运行->运行配置,在参数选项卡,VM参数中,检查用户条目是否用引号/空格括起来,如果是这样,请将其删除并“运行”

Tomcat by default needs a set of libraries inside the lib folder to bootstrap the starting process inside the tomcat.默认情况下,Tomcat 需要 lib 文件夹内的一组库来引导 Tomcat 内的启动过程。 Make sure you have these libs inside the lib folder.确保在 lib 文件夹中有这些库。 This is for tomcat8.这是针对tomcat8的。

在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 TOMCAT-org.apache.catalina.startup.Catalina stopServer严重:Catalina.stop: - TOMCAT - org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: 未配置服务器实例:java.lang.ClassNotFoundException:org.apache.catalina.startup.VersionLoggerListener - Server Instance is not configured : java.lang.ClassNotFoundException :org.apache.catalina.startup.VersionLoggerListener java.lang.ClassNotFoundException:org.apache.catalina.connector.Response - java.lang.ClassNotFoundException: org.apache.catalina.connector.Response java.lang.ClassNotFoundException:org.apache.catalina.core.ThreadLocalLeakPreventionListener - java.lang.ClassNotFoundException: org.apache.catalina.core.ThreadLocalLeakPreventionListener org.apache.catalina.core.StandardContext listenerStart java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener - org.apache.catalina.core.StandardContext listenerStart java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener java.lang.NoSuchMethodException:org.apache.catalina.startup.Catalina.setAwait(boolean) - java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) 错误[org.apache.catalina.core.ContainerBase。[jboss.web] .exception:java.lang.ClassNotFoundException:org.apache.commons.collections.ArrayStack - ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].exception: java.lang.ClassNotFoundException: org.apache.commons.collections.ArrayStack org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395) - org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395) SpringMVC Apache Tomcat 7.0 java.lang.NoSuchMethodException:org.apache.catalina.deploy.WebXml addFilter - SpringMVC apache tomcat 7.0 java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter tomcat startup java.lang.ClassNotFoundException:[Ljava.lang.String; - tomcat startup java.lang.ClassNotFoundException: [Ljava.lang.String;
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM