Naming Authority Web Application
| |
|
|
| |
Contents |
|
| |
|
|
This section covers the installation of the naming authority core component, the web application, which enables resolution of identifiers via HTTP. The identifiers security framework requires a secure web application container.
Before deploying the web application, the following steps from the previous section must be completed:
- Install caGrid 1.5
- Configure a secure globus-enabled Tomcat container (port 443). This can be done with caGrid installer (previous step), or manually.
If these steps have been completed you can proceed to the next step.
Configure the Web Application
Customize $CAGRID_HOME/identifiers-namingauthority/WebContent/WEB-INF/na.properties
- cagrid.na.prefix=http://identifiers-pa.nci.nih.gov/production/

- cagrid.na.grid.url=https://identifiers-na.nci.nih.gov:8443/wsrf/services/cagrid/IdentifiersNAService

- cagrid.na.db.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
- cagrid.na.db.driver=com.mysql.jdbc.Driver
- cagrid.na.db.name=nadb
- cagrid.na.db.url=jdbc:mysql://localhost:3306/$(cagrid.na.db.name)
- cagrid.na.db.username=root
- cagrid.na.db.password=
| NOTE: cagrid.na.prefix MUST include a trailing slash |
Deploy to Tomcat
At this point we have completed configuring the web application and the Tomcat container in which it will run. We are now ready to deploy the web application to the Secure Tomcat Container. This can be done from a command prompt:

cd $CAGRID_HOME/projects/identifiers-namingauthority
ant deployTomcat
Ensure MySQL is running and that the database configured above (cagrid.na.db.name) has been created.

$> mysql -u root
mysql> create database nadb
mysql> exit
Verify the Installation
Once you have deployed the web application, you have completed the installation and configuration of the naming authority with only the ability to resolve identifiers. Next we will verify that the installation was successful. However, before doing so, we must start the naming authority. This is done by starting the container to which the naming authority was deployed. To start a secure Tomcat container, run the start-up script (startup.sh or startup.bat) located in CATALINA_HOME/bin:

cd $CATALINA_HOME/bin
startup.bat
| *NOTE:You may also want to configure Tomcat to start automatically |
- Confirm the application is running by browsing https://identifiers-na.nci.nih.gov/namingauthority
.
The web application only provides the ability to resolve identifiers. If you would like the ability to create and maintain identifiers, install the Naming Authority Grid Service.





