org.springframework.beans.factory.UnsatisfiedDependencyException, java.lang.Error: нерешенные проблемы компиляции

Может ли кто-нибудь сказать мне, почему эта ошибка происходит? На самом деле я не могу понять, с чего начать ее решать.

Nov 19, 2016 10:20:30 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'accessDeniedController' defined in file [D:\java-git-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\wps\WEB-INF\classes\controller\AccessDeniedController.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'wpsManager' defined in ServletContext resource [/WEB-INF/classes/wpsContext.xml]: Cannot resolve reference to bean 'passwordManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'passwordManager' defined in ServletContext resource [/WEB-INF/classes/userContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.greytip.wps.service.impl.PasswordManagerImpl]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems: 
    The import org.springframework.security.context.SecurityContext cannot be resolved
    The import org.springframework.security.context.SecurityContextHolder cannot be resolved
    SecurityContext cannot be resolved to a type
    SecurityContextHolder cannot be resolved
;

person zeji    schedule 19.11.2016    source источник


Ответы (1)


Базовое исключение, вызвавшее массивный каскад исключений, было

java.lang.Error: Unresolved compilation problems: 

Это означает, что один из ваших java-файлов имел неверный синтаксис и сообщение об ошибке компилятора и не смог успешно скомпилироваться. Вероятно, вам следует пересобрать весь проект и проверить все исходники на наличие ошибок компиляции. Класс с ошибкой скорее всего

com.greytip.wps.service.impl.PasswordManagerImpl
person Jim Garrison    schedule 19.11.2016