I have a VPS on DigitalOcean I try to deploy an app to. I have Tomcat and Maven installed there and I have copied the local
.war file to
/tomcat/webapps. After restart the
.war gets unpackaged fine.
However, when I try to make use of some servlets I get
javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/json/JSONObject error, meaning that even though I have a
pom.xml file with needed dependency:
<!-- https://mvnrepository.com/artifact/org.json/json --> <dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20180813</version> </dependency>
It wasn’t used during the deploy.
How should I proceed? Is there a way to download all dependencies using PuTTy?