If you're using maven, you could follow the instructions to do it
through the maven Tomcat plugin
https://mkyong.com/maven/how-to-deploy-maven-based-war-file-to-tomcat/
then on netbeans deploy using Run Maven -> Goals.. -> tomcat:deploy
I've achieved something similar using Ant if you're intereste
I currently have a need to deploy a web application to a remote Tomcat
server.
I believe there's an option to do so for Glassfish but I am wondering if
the same exists (or existed at some point) for Tomcat.
TIA,
Carl
--
Carl J. Mosca