Difference between revisions of "Adding the Tomcat Virtual Platform to a gHN"

From Gcube Wiki
Jump to: navigation, search
(Created page with '==== Installation ==== The Tomcat Virtual Platform can be deployed on a gHN by uncompressing the related archive inside the ''$GLOBUS_LOCATION//virtual-platforms'' folder: <pre>…')
 
Line 10: Line 10:
 
==== gHN Configuration ====
 
==== gHN Configuration ====
  
Install and activate a [http://archive.apache.org/dist/tomcat/tomcat-6/ Tomcat 6.0.X] instance.
+
Download, install and configure a [http://archive.apache.org/dist/tomcat/tomcat-6/ Tomcat 6.0.X] instance (tests has been made with version 6.0.32).  
  
 +
Then next step is to add a user with the privileges needed to perform deployments on the instance. This is done by adding the following lines to the ''$CATALINA_HOME/conf/tomcat-users.xml'' file:
 +
<src lang="xml">
 +
<?xml version='1.0' encoding='utf-8'?>
 +
<tomcat-users>
 +
<role rolename="manager-gui"/>
 +
<role rolename="manager"/>
 +
<user username="USERNAME" password="PASSWORD" roles="manager-gui,manager,manager-script"/>
 +
</tomcat-users>
 +
</src>
 +
 +
where USERNAME and PASSWORD are chosen by the Site Manager.
  
 
==== Platform Configuration ====
 
==== Platform Configuration ====
  
In the Tomcat6 folder,
+
In the ''$GLOBUS_LOCATION//virtual-platforms/Tomcat6'' folder, edit the

Revision as of 20:08, 10 July 2011

Installation

The Tomcat Virtual Platform can be deployed on a gHN by uncompressing the related archive inside the $GLOBUS_LOCATION//virtual-platforms folder:

tar -zxvf org.gcube.vre-management.virtualplatform-tomcat-X.tar.gz

This will create a $GLOBUS_LOCATION//virtual-platforms/Tomcat6 folder with the resources needed to enable the Tomcat 6 platform. Afterwards, the tar.gz archive and the doc folder (also created by the command above) should be removed.

gHN Configuration

Download, install and configure a Tomcat 6.0.X instance (tests has been made with version 6.0.32).

Then next step is to add a user with the privileges needed to perform deployments on the instance. This is done by adding the following lines to the $CATALINA_HOME/conf/tomcat-users.xml file: <src lang="xml"> <?xml version='1.0' encoding='utf-8'?> <tomcat-users>

<role rolename="manager-gui"/>
<role rolename="manager"/>
<user username="USERNAME" password="PASSWORD" roles="manager-gui,manager,manager-script"/>

</tomcat-users> </src>

where USERNAME and PASSWORD are chosen by the Site Manager.

Platform Configuration

In the $GLOBUS_LOCATION//virtual-platforms/Tomcat6 folder, edit the