Java Reference
In-Depth Information
To Build and Deploy Duke's Tutoring Using Ant
Before You Begin
Make sure GlassFish Server is started as described in
“
Starting and
Stopping the GlassFish Server
”
on page
41
,
and Java DB server is star-
ted as described in
“
Starting and Stopping the Java DB Server
” on page
1. In a terminal window, go to:
tut-install
/examples/case-studies/dukes-tutoring/dukes-
tutoring-war/
2. Enter the following command:
ant all
This command builds and packages the
dukes-tutoring-common
and
dukes-tutoring-war
projects, and deploys
dukes-tutoring-war
to
GlassFish Server.
Using Duke's Tutoring
Once Duke's Tutoring is running on GlassFish Server, use the main interface to experi-
ment with checking students in and out or sending them to the park.
To Use the Main Interface of Duke's Tutoring
1. In a web browser, open the main interface at the following URL:
http://localhost:8080/dukes-tutoring/
2. Use the main interface to check students in and out, and to log when the stu-
dents go to the park.
To Use the Administration Interface of Duke's Tutoring
Follow these instructions to log in to the administration interface of Duke's Tutoring and
add new students, guardians, and addresses.
1. In a web browser, open the administration interface at the following URL:
http://localhost:8080/dukes-tutoring/admin/index.xhtml
This will redirect you to the login page.
2. At the login page, enter the user name
admin@example.com
and password
javaee
.