Follow these steps to create a new web application project in NetBeans 6.7 IDE.
Select File->New Project.
Under Categories select Java Web, then under Projects select Web Application, and click Next.
Set the Project Name to firstcup.
Set the Project Location to tut-install/myexample, where tut-install is the location of the firstcup tutorial installation.
Click Next.
Select your Enterprise Server v3 instance from the Server menu.
Select Java EE 5 from the Java EE Version menu.
NetBeans 6.7 IDE doesn't currently support Java EE 6 as a Java EE Version, but our application uses Java EE 6 features, and will run on Enterprise Server v3, a Java EE 6 server.
Set Context Path to /firstcup and click Next.
Under Frameworks select Java Server Faces.
Under Servlet URL Pattern enter /firstcupWeb/* and click Finish.
Under Web Pages right-click WelcomeJSF.jsp, select Delete, then Yes.