Help does not work. I tried everything, I do not understand where the error is. I create a project like this:

creation proetka

Project structure:

structure

Further I configure Tomcat and I select artifact:

artifact

Tomcat is running and the Hello World page opens. Next, add to the project Spring MVC:

enter image description here

Next, I start the server and the error:

Artifact testrusxom: war: Error during artifact deployment.

Then I build the project with the install mavena and in the place of artifact for tomcat I select the folder with the war file:

enter image description here

I run Tomcat the same error:

Artifact testrusxom.war : Error during artifact deployment. See server log for details.

When entering http://localhost:8080 (separately, because the idea does not start automatically), error 404:

It’s not a problem.

The structure of the war:

enter image description here

There is an error in the logs:

org.apache.catalina.core.StandardContext.listenerStart Error Configuring Application [of org.springframework.web.context.ContextLoaderListener]

Help me figure out what I do not understand anymore.

1 answer 1

Error configuring application listener of class [org.springframework.web.context.ContextLoaderListener] java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

The error is that the org.springframework.web.context.ContextLoaderListener class org.springframework.web.context.ContextLoaderListener not found when trying to load a class.

Add the following library to the project dependencies:

 spring-web-4.3.18.RELEASE.jar 

It can be seen that the Spring MVC 4.3.18.RELEASE project library was downloaded, but it is apparently not connected depending and / or not added to the artifact.

  • Thank you downloaded! now running. - Igor Petrov
  • Everything worked! Then at some point it stopped opening the page again. Now I am doing anew, I am creating a project and connecting these dependencies here. Watch dependencies, and Tom gives such an error. Errors Watch .. - Igor Petrov
  • version changed, create a project from pom. - Roman C