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?
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...
Catalina.jar should already be present in tomcat/lib directory.
Is your tomcat home set up correctly, and is the jar there.
Also ensure that the user trying to access the lib directory and Catalina.jar etc.. has access to do so (Unix).
This problem may have occurred because Tomcat was loaded into the Program Files directory. Intellij IDEA cannot read files from Tomcat/lib inside program files. It can be decide: to run the IDEA with administrator rights or download Tomcat to another directory.
Reconfigure the Tomcat server in your Intelij IDE then configure it in the project that you want to run on it.
I have already fixed this problem,you need to correct the Tomcat Home's path.
My problem is that I renamed the file of apache-tomcat-8.5.9 to Tomcat,then the Idea could not distinguish the version.
in the tomcat home you have to specify the right directory and you should add a backslash to the end of the[enter image description here][1] path; C:\Program Files\Apache Software Foundation\Tomcat 10.1.
© 2022 - 2024 — McMap. All rights reserved.