[Solved] SSM Project Error: Error during artifact deployment. See server log for details.

SSM project reports error during artifact deployment See server log for details. Solution

First look at the Tomcat localhost log and find:

java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener

At this time, we can set this in the idea to solve the error.

In idea, click File > Project Structure > Artifacts

Delete the jar file at the same level as web-inf

Right-click the project name in the right output layout and select Put into Output Root.

After execution, you can see that the jar files are placed in the Lib directory of WEB-INF, and click OK.

Finally, the restart takes effect.

Read More: