Connected to server
[2020-12-05 01:30:32,364] Artifact WebContent: Artifact is being deployed, please wait...
05-Dec-2020 13:30:38.439 严重 [RMI TCP Connection(6)-127.0.0.1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/WebContent]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
.
.
.略
Caused by: java.lang.NoClassDefFoundError: Lcom/test/test/Test;
.
.
.略
Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/WebContent]]
.
.
.
[2020-12-05 01:30:38,488] Artifact WebContent: Error during artifact deployment. See server log for details.
我的问题:
Artifact WebContent: Error during artifact deployment. See server log for details.
解决方法:配置Artifacts
1.加入web配置
2.配置Artifacts
注:所有项目导入idea一定要看resources资源是否加入,Moudles中将资源变成Resources文件