After one afternoon, I finally completed the development environment of netbeans + JSF. Now we will record the problems and solutions during the tossing as follows .. :
1. Go to https://netbeans.org/downloads/ to download netbeans-7.3-javaee-linux.sh
2. Add executable permissions to the netbeans-7.3-javaee-linux.sh
Execute chmod + x netbeans-7.3-javaee-linux.sh
3. Execute sudo./netbeans-7.3-javaee-linux.sh
Note: if you do not use the root permission, the installation will fail. A large number of permission denied error messages can be found in the log file.
4. Change the file owner and add permissions to the current user (My name is Bruce ).
Switch to the netbeans installation directory and execute:
Sudo chown Bruce *-R
Chmod + W *-R
Note: If you select to install glassfish when installing netbeans, you must also perform the above steps in the newly installed glassfish directory.
When you start glassfish for the first time in netbeans, a dialog box may pop up asking you to enter the user/password. enter Admin admin.