NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

Contents of this Page

Introduction

This document is a section of the [WIP LJJ LexEVS 5.x Installation Guide].

This section provides requirements, instructions, and troubleshooting information for installing the LexEVS Remote API environment.

Preliminary considerations

  • Before installing the LexEVS Remote API environment you must have a [LexEVS Local Runtime] installed and working.
  • It is not required that you load a terminology into the Local Runtime in order to complete the installation of the Remote API environment. However, using the Remote API requires that a terminology be loaded into the Local Runtime.
  • The Remote API environment has additional LexEVS 5.x Prerequisite Software Supported beyond the Local Runtime. The additional web application server does not have install steps given in this guide. The web application server can be on the same server or a different server from the Local Runtime.
  • Complete the [Downloading and Installing the LexEVS Remote API] steps below.

Once you have completed the additional prerequisite software install, the Remote API environment install steps, and the verification test as described in this guide then you should be ready to start using the Remote API features to meet the needs of your application. Not counting prerequisite software products the installation and verification should not take more than 30 minutes.

Downloading and Installing the LexEVS Remote API

Step

Action

1. Download the latest version of the LexEVS Remote API WAR file from the right. You have a choice between WAR files tailored for JBoss or Apache Tomcat installations. The location you have chosen to save this on your computer will be referred to as the SAVE_DIRECTORY. Our command examples will use scratch as this directory.
Note: Access to the downloads does not require an account. If you are having trouble downloading files then you may need to disable pop-up blockers or check any firewall settings at your site.

LexEVS Remote API
Includes the Java runtime and dependencies, the Java distributed API, and the caCORE SDK-generated services. This can be deployed to an Apache Tomcat or JBoss container.
lexevsapi51.tomcat.war
lexevsapi51.jboss.war

2. Shut down your application or servlet container. This presumes that you have already installed a web server as outlined in LexEVS 5.x Prerequisite Software Supported. The command to do the shut down will be web server specific. See the documentation for your web server for information on how to do this. There may be many alternatives.
JBoss example:

  • Windows:
    shutdown.bat -S
  • Unix:
    ./shutdown.sh -S
    If you experience Java errors then the server may already be down.

Shutting down the Jboss server.

valign="top"

3. Rename the WAR file.<br>
These files are distributed with an application server designation in their name for clarity while downloading them. Change to the <tt>

Unknown macro: {SAVE_DIRECTORY}

</tt> and rename the file, like this:<br>
'''''rename

/lexevsapi51.

Unknown macro: {WEB_SERVER}

.war

Unknown macro: {SAVE_DIRECTORY}

/lexevsapi51.war'''''
<br>
<br>JBoss example:
<br>Windows:
<br><tt>rename c:\scratch\lexevsapi51.jboss.war lexevsapi51.war</tt>
<br>Unix:
<br><tt>move /scratch/lexevsapi51.jboss.war lexevsapi51.war</tt>
:'''Note:''' Consider other names as well. Many application servers use the deployed name as part of the URL, so if you would rather it be a different name then you should rename the WAR file to that.

[[Image:jboss_rename.PNG]]

-

valign="top"

4. Copy the WAR file to the appropriate web application server directory, like this:

<br>'''''copy

\lexevsapi51.war

Unknown macro: {WEB_SERVER_HOME}

{DEPLOYMENT_HOME}'''''
<br>where ''

Unknown macro: {SAVE_DIRECTORY}

'' is the location of the downloaded file
<br>''

'' is the brand of the web server
<br>''

Unknown macro: {WEB_SERVER_HOME}

'' is your application server home directory
<br>''

Unknown macro: {DEPLOYMENT_HOME}

'' is the Web Archive deployment directory for your application server
<br>
<br>JBoss example:
<br>Windows:
<br><tt>copy c:\scratch\lexevsapi51.war c:\jboss-4.0.5.GA\server\default\deploy</tt>
<br>Unix:
<br><tt>copy /scratch/lexevsapi51.war /jboss-4.0.5.GA/server/default/deploy</tt>

[[Image:copy_evs_war.PNG]]

-

valign="top"

5. Create a text file named <tt>lexevs.properties</tt> in the <tt>

Unknown macro: {WEB_SERVER_CLASSPATH}

</tt> to set the location of the LexEVS configuration. The <tt>

</tt> is a location along the class path for your web application server. This whole path including the file name will be called <tt>

Unknown macro: {LEXEVS_PROPERTIES_HOME}

</tt> for the rest of these instructions.
JBoss example:
<br>Windows:
<br><tt>c:\jboss-4.0.5.GA\server\default\conf\lexevs.properties</tt>
<br>Unix:
<br><tt>/jboss-4.0.5.GA/server/default/conf/lexevs.properties</tt>

<br>Set <tt>LG_CONFIG_FILE</tt> to the path of the lbconfig.props file of your LexEVS installation like this:
<br>'''''LG_CONFIG_FILE=

Unknown macro: {LEXEVS_HOME}

\resources\config\lbconfig.props'''''
<br>where ''

