I had a small breakthrough with supporting Gradle Web Projects. It is now possible to run a web application from NetBeans with a configured Application Server. There are restrictions though:
- The Application Server shall be a Glassfish
- The project shall have a WEB-INF/glassfish-web.xml with proper context root setup.
Due to some strange bugs/features in NetBeans, trying Tomcat results in NPE, deploying the application without glassfish-web.xml results that the application is always deployed in /WEB-INF context root.
The current solution actually try to deploy the war instead of an exploded directory. The absence of this exploded webapp makes NetBeans a bit cranky.