In my case, the necessary information made it possible to look at "It works!". the page that serves Tomcat by default in localhost:8080 .
He mentioned places CATALINA_HOME and CATALINA_BASE, which in my case, where:
CATALINA_HOME=/usr/share/tomcat7 CATALINA_BASE=/var/lib/tomcat7
Entering both paths in the Netbeans dialog box did the job.
NOTE. If you see the following warning, because you also need to add the CATALINA_BASE path, not just the home one.

You may have credential issues

To solve this new problem, simply add a new user to the specified file and try again.
This error occurs because the file can only be written by the Root user, and not by Netbeans. And because of this, it is not recommended to use the Create user if it does not exist parameter.
For more information, check out the Ubuntu server manual and this Netbeans thread .
Lucio
source share