Unknown macro: {LexEVS_HOME}

'' is the install directory of LexVES

Copy/paste the examples below as a starting point for this file:
<br>Windows:
<tt>LG_CONFIG_FILE=c:\\LexEVS\\5.1\\resources\\config
lbconfig.props</tt>
<br><small>Notice the back slash escape character required for a Windows, Java environment</small>
<br>Unix:
<br><tt>LG_CONFIG_FILE=/LexEVS/5.1/resources/config/lbconfig.props</tt>

[[Image:create_lexevs_properties.PNG]]

-

valign="top"

6. '''(OPTIONAL)''' The <tt>lexevs.properties</tt> file is also used to add security for any coding scheme. This is not a highly used function. For each coding scheme a security implementation class name can be set to enable security like this:
'''''

Unknown macro: {CODING_SCHEME_NAME}

=

Unknown macro: {SECURITY_IMPLENTATION}

'''''
<br>where ''

'' is the name or URI of the terminology
<br>''

Unknown macro: {SECURITY_IMPLENTATION}

'' is a class that implements the interface gov.nih.nci.system.dao.security.DAOSecurity.

For all ways of accessing the coding scheme, security must be set up. The example at the right shows access by '''Name, URI, and Formal Name''', but others are possible too.
:'''Note:''' Coding schemes can be added or changed later after a coding scheme or terminology is loaded into LexEVS.

valign="top"

<br><tt>MedDRA=gov.nih.nci.system.dao.security.MedDRASecurity</tt>
<br><tt>urn\:oid\:2\.16\.840\.1\.113883\.6\.163=gov.nih.nci.system.dao.security.MedDRASecurity</tt>
<br><tt>Medical\ Dictionary\ for\ Regulatory\ Activities\ Terminology\ (MedDRA)=gov.nih.nci.system.dao.security.MedDRASecurity</tt>

-

valign="top"

7. Adjust the <tt>properties-service.xml</tt> file.
This file is likely to be found in the

{DEPLOYMENT_HOME} directory but may be different for some servers.
<br>JBoss example:
<br>Windows:
<br><tt>c:\jboss-4.0.5.GA\server\default\deploy\properties-service.xml</tt>
<br>Unix:
<br><tt>/jboss-4.0.5.GA/server/default/deploy/properties-service.xml</tt>

Add a line to the file in the same part of the XML where other properties are set like this:

'''''<attribute name="Properties">org.LexGrid.LexBIG.caCore.Properties=

Unknown macro: {LEXEVS_PROPERTIES_HOME}

</attribute>'''''
<br>where ''

'' is the location and file name of <tt>lexevs.properties</tt> established in a previous step

In Tomcat placing the file in the conf dir or the /webapps/lexevsapi5x/WEB-INF/classes directory should suffice.

<br>JBoss example:
<br><tt><attribute name="Properties">org.LexGrid.LexBIG.caCore.Properties=C:\jboss-4.0.5.GA\server\default\conf\lexevs.properties</attribute></tt>
<br>is added to this file between the <tt><mbean></tt> tags.

:'''Note:''' In some server installations you may not have authority to modify this file. In that case you can simply move the <tt>lexevs.properties</tt> file somewhere on the web application servers class path.

[[Image:jboss_properties_service.PNG]]

-

}''

==Testing the LexEVS Remote API==

{| class="wikitable" style="width:900px;" border="1"
!style="width:300px;background:#CCCCCC;"|Step
!style="width:600px;background:#CCCCCC;"|Action

-

valign="top"

1. Start your application or servlet container if it is not already started. The start command will be web server specific. See the documentation for your web server for information on how to do this.
<br>JBoss example:
<br>Windows:
<br><tt>Run.bat -c default</tt>
<br>Unix:
<br><tt>./Run.sh -c default</tt>

[[Image:jboss_start.PNG]]

-

valign="top"

2. Verify the installation by opening a browser to

<br>'''''<nowiki>http://

Unknown macro: {SERVER_ADDRESS}

/

Unknown macro: {WAR_FILE_DEPLOYED}

</nowiki>'''''
<br>where ''

'' is the address of your server (domain and optionally the port number)
<br>''

Unknown macro: {WAR_FILE_DEPLOYED}

'' is the name of the WAR file you placed in the server directories for deployment.
<br>
<br>For example:
<br><tt><nowiki>http://localhost:8080/lexevsapi51</nowiki></tt>
<br>
<br>If you are using <tt>localhost</tt> then your browser must be running on the same server as LexEVS.

[[Image:EVS_Home.PNG]]

-

}

If you see the Enterprise Vocabulary Services "Welcome to LexEVS" web page then you have successfully installed the LexEVS Remote API.
'''Congratulations!'''

==Troubleshooting==

*If the Local Runtime environment is properly installed and tested then the Remote API environment should have few problems.
*If you receive deployment errors in JBoss and are unable to see the EVS home page then you may not have configured the properties attribute in JBoss's properties-service.xml.
*You may also need to adjust the path in lexevs.properties where lbconfig.props location is defined.

  • No labels