Sunday, July 15, 2012

Configuring Tomcat 7 to work with Netbeans 7 on Windows 7

For a Java web app project Netbeans 7.x on Windows requires to know the location of Tomcat and the user name and password for server administrative access. The point is that while installing Tomcat within Netbeans installations on Windows I was not asked for any user name or password for Tomcat access.

Empirical finidng:
to make Tomcat work go to your Tomcat 'conf' folder (with my default installation path for Tomcat 7.0.27 it is located at C:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.27\conf) and open XML file "tomcat-users.xml".

Next, uncomment the lines



to get user 'tomcat' with password 'tomcat' - good enough security for your local developers installation. Next, enter this user /pwd into Netbeans dialog.

No comments: