Below is the simple steps to create and execute a sample Servlet Web Module with NB 6.5 for Glasfish V3 Server.
1. Go to http://bits.netbeans.org/download/trunk/nightly/latest/ download the latest 6.5 bits
2. Install the Netbean IDE - by default Glassfish V2 and V3 sevrers were bunbdled with NB 6.5 as described in the figure below:
3. Start Netbean IDE (you can start from command line or from the Desktop icon)
-If you click at Services tab > expand the Servers node, you should see Glassfish V3 prelude server listed there
-Right-click at Glassfish V3 node should allow you to start the server or view the server log or launch the admin GUI console as described in the figure below:
4. To deploy a simple Servlet Web Project, click Project Tab > from File menu, select New Project > expand Samples > Java Web > select Servlets Example > click Next > choose a location for the project > click Finish button
5. Change server run time to Glassfish V3 Prelude (by default it's set to V2), right-click at ServletsExample project > select Run > change server from Glassfish V2 to Glassfish V3 > click OK

6. Right-click at ServletExamples project > select Run menu
Glassfish V3 Server will be started (if not) > ServletExamples project is deployed and executed as shown in the figure below

