I build a small servlet with Idea and tomcat. Initally the project started out with what looks like maven so I removed the iml file and dropped in a build.gradle which looks like:
apply plugin: 'groovy’
apply plugin: 'java’
apply plugin: 'idea’
apply plugin: 'application’
apply plugin: ‘war’
sourceCompatibility = 1.7
compile group: ‘com.fasterxml.jackson.core’, name: ‘jackson-databind’, version: ‘2.8.5’
The problem is that if I try to test this file tomcat seems to report that it starts ok:
24-Feb-2017 11:06:18.498 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 42 ms
24-Feb-2017 11:06:28.506 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Users\AlGrant\Documents\apache-tomcat-8.5.4\webapps\manager
24-Feb-2017 11:06:28.891 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Users\AlGrant\Documents\apache-tomcat-8.5.4\webapps\manager has finished in 369 ms
But if I try to browse to localhost:8080 I get the google chrome page not found (not the usual tomcat page not found).
I am pretty new to all this stuff and not sure whether my issue lies with my idea project setup or the build.gradle.
Any help appreciated.