Start error in maven web project java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener

Environment: Groovy/Grails Tool Suite 3.1.0.RELEASE ( BASED ON ECLIPSE JUNO 3.8.1 ), JDK1.6, Maven3.05, Tomcat6

wrong description:

SEVERE: Error configuring application listener of class org.springframework.web.util.Log4jConfigListener
java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener

Problem resolution:

All dependencies (jdk/jar/classes) in the Maven project are managed by it. So if it is determined that the package or file (org.springframework.web.util.Log4jConfigListener) does exist in the project, it must be due to the fact that the project does not add a maven dependency.

solution:

ctrl+Enter error project->Deployment Assembly->Add->Java buid path entries->Next->Maven Dependencies

Clear!

At this time, there are more sub-nodes spring-web-3.2.3.RELEASE.jar under the related project module in the Servers module (the package where the Log4jConfigListener class configured in web.xml is located)

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *