java.lang.ClassNotFoundException: org.elasticsearch.common.transport.TransportAddress java.lang.ClassNotFoundException: org.elasticsearch.common.transport.TransportAddress elasticsearch elasticsearch

java.lang.ClassNotFoundException: org.elasticsearch.common.transport.TransportAddress


If you have not mentioned in your pom to include the dependencies, those jars won't be where you run your code. You should either put dependencies in your target jar or manually put hem into the containers lib folder. Check out maven packaging.


Just add <packaging>war</packaging> to your pom.xml and everything will be fine.