Java Reference
In-Depth Information
To Build and Deploy Duke's Tutoring in NetBeans IDE
Before You Begin
You must have already configured GlassFish Server as a Java EE server
in NetBeans IDE, as described in “ To Add GlassFish Server as a Server
in NetBeans IDE on page 40 .
1. From the File menu, choose Open Project.
2. In the Open Project dialog, navigate to:
tut-install /examples/case-studies/dukes-tutoring/
3. Select the dukes-tutoring-war folder.
4. Select the Open as Main Project check box and the Open Required Projects
check box.
The dukes-tutoring-common library project is required by dukes-
tutoring-war , and will be opened along with dukes-tutoring-war .
5. Click Open Project.
Note
The first time you open Duke's Tutoring in NetBeans, you will see error
glyphs in the project pane. This is expected, as the metamodel files used
by the enterprise beans for Criteria API queries have not yet been gen-
erated.
6. Right-click dukes-tutoring-war in the project pane and select Run.
This will build and package the dukes-tutoring-common and dukes-
tutoring-war projects and deploy dukes-tutoring-war to GlassFish
Server, starting the Java DB database and GlassFish Server if they have not already
been started. The jdbc/tutoring JDBC resource will be created at deploy
time. After the application has been successfully deployed, the Duke's Tutoring
main interface will open in a web browser if NetBeans IDE has been configured to
open web applications in a web browser.
Search WWH ::




Custom Search