I am trying to perform some jUnit test in one of my servlets but whenever I try to run it I obtain a ExceptionInInitializerError. I\'ve read that this error is due to an except
Caused by: java.util.MissingResourceException: Can't find bundle for base name javax.servlet.LocalStrings, locale es_ES
That's the real error.
Your running tests are missing the servlet-api
dependency.
If you're using maven make sure this dependency is in your project:
javax.servlet
javax.servlet-api
3.1.0