Java 运行 Tomcat 7.0.34 时出错:找不到 catalina.jar

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24015502/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-14 09:45:18  来源:igfitidea点击:

Error running Tomcat 7.0.34: Can't find catalina.jar

javaintellij-ideatomcat7

提问by Maarten Meeusen

I have a Java web application that I have been working on 6 months ago and when I last worked on it, it would run perfectly. When I ran it again 6 months later I got this error "Can't find catalina.jar". I'm using IntelliJ 13.0 and tomcat 7.0.34. Can anybody help me with this problem?

我有一个 Java Web 应用程序,我在 6 个月前一直在使用它,当我上次使用它时,它可以完美运行。当我 6 个月后再次运行它时,我收到了这个错误“找不到 catalina.jar”。我正在使用 IntelliJ 13.0 和 tomcat 7.0.34。有人可以帮我解决这个问题吗?

回答by NimChimpsky

Catalina.jar should already be present in tomcat/lib directory.

Catalina.jar 应该已经存在于 tomcat/lib 目录中。

Is your tomcat home set up correctly, and is the jar there.

你的 tomcat home 设置是否正确,jar 是否在那里。

回答by HellishHeat

Also ensure that the user trying to access the lib directory and Catalina.jar etc.. has access to do so (Unix).

还要确保尝试访问 lib 目录和 Catalina.jar 等的用户有权访问(Unix)。

回答by Felix

I had the same problem and solved it like this:

我遇到了同样的问题并像这样解决了它:

The method is to chose right Tomcat Home and Tomcat base directory in the wizard Run/Debug Configuration -> Server -> Configure...

方法是在向导Run/Debug Configuration -> Server -> Configure...中选择正确的Tomcat Home和Tomcat基目录。

回答by JoeXu

I have already fixed this problem,you need to correct the Tomcat Home's path.

我已经解决了这个问题,你需要更正Tomcat Home的路径。

My problem is that I renamed the file of apache-tomcat-8.5.9to Tomcat,then the Ideacould not distinguish the version.

我的问题是我把apache-tomcat-8.5.9文件重命名为Tomcat,然后Idea无法区分版本。