spring - receive "Injection of autowired dependencies failed" in SpringMVC Java based configuration -


i can't autowire repository, although have @componentscan annotation in configuration class. ide (intellij idea 2016.1.2) seems see it:

but there no green bean icon in repository file itself.enter image description here (not sure if should there, present when configured similar projects via xml configuration).

pom.xml

http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">

<modelversion>4.0.0</modelversion> <groupid>com.websystique.springmvc</groupid> <artifactid>springjavaconfigexample</artifactid> <packaging>war</packaging> <version>1.0.0</version> <name>springjavaconfigexample</name>  <properties>     <springframework.version>4.1.7.release</springframework.version>     <hibernate.version>4.3.10.final</hibernate.version>     <mysql.connector.version>5.1.31</mysql.connector.version>     <spring.data.version>1.3.0.release</spring.data.version>     <org.slf4j-version>1.7.5</org.slf4j-version> </properties>  <dependencies>     <!-- spring -->     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-core</artifactid>         <version>${springframework.version}</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-web</artifactid>         <version>${springframework.version}</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-webmvc</artifactid>         <version>${springframework.version}</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-tx</artifactid>         <version>${springframework.version}</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-orm</artifactid>         <version>${springframework.version}</version>     </dependency>      <!--spring data-->       <dependency>         <groupid>org.springframework.data</groupid>         <artifactid>spring-data-jpa</artifactid>         <version>${spring.data.version}</version>     </dependency>      <!-- hibernate -->     <dependency>         <groupid>org.hibernate</groupid>         <artifactid>hibernate-core</artifactid>         <version>${hibernate.version}</version>     </dependency>      <!-- jsr303 validation -->     <dependency>         <groupid>javax.validation</groupid>         <artifactid>validation-api</artifactid>         <version>1.1.0.final</version>     </dependency>     <dependency>         <groupid>org.hibernate</groupid>         <artifactid>hibernate-validator</artifactid>         <version>5.1.3.final</version>     </dependency>      <!-- mysql -->     <dependency>         <groupid>mysql</groupid>         <artifactid>mysql-connector-java</artifactid>         <version>${mysql.connector.version}</version>     </dependency>      <!-- servlet+jsp+jstl -->     <dependency>         <groupid>javax.servlet</groupid>         <artifactid>javax.servlet-api</artifactid>         <version>3.1.0</version>     </dependency>     <dependency>         <groupid>javax.servlet.jsp</groupid>         <artifactid>javax.servlet.jsp-api</artifactid>         <version>2.3.1</version>     </dependency>     <dependency>         <groupid>javax.servlet</groupid>         <artifactid>jstl</artifactid>         <version>1.2</version>     </dependency>      <!--slf4j-->      <dependency>         <groupid>org.slf4j</groupid>         <artifactid>slf4j-api</artifactid>         <version>${org.slf4j-version}</version>     </dependency>     <dependency>         <groupid>org.slf4j</groupid>         <artifactid>jcl-over-slf4j</artifactid>         <version>${org.slf4j-version}</version>         <scope>runtime</scope>     </dependency>      <dependency>         <groupid>org.slf4j</groupid>         <artifactid>slf4j-simple</artifactid>         <version>1.7.12</version>     </dependency>  </dependencies>  <build>     <pluginmanagement>         <plugins>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-compiler-plugin</artifactid>                 <version>3.2</version>                 <configuration>                     <source>1.7</source>                     <target>1.7</target>                 </configuration>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-war-plugin</artifactid>                 <version>2.4</version>                 <configuration>                     <warsourcedirectory>src/main/webapp</warsourcedirectory>                     <warname>springjavaconfigexample</warname>                     <failonmissingwebxml>false</failonmissingwebxml>                 </configuration>             </plugin>         </plugins>     </pluginmanagement>     <finalname>springjavaconfigexample</finalname> </build> 

