Installation
Installing the Manorrock Online Application consists of the following steps below. Note since this is the base application make sure everything works well before you continue on to install other Online applications.
- Install the database server.
- Create the database.
- Run SQL script.
- Install the application server.
- Create the JDBC connection pool (pool/online).
- Create the JDBC resource (jdbc/online).
- Setup the security realm (online).
- Deploy the application to your application server.
- Verify the deploy.
Install the database server
The current version of the Manorrock Online application require you to create and use a PostgreSQL database.
Create the database
- Install your PostgreSQL server (if not already installed, see previous step).
- Start the PostgreSQL administration application (pgAdmin III).
- Connect to your PostgreSQL server.
- Create a login role.
- Create the database, make the owner the login role you created in the previous step.
Install the application server
- Go to http://glassfish.java.net/.
- Download the Glassfish Server.
- Follow the directions in the Installation Guide, see http://glassfish.java.net/docs/3.1.1/installation-guide.pdf
Create the JDBC connection pool
Create the JDBC resource
- Login into the admin console of your application server (http://localhost:4884)
- Click on JDBC
- Click on JDBC Resources
- Click New
- Enter jdbc/online for the JNDI Name.
- Select pool/online for the Pool Name.
- Click OK.
Setup the security realm
- Login into the admin console of your application server (http://localhost:4884)
- Expand server-config.
- Expand on Security.
- Click on Realms.
- Click New.
- Enter online for the Name.
- Select com.sun.enterprise.auth.realm.jdbc.JDBCRealm for the Class Name.
- Fill in the following in the table.
- JAASContext: JDBCRealm
- JNDName: jdbc/online
- User Table: users
- User Name Column: username
- Password Column: pwd
- Group Table: groups
- Group Name Column: groupname
- Digest Algorithm: SHA-256
- Click OK.
Deploy the application
- Login into the admin console of your application server (http://localhost:4884)
- Click on Applications.
- Click Deploy (if you are redeploying the application see Redeploying).
- Click Choose File.
- Select the WAR file and click Open.
- Set the context root to /online
- Click OK.
Verify the deploy
- Browse to http://localhost:8080/online
- Click on Login.
- Enter demo as username.
- Enter demo as password.
- Click Login.
- Be happy (meaning you successfully logged in), or go back over each step and figure out what went wrong.