Build Application

To build and deploy the DVN application:

  1. In NetBeans, perform a Clean and Build for the main project.
    Make sure that the build is successful before you continue.
  2. In NetBeans, perform a Undeploy and Deploy for the main project.
  3. After you build the application the first time, run the referencedData.sql script from the PostgreSQL pgAdmin tool to poplulate the database with default values:
    1. Start pgAdmin, and select the Query tool.
    2. Execute the file referenceData.sql in the directory /<SVN>/src/DVN-EJB/src.conf.
  4. Restart GlassFish server.
  5. In NetBeans, perform a Run Main Project to build, deploy, and run the DVN application.

By default, the DVN application deploys from the build directory. To deploy from the GlassFish directory:

  1. Open the GlassFish server Properties.
  2. Disable the option Directory Deployment Enabled, and then close the Properties.

To access your local DVN application, run or deploy the application from the NetBeans IDE. The default location for the deployed DVN application is http://localhost:8080/dvn.