stacktrace:

 "e:\it programs\apache tomcat\apache-tomcat-8.0.15\bin\catalina.bat" run [2016-06-01 01:21:46,436] artifact springjavaconfigexample:war: server not connected. deploy not available. using catalina_base:   "c:\users\kolos\.intellijidea2016.1\system\tomcat\unnamed_springjavaconfigexample_3" using catalina_home:   "e:\it programs\apache tomcat\apache-tomcat-8.0.15" using catalina_tmpdir: "e:\it programs\apache tomcat\apache-tomcat-8.0.15\temp" using jre_home:        "c:\program files\java\jdk1.7.0_71" using classpath:       "e:\it programs\apache tomcat\apache-tomcat-8.0.15\bin\bootstrap.jar;e:\it programs\apache tomcat\apache-tomcat-8.0.15\bin\tomcat-juli.jar" 01-jun-2016 13:21:47.730 info [main] org.apache.catalina.startup.versionloggerlistener.log server version:        apache tomcat/8.0.15 01-jun-2016 13:21:47.732 info [main] org.apache.catalina.startup.versionloggerlistener.log server built:          nov 2 2014 19:25:20 utc 01-jun-2016 13:21:47.732 info [main] org.apache.catalina.startup.versionloggerlistener.log server number:         8.0.15.0 01-jun-2016 13:21:47.732 info [main] org.apache.catalina.startup.versionloggerlistener.log os name:               windows 8.1 01-jun-2016 13:21:47.732 info [main] org.apache.catalina.startup.versionloggerlistener.log os version:            6.3 01-jun-2016 13:21:47.733 info [main] org.apache.catalina.startup.versionloggerlistener.log architecture:          amd64 01-jun-2016 13:21:47.733 info [main] org.apache.catalina.startup.versionloggerlistener.log java_home:             c:\program files\java\jdk1.7.0_71\jre 01-jun-2016 13:21:47.733 info [main] org.apache.catalina.startup.versionloggerlistener.log jvm version:           1.7.0_71-b14 01-jun-2016 13:21:47.733 info [main] org.apache.catalina.startup.versionloggerlistener.log jvm vendor:            oracle corporation 01-jun-2016 13:21:47.733 info [main] org.apache.catalina.startup.versionloggerlistener.log catalina_base:         c:\users\kolos\.intellijidea2016.1\system\tomcat\unnamed_springjavaconfigexample_3 01-jun-2016 13:21:47.733 info [main] org.apache.catalina.startup.versionloggerlistener.log catalina_home:         e:\it programs\apache tomcat\apache-tomcat-8.0.15 01-jun-2016 13:21:47.734 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -dcom.sun.management.jmxremote= 01-jun-2016 13:21:47.734 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -dcom.sun.management.jmxremote.port=1099 01-jun-2016 13:21:47.734 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -dcom.sun.management.jmxremote.ssl=false 01-jun-2016 13:21:47.735 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -dcom.sun.management.jmxremote.authenticate=false 01-jun-2016 13:21:47.735 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -djava.rmi.server.hostname=127.0.0.1 01-jun-2016 13:21:47.735 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -djava.util.logging.config.file=c:\users\kolos\.intellijidea2016.1\system\tomcat\unnamed_springjavaconfigexample_3\conf\logging.properties 01-jun-2016 13:21:47.735 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -djava.util.logging.manager=org.apache.juli.classloaderlogmanager 01-jun-2016 13:21:47.735 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -djava.endorsed.dirs=e:\it programs\apache tomcat\apache-tomcat-8.0.15\endorsed 01-jun-2016 13:21:47.735 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -dcatalina.base=c:\users\kolos\.intellijidea2016.1\system\tomcat\unnamed_springjavaconfigexample_3 01-jun-2016 13:21:47.736 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -dcatalina.home=e:\it programs\apache tomcat\apache-tomcat-8.0.15 01-jun-2016 13:21:47.736 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -djava.io.tmpdir=e:\it programs\apache tomcat\apache-tomcat-8.0.15\temp 01-jun-2016 13:21:47.736 info [main] org.apache.catalina.core.aprlifecyclelistener.lifecycleevent loaded apr based apache tomcat native library 1.1.32 using apr version 1.5.1. 01-jun-2016 13:21:47.736 info [main] org.apache.catalina.core.aprlifecyclelistener.lifecycleevent apr capabilities: ipv6 [true], sendfile [true], accept filters [false], random [true]. 01-jun-2016 13:21:48.581 info [main] org.apache.catalina.core.aprlifecyclelistener.initializessl openssl initialized (openssl 1.0.1j 15 oct 2014) 01-jun-2016 13:21:48.748 info [main] org.apache.coyote.abstractprotocol.init initializing protocolhandler ["http-apr-8080"] 01-jun-2016 13:21:48.764 info [main] org.apache.coyote.abstractprotocol.init initializing protocolhandler ["ajp-apr-8009"] 01-jun-2016 13:21:48.767 info [main] org.apache.catalina.startup.catalina.load initialization processed in 1693 ms 01-jun-2016 13:21:48.825 info [main] org.apache.catalina.core.standardservice.startinternal starting service catalina 01-jun-2016 13:21:48.825 info [main] org.apache.catalina.core.standardengine.startinternal starting servlet engine: apache tomcat/8.0.15 01-jun-2016 13:21:48.845 info [main] org.apache.coyote.abstractprotocol.start starting protocolhandler ["http-apr-8080"] 01-jun-2016 13:21:48.860 info [main] org.apache.coyote.abstractprotocol.start starting protocolhandler ["ajp-apr-8009"] 01-jun-2016 13:21:48.861 info [main] org.apache.catalina.startup.catalina.start server startup in 93 ms connected server [2016-06-01 01:21:49,075] artifact springjavaconfigexample:war: artifact being deployed, please wait... [rmi tcp connection(3)-127.0.0.1] info org.springframework.web.context.contextloader - root webapplicationcontext: initialization started [rmi tcp connection(3)-127.0.0.1] info org.springframework.web.context.support.annotationconfigwebapplicationcontext - refreshing root webapplicationcontext: startup date [wed jun 01 13:21:53 cest 2016]; root of context hierarchy [rmi tcp connection(3)-127.0.0.1] info org.springframework.web.context.support.annotationconfigwebapplicationcontext - registering annotated classes: [class com.websystique.springmvc.configuration.helloworldconfiguration] [rmi tcp connection(3)-127.0.0.1] warn org.springframework.web.context.support.annotationconfigwebapplicationcontext - exception encountered during context initialization - cancelling refresh attempt org.springframework.beans.factory.beancreationexception: error creating bean name 'maincontroller': injection of autowired dependencies failed; nested exception org.springframework.beans.factory.beancreationexception: not autowire field: com.websystique.springmvc.repo.processorrepository com.websystique.springmvc.controller.maincontroller.processorrepository; nested exception org.springframework.beans.factory.nosuchbeandefinitionexception: no qualifying bean of type [com.websystique.springmvc.repo.processorrepository] found dependency: expected @ least 1 bean qualifies autowire candidate dependency. dependency annotations: {@org.springframework.beans.factory.annotation.autowired(required=true)}     @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor.postprocesspropertyvalues(autowiredannotationbeanpostprocessor.java:334)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.populatebean(abstractautowirecapablebeanfactory.java:1210)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:537)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:476)     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:303)     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230)     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:299)     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:194)     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:755)     @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:757)     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:480)     @ org.springframework.web.context.contextloader.configureandrefreshwebapplicationcontext(contextloader.java:434)     @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:306)     @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:106)     @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4770)     @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5196)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)     @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:725)     @ org.apache.catalina.core.containerbase.addchild(containerbase.java:701)     @ org.apache.catalina.core.standardhost.addchild(standardhost.java:714)     @ org.apache.catalina.startup.hostconfig.manageapp(hostconfig.java:1585)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ org.apache.tomcat.util.modeler.basemodelmbean.invoke(basemodelmbean.java:300)     @ com.sun.jmx.interceptor.defaultmbeanserverinterceptor.invoke(defaultmbeanserverinterceptor.java:819)     @ com.sun.jmx.mbeanserver.jmxmbeanserver.invoke(jmxmbeanserver.java:801)     @ org.apache.catalina.mbeans.mbeanfactory.createstandardcontext(mbeanfactory.java:463)     @ org.apache.catalina.mbeans.mbeanfactory.createstandardcontext(mbeanfactory.java:413)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ org.apache.tomcat.util.modeler.basemodelmbean.invoke(basemodelmbean.java:300)     @ com.sun.jmx.interceptor.defaultmbeanserverinterceptor.invoke(defaultmbeanserverinterceptor.java:819)     @ com.sun.jmx.mbeanserver.jmxmbeanserver.invoke(jmxmbeanserver.java:801)     @ javax.management.remote.rmi.rmiconnectionimpl.dooperation(rmiconnectionimpl.java:1487)     @ javax.management.remote.rmi.rmiconnectionimpl.access$300(rmiconnectionimpl.java:97)     @ javax.management.remote.rmi.rmiconnectionimpl$privilegedoperation.run(rmiconnectionimpl.java:1328)     @ javax.management.remote.rmi.rmiconnectionimpl.doprivilegedoperation(rmiconnectionimpl.java:1420)     @ javax.management.remote.rmi.rmiconnectionimpl.invoke(rmiconnectionimpl.java:848)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ sun.rmi.server.unicastserverref.dispatch(unicastserverref.java:322)     @ sun.rmi.transport.transport$1.run(transport.java:177)     @ sun.rmi.transport.transport$1.run(transport.java:174)     @ java.security.accesscontroller.doprivileged(native method)     @ sun.rmi.transport.transport.servicecall(transport.java:173)     @ sun.rmi.transport.tcp.tcptransport.handlemessages(tcptransport.java:556)     @ sun.rmi.transport.tcp.tcptransport$connectionhandler.run0(tcptransport.java:811)     @ sun.rmi.transport.tcp.tcptransport$connectionhandler.run(tcptransport.java:670)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)     @ java.lang.thread.run(thread.java:745) caused by: org.springframework.beans.factory.beancreationexception: not autowire field: com.websystique.springmvc.repo.processorrepository com.websystique.springmvc.controller.maincontroller.processorrepository; nested exception org.springframework.beans.factory.nosuchbeandefinitionexception: no qualifying bean of type [com.websystique.springmvc.repo.processorrepository] found dependency: expected @ least 1 bean qualifies autowire candidate dependency. dependency annotations: {@org.springframework.beans.factory.annotation.autowired(required=true)}     @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor$autowiredfieldelement.inject(autowiredannotationbeanpostprocessor.java:561)     @ org.springframework.beans.factory.annotation.injectionmetadata.inject(injectionmetadata.java:88)     @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor.postprocesspropertyvalues(autowiredannotationbeanpostprocessor.java:331)     ... 56 more caused by: org.springframework.beans.factory.nosuchbeandefinitionexception: no qualifying bean of type [com.websystique.springmvc.repo.processorrepository] found dependency: expected @ least 1 bean qualifies autowire candidate dependency. dependency annotations: {@org.springframework.beans.factory.annotation.autowired(required=true)}     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.raisenosuchbeandefinitionexception(defaultlistablebeanfactory.java:1301)     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.doresolvedependency(defaultlistablebeanfactory.java:1047)     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.resolvedependency(defaultlistablebeanfactory.java:942)     @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor$autowiredfieldelement.inject(autowiredannotationbeanpostprocessor.java:533)     ... 58 more [rmi tcp connection(3)-127.0.0.1] error org.springframework.web.context.contextloader - context initialization failed org.springframework.beans.factory.beancreationexception: error creating bean name 'maincontroller': injection of autowired dependencies failed; nested exception org.springframework.beans.factory.beancreationexception: not autowire field: com.websystique.springmvc.repo.processorrepository com.websystique.springmvc.controller.maincontroller.processorrepository; nested exception org.springframework.beans.factory.nosuchbeandefinitionexception: no qualifying bean of type [com.websystique.springmvc.repo.processorrepository] found dependency: expected @ least 1 bean qualifies autowire candidate dependency. dependency annotations: {@org.springframework.beans.factory.annotation.autowired(required=true)}     @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor.postprocesspropertyvalues(autowiredannotationbeanpostprocessor.java:334)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.populatebean(abstractautowirecapablebeanfactory.java:1210)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:537)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:476)     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:303)     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230)     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:299)     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:194)     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:755)     @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:757)     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:480)     @ org.springframework.web.context.contextloader.configureandrefreshwebapplicationcontext(contextloader.java:434)     @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:306)     @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:106)     @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4770)     @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5196)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)     @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:725)     @ org.apache.catalina.core.containerbase.addchild(containerbase.java:701)     @ org.apache.catalina.core.standardhost.addchild(standardhost.java:714)     @ org.apache.catalina.startup.hostconfig.manageapp(hostconfig.java:1585)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ org.apache.tomcat.util.modeler.basemodelmbean.invoke(basemodelmbean.java:300)     @ com.sun.jmx.interceptor.defaultmbeanserverinterceptor.invoke(defaultmbeanserverinterceptor.java:819)     @ com.sun.jmx.mbeanserver.jmxmbeanserver.invoke(jmxmbeanserver.java:801)     @ org.apache.catalina.mbeans.mbeanfactory.createstandardcontext(mbeanfactory.java:463)     @ org.apache.catalina.mbeans.mbeanfactory.createstandardcontext(mbeanfactory.java:413)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ org.apache.tomcat.util.modeler.basemodelmbean.invoke(basemodelmbean.java:300)     @ com.sun.jmx.interceptor.defaultmbeanserverinterceptor.invoke(defaultmbeanserverinterceptor.java:819)     @ com.sun.jmx.mbeanserver.jmxmbeanserver.invoke(jmxmbeanserver.java:801)     @ javax.management.remote.rmi.rmiconnectionimpl.dooperation(rmiconnectionimpl.java:1487)     @ javax.management.remote.rmi.rmiconnectionimpl.access$300(rmiconnectionimpl.java:97)     @ javax.management.remote.rmi.rmiconnectionimpl$privilegedoperation.run(rmiconnectionimpl.java:1328)     @ javax.management.remote.rmi.rmiconnectionimpl.doprivilegedoperation(rmiconnectionimpl.java:1420)     @ javax.management.remote.rmi.rmiconnectionimpl.invoke(rmiconnectionimpl.java:848)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ sun.rmi.server.unicastserverref.dispatch(unicastserverref.java:322)     @ sun.rmi.transport.transport$1.run(transport.java:177)     @ sun.rmi.transport.transport$1.run(transport.java:174)     @ java.security.accesscontroller.doprivileged(native method)     @ sun.rmi.transport.transport.servicecall(transport.java:173)     @ sun.rmi.transport.tcp.tcptransport.handlemessages(tcptransport.java:556)     @ sun.rmi.transport.tcp.tcptransport$connectionhandler.run0(tcptransport.java:811)     @ sun.rmi.transport.tcp.tcptransport$connectionhandler.run(tcptransport.java:670)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)     @ java.lang.thread.run(thread.java:745) caused by: org.springframework.beans.factory.beancreationexception: not autowire field: com.websystique.springmvc.repo.processorrepository com.websystique.springmvc.controller.maincontroller.processorrepository; nested exception org.springframework.beans.factory.nosuchbeandefinitionexception: no qualifying bean of type [com.websystique.springmvc.repo.processorrepository] found dependency: expected @ least 1 bean qualifies autowire candidate dependency. dependency annotations: {@org.springframework.beans.factory.annotation.autowired(required=true)}     @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor$autowiredfieldelement.inject(autowiredannotationbeanpostprocessor.java:561)     @ org.springframework.beans.factory.annotation.injectionmetadata.inject(injectionmetadata.java:88)     @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor.postprocesspropertyvalues(autowiredannotationbeanpostprocessor.java:331)     ... 56 more caused by: org.springframework.beans.factory.nosuchbeandefinitionexception: no qualifying bean of type [com.websystique.springmvc.repo.processorrepository] found dependency: expected @ least 1 bean qualifies autowire candidate dependency. dependency annotations: {@org.springframework.beans.factory.annotation.autowired(required=true)}     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.raisenosuchbeandefinitionexception(defaultlistablebeanfactory.java:1301)     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.doresolvedependency(defaultlistablebeanfactory.java:1047)     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.resolvedependency(defaultlistablebeanfactory.java:942)     @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor$autowiredfieldelement.inject(autowiredannotationbeanpostprocessor.java:533)     ... 58 more 01-jun-2016 13:21:55.314 severe [rmi tcp connection(3)-127.0.0.1] org.apache.catalina.core.standardcontext.startinternal error listenerstart 01-jun-2016 13:21:55.316 severe [rmi tcp connection(3)-127.0.0.1] org.apache.catalina.core.standardcontext.startinternal context [] startup failed due previous errors [2016-06-01 01:21:55,341] artifact springjavaconfigexample:war: error during artifact deployment. see server log details. 01-jun-2016 13:21:58.847 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deploying web application directory e:\it programs\apache tomcat\apache-tomcat-8.0.15\webapps\manager 01-jun-2016 13:21:59.103 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deployment of web application directory e:\it programs\apache tomcat\apache-tomcat-8.0.15\webapps\manager has finished in 256 ms  

(temporary github link full project) https://github.com/kolos181/springmvcjavaconfigonlinehardwarestoreexample

i cloned project , found problem is.

spring data jpa allows define repository interfaces, , automatically generate implementations them @ compile time (thanks annotation processors). work, need use @enablejparepositories annotation :

@configuration @enablewebmvc @componentscan(basepackages = "com.websystique.springmvc") @enablejparepositories(basepackages = "com.websystique.springmvc") public class helloworldconfiguration {     ... } 

with annotation, repositories found , injected other beans (like maincontroller).

the webapp still won't start because jpa repositories expect find beans of type entitymanager , transactionmanager, you'll have provide, let's save question :)


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo