스노우보드 참 좋아하는데 맨날 키보드 앞에만 있네

ERROR CONFIGURING APPLICATION LISTENER OF CLASS ORG.SPRINGFRAMEWORK.WEB.CONTEXT.CONTEXTLOADERLISTENER 본문

개발/Java, SpringFramework

ERROR CONFIGURING APPLICATION LISTENER OF CLASS ORG.SPRINGFRAMEWORK.WEB.CONTEXT.CONTEXTLOADERLISTENER

워너-비 2017. 11. 29. 10:28

Spring ERROR : CONFIGURING APPLICATION LISTENER OF CLASS [ORG.SPRINGFRAMEWORK.WEB.CONTEXT.CONTEXTLOADERLISTENER]




Tomcat 서버 실행 시 다음과 같은 에러 발생 !




















심각: Error configuring application listener of class [org.springframework.web.context.ContextLoaderListener]
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
   at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)
   at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
   at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:512)
   at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:493)
   at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:119)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4667)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
   at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
   at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1842)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)




해결방법


  1. Open the project's properties (e.g., right-click on the project's name in the project explorer and select "Properties").
  2. Select "Deployment Assembly".
  3. Click the "Add..." button on the right margin.
  4. Select "Java Build Path Entries" from the menu of Directive Type and click "Next".
  5. Select "Maven Dependencies" from the Java Build Path Entries menu and click "Finish".


혹은 ...


  1. Stop Tomcat (if it's running)
  2. Open the "Servers" view: Window > Show view > Other > Server > Servers
  3. Right Click on Tomcat Server > Clean Tomcat Work Directory.
  4. Right Click on Tomcat Server > Clean
  5. Restart the server


그래도 안되면, 톰켓서버를 삭제한 후 다시 생성하여 실행하면 된다.

Comments