How to use idea to configure Maven project to start tomact? If the following errors are reported, find many solutions and still report errors?

CSDN Q & A 2022-01-26 13:35:55 阅读数:928

use idea configure maven project

The phenomenon and background of the problem :
In the use of idea To configure maven Project start tomacat An error was reported java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
The exception interface is as follows ↓

img


pom.xml Configuration information ↓

img

Operating environment 、 Software version and other information :
win11
idea2020.1
maven3.8.4
tomacat9.0.38
Tried solutions :
Query exception display not loaded into tomcat-juli.jar This package , I went to see tomcat/bin This package exists under the file

img


I've tried clean and install There is no way to restart and load the project , I guess it might be tomcat Version of the problem use tomcat8.5.73 The problem remains the same
stay pom.xml Download tomcat-juli.jar Dependence still reports an error .
The crash of false positives , Plead for a solution , I've tried to solve it for two days, but I still can't solve it




Refer to the answer 1:

you WEB-INF -> lib Add this jar Did you pack it




Refer to the answer 2:
copyright:author[CSDN Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/01/202201261335527970.html