Eclipse and Tomcat start up error – Error configuring application listener

Since it is now the second time I have encountered this problem while starting up Tomcat, I thought I would write down the solution so I actually remember it.

First of all, here is the error I received when starting up a Tomcat 6 server from within Eclipse:

Jan 29, 2013 12:27:39 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class com.wall.steve.infrastructure.logging.LoggingInitializerServletContextListener
java.lang.ClassNotFoundException: com.wall.steve.infrastructure.logging.LoggingInitializerServletContextListener

       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
       at org.apache.catalina.core.StandardService.start(StandardService.java:525)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jan 29, 2013 12:27:39 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContext
       at java.lang.Class.getDeclaredConstructors0(Native Method)
       at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
       at java.lang.Class.getConstructor0(Class.java:2699)
       at java.lang.Class.newInstance0(Class.java:326)
       at java.lang.Class.newInstance(Class.java:308)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4150)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
       at org.apache.catalina.core.StandardService.start(StandardService.java:525)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

To fix the issue, in Eclipse’s Servers view, right click on the server you are trying to start and choose “Clean…”.

Once that completes, re-start your server and the problem should go away.

Advertisements

About stevewall123

I am a Lead Software Engineer in Minneapolis working for Thomson Reuters. I am currently working on projects using Java, JavaScript, Spring, Drools, Hazelcast, Liquibase and Tomcat. Previously, I used C#, GWT, Grails, Groovy, JMS and JBoss Drools Guvnor. In the past I have worked on projects using J2EE, Swing, Webwork, Hibernate, Spring, Spring-WS, JMS, JUnit and Ant.
This entry was posted in Tomcat and tagged , . Bookmark the permalink.

9 Responses to Eclipse and Tomcat start up error – Error configuring application listener

  1. Anon says:

    Thanks for share it, i had the same problem.

  2. Jaya says:

    Thanks… saved me from and after much frustration 🙂

  3. Rana says:

    I tried clean and restarted the server, am still seeing the same error.(FYI am using Eclipse kepler)

  4. Jim Richards says:

    Brilliant! I was banging my head against the wall for this as well. No amount of googling resolved it until this site.

  5. Apurva Singh says:

    Me too. But it keeps reappearing intermittently. And it started today. All I did was close project on Friday, and opened today. Otherwise for months everything was ok. Weird man.

  6. Ananth says:

    Me too.This helped me a lot.
    Thanks

  7. bobbymartin says:

    You fixed my problem, too. Thanks!

  8. Alexander Collins says:

    Thanks! Still very useful information! (and with Tomcat 8.0)

  9. sravan says:

    I was banging my head against the wall,
    Thanx Bro.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s