Click here to Skip to main content
13,597,485 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


1 bookmarked
Posted 27 Feb 2013
Licenced CPOL

Solution: The import javax.servlet.ServletRegistration cannot be resolved

, 27 Feb 2013
Rate this:
Please Sign up or sign in to vote.
Resoled using a simple Maven dependency.


This tip gives explains how to fix this error: import javax.servlet.ServletRegistration.Dynamic cannot be found.


I downloaded spring-mvc-chat from but when trying to import some code parts, got an irritating import error:  

import javax.servlet.ServletRegistration.Dynamic cannot be found 

Using the code 

The problem was a missing Maven dependency:



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Or (David) Berkovitch
Architect ENGetica
Israel Israel
A Computers Engineer with accumulate 10 years of experience in varying software and business fields. Natural Entrepreneur. Technology and business enthusiast.

You may also be interested in...


Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web03 | 2.8.180621.3 | Last Updated 27 Feb 2013
Article Copyright 2013 by Or (David) Berkovitch
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid