Spring Boot Rest Sample does not work on my system -


i have downloaded zip files getting started guide "building restful web service."

however not able build (mvn package) on system. getting following error messages while maven tries run hellocontrollertest

negative matches: -----------------     activemqautoconfiguration did not match       - required @conditionalonclass classes not found: javax.jms.connectionfactory,org.apache.activemq.activemqconnectionfactory (onclasscondition)     aopautoconfiguration did not match       - required @conditionalonclass classes not found: org.aspectj.lang.annotation.aspect,org.aspectj.lang.reflect.advice (onclasscondition)     artemisautoconfiguration did not match       - required @conditionalonclass classes not found: javax.jms.connectionfactory,org.apache.activemq.artemis.jms.client.activemqconnectionfactory (onclasscondition)     auditautoconfiguration#authenticationauditlistener did not match       - required @conditionalonclass classes not found: org.springframework.security.authentication.event.abstractauthenticationevent (onclasscondition)     auditautoconfiguration#authorizationauditlistener did not match       - required @conditionalonclass classes not found: org.springframework.security.access.event.abstractauthorizationevent (onclasscondition)     batchautoconfiguration did not match       - required @conditionalonclass classes not found: org.springframework.batch.core.launch.joblauncher,org.springframework.jdbc.core.jdbcoperations (onclasscondition)     cacheautoconfiguration did not match       - @conditionalonclass classes found: org.springframework.cache.cachemanager (onclasscondition)       - @conditionalonbean (types: org.springframework.cache.interceptor.cacheaspectsupport; searchstrategy: all) found no beans (onbeancondition)     cacheautoconfiguration.cachemanagerjpadependencyconfiguration did not match       - required @conditionalonclass classes not found: org.springframework.orm.jpa.localcontainerentitymanagerfactorybean (onclasscondition)       - ancestor 'org.springframework.boot.autoconfigure.cache.cacheautoconfiguration' did not match (conditionevaluationreport.ancestorsmatchedcondition)     cachestatisticsautoconfiguration did not match       - @conditionalonbean (types: org.springframework.cache.cachemanager; searchstrategy: all) found no beans (onbeancondition)     cachestatisticsautoconfiguration.caffeinecachestatisticsproviderconfiguration did not match       - required @conditionalonclass classes not found: com.github.benmanes.caffeine.cache.caffeine,org.springframework.cache.caffeine.caffeinecachemanager (onclasscondition)       - ancestor 'org.springframework.boot.actuate.autoconfigure.cachestatisticsautoconfiguration' did not match (conditionevaluationreport.ancestorsmatchedcondition)     cachestatisticsautoconfiguration.concurrentmapcachestatisticsconfiguration did not match       - @conditionalonclass classes found: org.springframework.cache.concurrent.concurrentmapcache (onclasscondition)       - ancestor 'org.springframework.boot.actuate.autoconfigure.cachestatisticsautoconfiguration' did not match (conditionevaluationreport.ancestorsmatchedcondition)     cachestatisticsautoconfiguration.ehcachecachestatisticsproviderconfiguration did not match       - required @conditionalonclass classes not found: org.springframework.cache.ehcache.ehcachecache,net.sf.ehcache.ehcache,net.sf.ehcache.statistics.statisticsgateway (onclasscondition)       - ancestor 'org.springframework.boot.actuate.autoconfigure.cachestatisticsautoconfiguration' did not match (conditionevaluationreport.ancestorsmatchedcondition)     cachestatisticsautoconfiguration.guavacachestatisticsconfiguration did not match       - required @conditionalonclass classes not found: com.google.common.cache.cache,org.springframework.cache.guava.guavacache (onclasscondition)       - ancestor 'org.springframework.boot.actuate.autoconfigure.cachestatisticsautoconfiguration' did not match (conditionevaluationreport.ancestorsmatchedcondition)     cachestatisticsautoconfiguration.hazelcastcachestatisticsconfiguration did not match       - required @conditionalonclass classes not found: com.hazelcast.core.imap,com.hazelcast.spring.cache.hazelcastcache (onclasscondition)       - ancestor 'org.springframework.boot.actuate.autoconfigure.cachestatisticsautoconfiguration' did not match (conditionevaluationreport.ancestorsmatchedcondition)     cachestatisticsautoconfiguration.infinispancachestatisticsproviderconfiguration did not match       - required @conditionalonclass classes not found: org.infinispan.spring.provider.springcache (onclasscondition)       - ancestor 'org.springframework.boot.actuate.autoconfigure.cachestatisticsautoconfiguration' did not match (conditionevaluationreport.ancestorsmatchedcondition)     cachestatisticsautoconfiguration.jcachecachestatisticsproviderconfiguration did not match       - required @conditionalonclass classes not found: javax.cache.caching,org.springframework.cache.jcache.jcachecache (onclasscondition)       - ancestor 'org.springframework.boot.actuate.autoconfigure.cachestatisticsautoconfiguration' did not match (conditionevaluationreport.ancestorsmatchedcondition)     cachestatisticsautoconfiguration.noopcachestatisticsconfiguration did not match       - @conditionalonclass classes found: org.springframework.cache.support.noopcachemanager (onclasscondition)       - ancestor 'org.springframework.boot.actuate.autoconfigure.cachestatisticsautoconfiguration' did not match (conditionevaluationreport.ancestorsmatchedcondition)     caffeinecacheconfiguration did not match       - required @conditionalonclass classes not found: com.github.benmanes.caffeine.cache.caffeine,org.springframework.cache.caffeine.caffeinecachemanager (onclasscondition) 

