Powered by Blogger.

SEVERE: Servlet [Controller] in web application [/myfirst-mvc-project] threw load() exception

>> Thursday, September 30, 2021

I have got the below error while running my First Spring Web MVC application using Tomcat Server.

The error log in the Console is: 


 INFO: Marking servlet [dad-frontController] as unavailable

Sep 30, 2021 10:34:12 PM org.apache.catalina.core.StandardContext loadOnStartup

SEVERE: Servlet [dad-frontController] in web application [/myfirst-mvc-project] threw load() exception

java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet


cvc-id.3: A field of identity constraint 'web-app-servlet-name-uniqueness' matched element 'web-app', but this element does not have a simple type.

 The above error will occur in your web.xml while writing Servlet Code or Spring WebMVC code. 

The Error should be

 cvc-id.3: A field of identity constraint 'web-app-servlet-name-uniqueness' matched element 'web-app', but this element does not have a simple type.

Related Posts Plugin for WordPress, Blogger...
© javabynataraj.blogspot.com from 2009 - 2022. All rights reserved.