CaGrid:ConfigureTomcat

From caGridWiki

Jump to: navigation, search

The caGrid Installer will setup and configure tomcat to host grid services for you. If you do not wish to use the caGrid Installer, this page provides instructions for manually configuring tomcat to host grid services.

Configuring Tomcat without Security

  • Download the appropriate version of tomcat, as detailed in the version of caGrid you are using. Links are on the Software Releases page.
  • Create/Set the environment variable CATALINA_HOME to where you unzipped Tomcat
  • Do the following:
cd "%GLOBUS_LOCATION%"
ant -f share\globus_wsrf_common\tomcat\tomcat.xml deployTomcat -Dtomcat.dir="%CATALINA_HOME%"

Configuring a Secure Tomcat

  • Download the appropriate version of tomcat, as detailed in the version of caGrid you are using. Links are on the Software Releases page.
  • Create/Set the environment variable CATALINA_HOME to where you unzipped Tomcat
  • Follow the Globus instructions for deploying Globus into tomcat securely.
  • By default, deploying Globus securely (in the previous step) creates a new security descriptor file in the following location: $CATALINA_HOME/webapps/wsrf/WEB-INF/etc/globus_wsrf_core/global_security_descriptor.xml.

Alternatively, you can create a global security descriptor file as shown below:

<?xml version="1.0" encoding="UTF-8"?>
<securityConfig xmlns="http://www.globus.org">
 <credential>
      <key-file value="PATH_TO_HOST_PRIVATE_KEY"/>
      <cert-file value="PATH_TO_HOST_CERTIFICATE"/>
   </credential>
</securityConfig>
  • Add containerSecDesc parameter to the <globalConfiguration> of the file CATALINA_HOME/webapps/wsrf/WEB-INF/etc/globus_wsrf_core/server-config.wsdd. This will tell Globus the location of the global security descriptor you just created.
<globalConfiguration>
   ...
   

   <parameter name="containerSecDesc" value="PATH_TO_YOUR_GLOBAL_SECURITY_DESCRIPTOR"/>

   ...
Personal tools