When I use mvn tomcat:deploy of tomcat-maven-plugin there is a 403 error:
Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.0:deploy (default-cli) on pr
I have spent over three days on Server returned HTTP response code: 400 while trying to deploy web application onto Tomcat Server 8.0 bundled with Netbeans. When I used mvn tomcat7:deploy
over command line, everything worked perfect, but no success through Netbeans IDE. I have set tomcat maven plugin in POM.xml
org.apache.tomcat.maven
tomcat7-maven-plugin
http://localhost:8080/manager/text
tomcat
plus server record in .m2/conf/settings.xml for Maven,
tomcat
admin
admin
even appropriate tomcat user in tomcat-users.xml
but still without success. The root cause was Proxy server used in our company and Netbeans settings. In Netbeans, go to Tools -> Options and on General tab, use Manual Proxy Settings instead of System Proxy Settings (even if System Proxy Settings works). It helped me and now I am able to deploy web app on Tomcat 8 from Netbeans directly. You can also set No Proxy when you are using only localhost server. Root cause for my trouble was bad proxy set in default web browser, which is the source for option System Proxy Settings.