Before we can run the example, we need to start the GlassFish Server and deploy our JEE application in it:
- Start the GlassFish Server.
- Once it is started, right-click on the GlassFish Server in the Servers view and select the Add and Remove... menu option:
Figure 7.23: Adding a project to GlassFish for deployment
- Select the EAR project and click on the Add button. Then, click Finish.
The selected EAR application will be deployed in the server:
Figure 7.24: Application deployed in GlassFish
- To run the JSF page, course.xhtml ...