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:
- How to Solve Springmvc Error: org.springframework.web.servlet.DispatcherServlet
- [Solved] Groovy Project Compile Error: java.lang.NoClassDefFoundError: org/apache/tools/ant/util/ReaderInputStream
- [Solved] swagger3 Error: org.springframework.context.ApplicationContextException: Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException
- [Solved] java.lang.ClassNotFoundException: org.apache.ibatis.session.SqlSession
- [Maven] Pom.xml error: Cannot detect Web Project version.
- [Solved] SpringBoot Project Start Error: No bean named ‘org.springframework.context.xxxxx.importRegistry‘ available
- [Maven Error] Exception in thread “main” java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0
- [Solved] Caused by: java.lang.ClassNotFoundException: org.apache.flink.api.common.typeinfo.TypeInformation
- JSP web.xml file header web app error [How to Solve]
- Hive Error: FAILED: RuntimeException Error loading hooks(hive.exec.post.hooks): java.lang.ClassNotFoundException: org.apache.atlas.hive.hook.HiveHook
- [Solved] java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/util/ByteArrayBuffer
- Java.lang.AbstractMethodError: org.mybatis.spring.transaction.SpringManagedTransaction.getTimeout()Ljava/lang/Integer; error resolution
- Prompt unknown error in pom.xml of Maven project
- [Solved] Bat starts springboot project error: ERROR org.springframework.boot.SpringApplication -Application run failed
- [Solved] habse Start Error: Error: Could not find or load main class org.apache.hadoop.hbase.util.GetJavaProperty
- [Solved] Illegal access: this web application instance has been stopped already
- SpringBoot Access Clickhouse Error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘jdbcConverter’ defined in class path resource [***.class]
- [Solved] presto Compile Error: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check
- Springboot Run Error: java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Handler
- Springboot package error: failed to execute goal org.apache.maven.plugins:maven-resources-plugin: 3.2.0…