i deleted tests , tried run app (mvn spring-boot:run). getting following back:

2016-09-02 12:13:00.959  info 14020 --- [           main] hello.application                        : starting application on myhost pid 14020 (c:\users\myuser\desktop\gs-spring-boot-master\comp lete\target\classes started myuser in c:\users\myuser\desktop\gs-spring-boot-master\complete) 2016-09-02 12:13:00.964  info 14020 --- [           main] hello.application       : no active profile set, falling default profiles: default 2016-09-02 12:13:01.080  info 14020 --- [           main] s.c.a.annotationconfigapplicationcontext : refreshing org.springframework.context.annotation.annotationconfigapplicationcontext@438b2516: star tup date [fri sep 02 12:13:01 cest 2016]; root of context hierarchy 2016-09-02 12:13:03.423  info 14020 --- [           main] o.s.j.e.a.annotationmbeanexporter        : registering beans jmx exposure on startup 2016-09-02 12:13:03.433  info 14020 --- [          main] o.s.c.support.defaultlifecycleprocessor  : starting beans in phase 0 let's inspect beans provided spring boot: 2016-09-02 12:13:03.563  info 14020 --- [           main] hello.application       : started application in 3.219 seconds (jvm running 8.376) [info] ------------------------------------------------------------------------ [info] build success [info] ------------------------------------------------------------------------ [info] total time: 7.018 s [info] finished at: 2016-09-02t12:13:03+02:00 [info] final memory: 36m/308m [info] ------------------------------------------------------------------------ 2016-09-02 12:13:03.888  info 14020 --- [       thread-1] s.c.a.annotationconfigapplicationcontext : closing org.springframework.context.annotation.annotationconfigapplicationcontext@438b2516: startup  date [fri sep 02 12:13:01 cest 2016]; root of context hierarchy 2016-09-02 12:13:03.892  info 14020 --- [       thread-1] o.s.c.support.defaultlifecycleprocessor  : stopping beans in phase 0 2016-09-02 12:13:03.895  info 14020 --- [       thread-1] o.s.j.e.a.annotationmbeanexporter        : unregistering jmx-exposed beans on shutdown 

i expect configembeddedwebapplicationcontext used. instead annotationconfigapplicationcontext used. there no tomcat start!

i using: maven 3.3.9 jdk 1.8 windows 7

any welcome. jörg

found solution. found corrupt tomcat.embed-core-8.5.4 dependency in local maven cache. deleted , retrieved dependency again. works.


Comments