The error happens after introducing the “org.springframework.data:spring-data-jpa:jar:1.9.6.RELEASE” dependency when running the web application under Tomcat. The solution comes from “here “.
The full exception stack trace looks like below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 2017-08-24 15:00:16,979 DEBUG org.springframework.context.event.EventListenerMethodProcessor.afterSingletonsInstantiated:85 - Could not resolve target class for bean with name 'org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0' java.lang.NoSuchMethodError: org.springframework.aop.framework.autoproxy.AutoProxyUtils.determineTargetClass(Lorg/springframework/beans/factory/config/ConfigurableListableBeanFactory;Ljava/lang/String;)Ljava/lang/Class; at org.springframework.context.event.EventListenerMethodProcessor.afterSingletonsInstantiated(EventListenerMethodProcessor.java:80) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:792) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:596) at org.apache.catalina.startup.HostConfig$DeployDescriptor .run(HostConfig.java:1805) at java.util.concurrent.Executors$RunnableAdapter .call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker .run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 2017-08-24 15:00:16,982 DEBUG org.springframework.context.event.EventListenerMethodProcessor.afterSingletonsInstantiated:85 - Could not resolve target class for bean with name 'org.springframework.aop.config.internalAutoProxyCreator' java.lang.NoSuchMethodError: org.springframework.aop.framework.autoproxy.AutoProxyUtils.determineTargetClass(Lorg/springframework/beans/factory/config/ConfigurableListableBeanFactory;Ljava/lang/String;)Ljava/lang/Class; at org.springframework.context.event.EventListenerMethodProcessor.afterSingletonsInstantiated(EventListenerMethodProcessor.java:80) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:792) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:596) at org.apache.catalina.startup.HostConfig$DeployDescriptor .run(HostConfig.java:1805) at java.util.concurrent.Executors$RunnableAdapter .call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker .run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
The “output” of running “mvn dependency:tree” in the previous project:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 [INFO] com.jcloud:zhike-web:war:1.0.0-SNAPSHOT [INFO] +- org.aspectj:aspectjrt:jar:1.8.9:compile [INFO] +- org.aspectj:aspectjweaver:jar:1.8.9:compile [INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.7.4:compile [INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.7.4:compile [INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.7.4:compile [INFO] +- javax.servlet:servlet-api:jar:2.5:provided [INFO] +- org.springframework:spring-test:jar:4.2.5.RELEASE:compile [INFO] +- org.springframework:spring-webmvc:jar:4.2.5.RELEASE:compile [INFO] | +- org.springframework:spring-beans:jar:4.2.5.RELEASE:compile [INFO] | +- org.springframework:spring-context:jar:4.2.5.RELEASE:compile [INFO] | +- org.springframework:spring-expression:jar:4.2.5.RELEASE:compile [INFO] | \- org.springframework:spring-web:jar:4.2.5.RELEASE:compile [INFO] +- org.springframework:spring-context-support:jar:4.2.5.RELEASE:compile [INFO] +- org.springframework:spring-tx:jar:4.2.5.RELEASE:compile [INFO] +- org.springframework:spring-core:jar:4.2.5.RELEASE:compile [INFO] | \- commons-logging:commons-logging:jar:1.2:compile [INFO] +- org.slf4j:slf4j-api:jar:1.7.25:compile [INFO] +- org.apache.hbase:hbase-client:jar:0.96.1.1-hadoop2:compile [INFO] | +- org.apache.hbase:hbase-common:jar:0.96.1.1-hadoop2:compile [INFO] | | +- commons-collections:commons-collections:jar:3.2.1:compile [INFO] | | \- log4j:log4j:jar:1.2.17:compile [INFO] | +- org.apache.hbase:hbase-protocol:jar:0.96.1.1-hadoop2:compile [INFO] | +- commons-codec:commons-codec:jar:1.7:compile [INFO] | +- commons-io:commons-io:jar:2.4:compile [INFO] | +- commons-lang:commons-lang:jar:2.6:compile [INFO] | +- com.google.guava:guava:jar:12.0.1:compile [INFO] | | \- com.google.code.findbugs:jsr305:jar:1.3.9:compile [INFO] | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile [INFO] | +- io.netty:netty:jar:3.6.6.Final:compile [INFO] | +- org.apache.zookeeper:zookeeper:jar:3.4.5:compile [INFO] | | \- org.slf4j:slf4j-log4j12:jar:1.6.1:compile [INFO] | +- org.cloudera.htrace:htrace-core:jar:2.01:compile [INFO] | | \- org.mortbay.jetty:jetty-util:jar:6.1.26:compile [INFO] | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.8.8:compile [INFO] | | \- org.codehaus.jackson:jackson-core-asl:jar:1.8.8:compile [INFO] | +- org.apache.hadoop:hadoop-auth:jar:2.2.0:compile [INFO] | +- org.apache.hadoop:hadoop-mapreduce-client-core:jar:2.2.0:compile [INFO] | | +- org.apache.hadoop:hadoop-yarn-common:jar:2.2.0:compile [INFO] | | | +- org.apache.hadoop:hadoop-yarn-api:jar:2.2.0:compile [INFO] | | | +- com.google.inject:guice:jar:3.0:compile [INFO] | | | | \- javax.inject:javax.inject:jar:1:compile [INFO] | | | +- com.sun.jersey:jersey-server:jar:1.9:compile [INFO] | | | | \- asm:asm:jar:3.1:compile [INFO] | | | +- com.sun.jersey:jersey-json:jar:1.9:compile [INFO] | | | | +- com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:compile [INFO] | | | | | \- javax.xml.bind:jaxb-api:jar:2.2.2:compile [INFO] | | | | | \- javax.activation:activation:jar:1.1:compile [INFO] | | | | +- org.codehaus.jackson:jackson-jaxrs:jar:1.8.3:compile [INFO] | | | | \- org.codehaus.jackson:jackson-xc:jar:1.8.3:compile [INFO] | | | \- com.sun.jersey.contribs:jersey-guice:jar:1.9:compile [INFO] | | +- org.apache.avro:avro:jar:1.7.4:compile [INFO] | | | +- com.thoughtworks.paranamer:paranamer:jar:2.3:compile [INFO] | | | \- org.apache.commons:commons-compress:jar:1.4.1:compile [INFO] | | | \- org.tukaani:xz:jar:1.0:compile [INFO] | | \- com.google.inject.extensions:guice-servlet:jar:3.0:compile [INFO] | +- org.apache.hadoop:hadoop-annotations:jar:2.2.0:compile [INFO] | | \- jdk.tools:jdk.tools:jar:1.6:system [INFO] | +- com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:compile [INFO] | \- junit:junit:jar:4.11:compile [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:compile [INFO] +- org.springframework.data:spring-data-jpa:jar:1.9.6.RELEASE:compile [INFO] | +- org.springframework.data:spring-data-commons:jar:1.11.6.RELEASE:compile [INFO] | +- org.springframework:spring-orm:jar:4.1.9.RELEASE:compile [INFO] | +- org.springframework:spring-aop:jar:4.1.9.RELEASE:compile [INFO] | | \- aopalliance:aopalliance:jar:1.0:compile [INFO] | \- org.slf4j:jcl-over-slf4j:jar:1.7.21:runtime [INFO] +- org.springframework.data:spring-data-hadoop:jar:2.3.0.RELEASE-hadoop26:compile [INFO] | +- org.springframework.data:spring-data-hadoop-core:jar:2.3.0.RELEASE-hadoop26:compile [INFO] | | +- org.apache.hadoop:hadoop-common:jar:2.6.0:compile [INFO] | | | +- commons-cli:commons-cli:jar:1.2:compile [INFO] | | | +- org.apache.commons:commons-math3:jar:3.1.1:compile [INFO] | | | +- xmlenc:xmlenc:jar:0.52:compile [INFO] | | | +- commons-httpclient:commons-httpclient:jar:3.1:compile [INFO] | | | +- commons-net:commons-net:jar:3.1:compile [INFO] | | | +- org.mortbay.jetty:jetty:jar:6.1.26:compile [INFO] | | | +- com.sun.jersey:jersey-core:jar:1.9:compile [INFO] | | | +- tomcat:jasper-compiler:jar:5.5.23:runtime [INFO] | | | +- tomcat:jasper-runtime:jar:5.5.23:compile [INFO] | | | +- javax.servlet.jsp:jsp-api:jar:2.1:compile [INFO] | | | +- commons-el:commons-el:jar:1.0:compile [INFO] | | | +- net.java.dev.jets3t:jets3t:jar:0.9.0:compile [INFO] | | | | +- org.apache.httpcomponents:httpclient:jar:4.1.2:compile [INFO] | | | | +- org.apache.httpcomponents:httpcore:jar:4.1.2:compile [INFO] | | | | \- com.jamesmurty.utils:java-xmlbuilder:jar:0.4:compile [INFO] | | | +- commons-configuration:commons-configuration:jar:1.6:compile [INFO] | | | | +- commons-digester:commons-digester:jar:1.8:compile [INFO] | | | | \- commons-beanutils:commons-beanutils:jar:1.8.0:compile [INFO] | | | +- com.jcraft:jsch:jar:0.1.42:compile [INFO] | | | +- org.apache.curator:curator-recipes:jar:2.6.0:compile [INFO] | | | \- org.htrace:htrace-core:jar:3.0.4:compile [INFO] | | +- org.apache.hadoop:hadoop-distcp:jar:2.6.0:compile [INFO] | | +- org.apache.hadoop:hadoop-hdfs:jar:2.6.0:compile [INFO] | | | +- commons-daemon:commons-daemon:jar:1.0.13:compile [INFO] | | | \- xerces:xercesImpl:jar:2.9.1:compile [INFO] | | | \- xml-apis:xml-apis:jar:1.3.04:compile [INFO] | | +- org.apache.hadoop:hadoop-streaming:jar:2.6.0:compile [INFO] | | \- org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:2.6.0:compile [INFO] | | +- org.apache.hadoop:hadoop-mapreduce-client-common:jar:2.6.0:compile [INFO] | | | +- org.apache.hadoop:hadoop-yarn-client:jar:2.6.0:compile [INFO] | | | \- org.apache.hadoop:hadoop-yarn-server-common:jar:2.6.0:compile [INFO] | | \- org.apache.hadoop:hadoop-mapreduce-client-shuffle:jar:2.6.0:compile [INFO] | | +- org.apache.hadoop:hadoop-yarn-server-nodemanager:jar:2.6.0:compile [INFO] | | | \- com.sun.jersey:jersey-client:jar:1.9:compile [INFO] | | \- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:compile [INFO] | +- org.springframework:spring-jdbc:jar:4.2.4.RELEASE:compile [INFO] | +- org.springframework.data:spring-data-hadoop-hive:jar:2.3.0.RELEASE-hadoop26:compile [INFO] | | \- org.springframework.batch:spring-batch-core:jar:3.0.6.RELEASE:compile [INFO] | | +- com.ibm.jbatch:com.ibm.jbatch-tck-spi:jar:1.0:compile [INFO] | | | \- javax.batch:javax.batch-api:jar:1.0:compile [INFO] | | +- com.thoughtworks.xstream:xstream:jar:1.4.7:compile [INFO] | | | +- xmlpull:xmlpull:jar:1.1.3.1:compile [INFO] | | | \- xpp3:xpp3_min:jar:1.1.4c:compile [INFO] | | +- org.codehaus.jettison:jettison:jar:1.2:compile [INFO] | | \- org.springframework.batch:spring-batch-infrastructure:jar:3.0.6.RELEASE:compile [INFO] | | \- org.springframework.retry:spring-retry:jar:1.1.0.RELEASE:compile [INFO] | +- org.springframework.data:spring-data-hadoop-batch:jar:2.3.0.RELEASE-hadoop26:compile [INFO] | +- org.springframework.data:spring-data-hadoop-hbase:jar:2.3.0.RELEASE-hadoop26:compile [INFO] | \- org.springframework.data:spring-data-hadoop-pig:jar:2.3.0.RELEASE-hadoop26:compile [INFO] +- commons-fileupload:commons-fileupload:jar:1.3.1:compile [INFO] +- redis.clients:jedis:jar:2.9.0:compile [INFO] | \- org.apache.commons:commons-pool2:jar:2.4.2:compile [INFO] +- com.alibaba:fastjson:jar:1.2.31:compile [INFO] +- org.apache.storm:storm-kafka:jar:0.9.5:compile [INFO] | \- org.apache.curator:curator-framework:jar:2.5.0:compile [INFO] | \- org.apache.curator:curator-client:jar:2.5.0:compile [INFO] +- org.apache.kafka:kafka_2.8.2:jar:0.8.1:compile [INFO] | +- org.scala-lang:scala-library:jar:2.8.2:compile [INFO] | +- com.yammer.metrics:metrics-annotation:jar:2.2.0:compile [INFO] | +- com.yammer.metrics:metrics-core:jar:2.2.0:compile [INFO] | +- org.xerial.snappy:snappy-java:jar:1.0.5:compile [INFO] | +- net.sf.jopt-simple:jopt-simple:jar:3.2:compile [INFO] | \- com.101tec:zkclient:jar:0.3:compile [INFO] \- com.google.code.gson:gson:jar:2.8.0:compile
Note the “org.springframework:spring-aop:jar:4.1.9.RELEASE:compile” line. Since there is no explicit dependency definition for “spring-aop”. A implicit version(“4.1.9.RELEASE”) is introduced by the “spring-data-jpa” dependency, which cannot work with Spring “4.2.5.RELEASE” version, the one is used in this project.
So the fix is to add the following dependency in the “pom.xml” file:
1 2 3 4 5 6 <dependency > <groupId > org.springframework</groupId > <artifactId > spring-aop</artifactId > <version > ${spring.version}</version > </dependency >
The “output” of running “mvn dependency:tree” in the updated project:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 [INFO] com.jcloud:zhike-web:war:1.0.0-SNAPSHOT [INFO] +- org.aspectj:aspectjrt:jar:1.8.9:compile [INFO] +- org.aspectj:aspectjweaver:jar:1.8.9:compile [INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.7.4:compile [INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.7.4:compile [INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.7.4:compile [INFO] +- javax.servlet:servlet-api:jar:2.5:provided [INFO] +- org.springframework:spring-test:jar:4.2.5.RELEASE:compile [INFO] +- org.springframework:spring-webmvc:jar:4.2.5.RELEASE:compile [INFO] | +- org.springframework:spring-beans:jar:4.2.5.RELEASE:compile [INFO] | +- org.springframework:spring-context:jar:4.2.5.RELEASE:compile [INFO] | +- org.springframework:spring-expression:jar:4.2.5.RELEASE:compile [INFO] | \- org.springframework:spring-web:jar:4.2.5.RELEASE:compile [INFO] +- org.springframework:spring-context-support:jar:4.2.5.RELEASE:compile [INFO] +- org.springframework:spring-tx:jar:4.2.5.RELEASE:compile [INFO] +- org.springframework:spring-core:jar:4.2.5.RELEASE:compile [INFO] | \- commons-logging:commons-logging:jar:1.2:compile [INFO] +- org.springframework:spring-aop:jar:4.2.5.RELEASE:compile [INFO] | \- aopalliance:aopalliance:jar:1.0:compile [INFO] +- org.slf4j:slf4j-api:jar:1.7.25:compile [INFO] +- org.apache.hbase:hbase-client:jar:0.96.1.1-hadoop2:compile [INFO] | +- org.apache.hbase:hbase-common:jar:0.96.1.1-hadoop2:compile [INFO] | | +- commons-collections:commons-collections:jar:3.2.1:compile [INFO] | | \- log4j:log4j:jar:1.2.17:compile [INFO] | +- org.apache.hbase:hbase-protocol:jar:0.96.1.1-hadoop2:compile [INFO] | +- commons-codec:commons-codec:jar:1.7:compile [INFO] | +- commons-io:commons-io:jar:2.4:compile [INFO] | +- commons-lang:commons-lang:jar:2.6:compile [INFO] | +- com.google.guava:guava:jar:12.0.1:compile [INFO] | | \- com.google.code.findbugs:jsr305:jar:1.3.9:compile [INFO] | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile [INFO] | +- io.netty:netty:jar:3.6.6.Final:compile [INFO] | +- org.apache.zookeeper:zookeeper:jar:3.4.5:compile [INFO] | | \- org.slf4j:slf4j-log4j12:jar:1.6.1:compile [INFO] | +- org.cloudera.htrace:htrace-core:jar:2.01:compile [INFO] | | \- org.mortbay.jetty:jetty-util:jar:6.1.26:compile [INFO] | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.8.8:compile [INFO] | | \- org.codehaus.jackson:jackson-core-asl:jar:1.8.8:compile [INFO] | +- org.apache.hadoop:hadoop-auth:jar:2.2.0:compile [INFO] | +- org.apache.hadoop:hadoop-mapreduce-client-core:jar:2.2.0:compile [INFO] | | +- org.apache.hadoop:hadoop-yarn-common:jar:2.2.0:compile [INFO] | | | +- org.apache.hadoop:hadoop-yarn-api:jar:2.2.0:compile [INFO] | | | +- com.google.inject:guice:jar:3.0:compile [INFO] | | | | \- javax.inject:javax.inject:jar:1:compile [INFO] | | | +- com.sun.jersey:jersey-server:jar:1.9:compile [INFO] | | | | \- asm:asm:jar:3.1:compile [INFO] | | | +- com.sun.jersey:jersey-json:jar:1.9:compile [INFO] | | | | +- com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:compile [INFO] | | | | | \- javax.xml.bind:jaxb-api:jar:2.2.2:compile [INFO] | | | | | \- javax.activation:activation:jar:1.1:compile [INFO] | | | | +- org.codehaus.jackson:jackson-jaxrs:jar:1.8.3:compile [INFO] | | | | \- org.codehaus.jackson:jackson-xc:jar:1.8.3:compile [INFO] | | | \- com.sun.jersey.contribs:jersey-guice:jar:1.9:compile [INFO] | | +- org.apache.avro:avro:jar:1.7.4:compile [INFO] | | | +- com.thoughtworks.paranamer:paranamer:jar:2.3:compile [INFO] | | | \- org.apache.commons:commons-compress:jar:1.4.1:compile [INFO] | | | \- org.tukaani:xz:jar:1.0:compile [INFO] | | \- com.google.inject.extensions:guice-servlet:jar:3.0:compile [INFO] | +- org.apache.hadoop:hadoop-annotations:jar:2.2.0:compile [INFO] | | \- jdk.tools:jdk.tools:jar:1.6:system [INFO] | +- com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:compile [INFO] | \- junit:junit:jar:4.11:compile [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:compile [INFO] +- org.springframework.data:spring-data-jpa:jar:1.9.6.RELEASE:compile [INFO] | +- org.springframework.data:spring-data-commons:jar:1.11.6.RELEASE:compile [INFO] | +- org.springframework:spring-orm:jar:4.1.9.RELEASE:compile [INFO] | \- org.slf4j:jcl-over-slf4j:jar:1.7.21:runtime [INFO] +- org.springframework.data:spring-data-hadoop:jar:2.3.0.RELEASE-hadoop26:compile [INFO] | +- org.springframework.data:spring-data-hadoop-core:jar:2.3.0.RELEASE-hadoop26:compile [INFO] | | +- org.apache.hadoop:hadoop-common:jar:2.6.0:compile [INFO] | | | +- commons-cli:commons-cli:jar:1.2:compile [INFO] | | | +- org.apache.commons:commons-math3:jar:3.1.1:compile [INFO] | | | +- xmlenc:xmlenc:jar:0.52:compile [INFO] | | | +- commons-httpclient:commons-httpclient:jar:3.1:compile [INFO] | | | +- commons-net:commons-net:jar:3.1:compile [INFO] | | | +- org.mortbay.jetty:jetty:jar:6.1.26:compile [INFO] | | | +- com.sun.jersey:jersey-core:jar:1.9:compile [INFO] | | | +- tomcat:jasper-compiler:jar:5.5.23:runtime [INFO] | | | +- tomcat:jasper-runtime:jar:5.5.23:compile [INFO] | | | +- javax.servlet.jsp:jsp-api:jar:2.1:compile [INFO] | | | +- commons-el:commons-el:jar:1.0:compile [INFO] | | | +- net.java.dev.jets3t:jets3t:jar:0.9.0:compile [INFO] | | | | +- org.apache.httpcomponents:httpclient:jar:4.1.2:compile [INFO] | | | | +- org.apache.httpcomponents:httpcore:jar:4.1.2:compile [INFO] | | | | \- com.jamesmurty.utils:java-xmlbuilder:jar:0.4:compile [INFO] | | | +- commons-configuration:commons-configuration:jar:1.6:compile [INFO] | | | | +- commons-digester:commons-digester:jar:1.8:compile [INFO] | | | | \- commons-beanutils:commons-beanutils:jar:1.8.0:compile [INFO] | | | +- com.jcraft:jsch:jar:0.1.42:compile [INFO] | | | +- org.apache.curator:curator-recipes:jar:2.6.0:compile [INFO] | | | \- org.htrace:htrace-core:jar:3.0.4:compile [INFO] | | +- org.apache.hadoop:hadoop-distcp:jar:2.6.0:compile [INFO] | | +- org.apache.hadoop:hadoop-hdfs:jar:2.6.0:compile [INFO] | | | +- commons-daemon:commons-daemon:jar:1.0.13:compile [INFO] | | | \- xerces:xercesImpl:jar:2.9.1:compile [INFO] | | | \- xml-apis:xml-apis:jar:1.3.04:compile [INFO] | | +- org.apache.hadoop:hadoop-streaming:jar:2.6.0:compile [INFO] | | \- org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:2.6.0:compile [INFO] | | +- org.apache.hadoop:hadoop-mapreduce-client-common:jar:2.6.0:compile [INFO] | | | +- org.apache.hadoop:hadoop-yarn-client:jar:2.6.0:compile [INFO] | | | \- org.apache.hadoop:hadoop-yarn-server-common:jar:2.6.0:compile [INFO] | | \- org.apache.hadoop:hadoop-mapreduce-client-shuffle:jar:2.6.0:compile [INFO] | | +- org.apache.hadoop:hadoop-yarn-server-nodemanager:jar:2.6.0:compile [INFO] | | | \- com.sun.jersey:jersey-client:jar:1.9:compile [INFO] | | \- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:compile [INFO] | +- org.springframework:spring-jdbc:jar:4.2.4.RELEASE:compile [INFO] | +- org.springframework.data:spring-data-hadoop-hive:jar:2.3.0.RELEASE-hadoop26:compile [INFO] | | \- org.springframework.batch:spring-batch-core:jar:3.0.6.RELEASE:compile [INFO] | | +- com.ibm.jbatch:com.ibm.jbatch-tck-spi:jar:1.0:compile [INFO] | | | \- javax.batch:javax.batch-api:jar:1.0:compile [INFO] | | +- com.thoughtworks.xstream:xstream:jar:1.4.7:compile [INFO] | | | +- xmlpull:xmlpull:jar:1.1.3.1:compile [INFO] | | | \- xpp3:xpp3_min:jar:1.1.4c:compile [INFO] | | +- org.codehaus.jettison:jettison:jar:1.2:compile [INFO] | | \- org.springframework.batch:spring-batch-infrastructure:jar:3.0.6.RELEASE:compile [INFO] | | \- org.springframework.retry:spring-retry:jar:1.1.0.RELEASE:compile [INFO] | +- org.springframework.data:spring-data-hadoop-batch:jar:2.3.0.RELEASE-hadoop26:compile [INFO] | +- org.springframework.data:spring-data-hadoop-hbase:jar:2.3.0.RELEASE-hadoop26:compile [INFO] | \- org.springframework.data:spring-data-hadoop-pig:jar:2.3.0.RELEASE-hadoop26:compile [INFO] +- commons-fileupload:commons-fileupload:jar:1.3.1:compile [INFO] +- redis.clients:jedis:jar:2.9.0:compile [INFO] | \- org.apache.commons:commons-pool2:jar:2.4.2:compile [INFO] +- com.alibaba:fastjson:jar:1.2.31:compile [INFO] +- org.apache.storm:storm-kafka:jar:0.9.5:compile [INFO] | \- org.apache.curator:curator-framework:jar:2.5.0:compile [INFO] | \- org.apache.curator:curator-client:jar:2.5.0:compile [INFO] +- org.apache.kafka:kafka_2.8.2:jar:0.8.1:compile [INFO] | +- org.scala-lang:scala-library:jar:2.8.2:compile [INFO] | +- com.yammer.metrics:metrics-annotation:jar:2.2.0:compile [INFO] | +- com.yammer.metrics:metrics-core:jar:2.2.0:compile [INFO] | +- org.xerial.snappy:snappy-java:jar:1.0.5:compile [INFO] | +- net.sf.jopt-simple:jopt-simple:jar:3.2:compile [INFO] | \- com.101tec:zkclient:jar:0.3:compile [INFO] \- com.google.code.gson:gson:jar:2.8.0:compile
Note the “org.springframework:spring-aop:jar:4.2.5.RELEASE:compile” line. And there is no implicit “spring-aop” jar introduced by the “spring-data-jpa” dependency anymore.
Now running the web application under Tomcat succeeds without the exception.