This exception is raised when there are multiple LocationAwareLogger
class with different version in your classpath. You can simply do a grep -R LocationAwareLogger *.jar
in your lib directory and figure out which jar containing the class. Then you can exclude it in your pom.xml
.
EDIT:
I have downloaded your repo and installed it on my machine. After I ran a grep
command I got following outputs:
eric@localhost:hbase-book$ grep -R 'org/slf4j/spi/LocationAwareLogger' hush/target/hush/WEB-INF/lib/*.jar
Binary file hush/target/hush/WEB-INF/lib/slf4j-api-1.6.4.jar matches
eric@localhost:hbase-book$ grep -R 'org/slf4j/LoggerFactory' hush/target/hush/WEB-INF/lib/*.jar
Binary file hush/target/hush/WEB-INF/lib/slf4j-api-1.6.4.jar matches
It looks like you have not excluded slf4j
completely by using the wrong groupId
/artifactId
combination. You need to update your pom and test again.
Note the logging library version contained in jetty might be conflict with hbase, there are no general solution, you need to figure out which version to use and exclude the other.