1. Convert Maven Project into Dynamic Web Project:
Right click > Configure > Convert to Faceted Form
image
2. Add Maven dependencies into classpath:
Right click > Properties > Deployment Assembly > Add
> Java Build Path Entries > Maven Dependencies > Finish > Apply > Ok
This error will persist if Maven dependencies is not properly added to the project classpath
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
Note:
1. In case, some of JavaScrips files may cause JavaScript warnings, they can be turned off by excluding (ignoring) from Eclipse JavaScript plugin:
Right click > Properties > JavaScript > Include Path > Excluded > Edit
2. In case, Tomcat is used as run time server and this error is shown
Stacktrace:] with root cause org.apache.jasper.JasperException: Unable to compile class for JSP:...
The solution can be: add javax.servlet.jsp-api to Maven pom.
3. If this error is shown:
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
Solution: Project > Clean > Build All (may more than one time).
No comments:
Post a Comment