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:
- [Solved] IDEA JSP File out.println Error: Cannot resolve method ‘println(java.lang.String)’
- [How to Solve] Error: Invalid or corrupt jarfile…
- IDEA: How to Solve spark source code Modified Error
- How to Solve AD20 Channel-Offset Error
- [Solved] Groovy Project Compile Error: java.lang.NoClassDefFoundError: org/apache/tools/ant/util/ReaderInputStream
- How to Solve [error] malformed \uxxxx encoding Error
- [Solved] CMake error: error in configuration process, project files may be invalid
- Flash back problem when Android studio plays music in sdcard through intent
- IDEA generates Spring Boot project error: error: read timed out
- [Solved] Junit.test use error: log4j:WARN No appenders could be found for logger
- How to Solve golang test Error: # command-line-arguments [command-line-arguments.test]
- jitpack.io ERROR: No build artifacts found [How to Solve]
- hint: Updates were rejected because the remote contains work that you do To XXX
- How to Fix Spoolsv.exe Application Error
- [Solved] Keil Error: Error: Flash Download failed – “Cortex-M4“
- [Solved] ViewBinding Error: java.lang.ClassCastException: android.widget.RelativeLayout cannot be
- Error: Error building SqlSession [How to Solve]
- Kotlin gets the ID automatically error [How to Solve]
- How to Solve svn error: WC DB
- [Solved] ANSYS error: accelerations are exceeding internal limit