Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Deploy Token Service"

(New page: To deploy Token Service application, you should perform the following steps: 1. Build the web application (you can miss this step and download [http://shangrila.parityinc.net:8888/TokenSe...)
 
Line 1: Line 1:
To deploy Token Service application, you should perform the following steps:
+
== To deploy Token Service application, you should perform the following steps: ==
  
1. Build the web application (you can miss this step and download [http://shangrila.parityinc.net:8888/TokenServiceDocs/TokenSevice.war .war file] currently deployed on [https://shangrila.parityinc.net:8443/TokenService/ shangrila.parityinc.net].
 
  
1.1. Download required Higgins projects from Eclipse CVS server using [http://shangrila.parityinc.net:8888/TokenServiceDocs/tokenService.psf tokenService.psf] project set file (in Eclipse SDK execute command File -> Import, choose “Team -> Team Project Set”, click on “Next” button and select tokenService.psf file).
+
1. Build the web application (you can miss this step and download [http://shangrila.parityinc.net:8888/TokenServiceDocs/TokenSevice.war .war file] currently deployed on [https://shangrila.parityinc.net:8443/TokenService/ shangrila.parityinc.net]).
  
1.2. Build the web application (instructions in progress).
+
*Download required Higgins projects from Eclipse CVS server using [http://shangrila.parityinc.net:8888/TokenServiceDocs/tokenService.psf tokenService.psf] project set file (in Eclipse SDK execute command File -> Import, choose “Team -> Team Project Set”, click on “Next” button and select tokenService.psf file).
 +
 
 +
*Build the web application (instructions in progress).
  
  
 
2. Install/configure Apache Tomcat server. You can download Apache Tomcat from [http://tomcat.apache.org http://tomcat.apache.org].
 
2. Install/configure Apache Tomcat server. You can download Apache Tomcat from [http://tomcat.apache.org http://tomcat.apache.org].
  
2.1. If you are going to use Token Service via SSL, you need to configure SSL connector (you need to create a certificate and uncomment SSL Connector settings as described (for Tomcat 6.x) at [http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html]).
+
*If you are going to use Token Service via SSL, you need to configure SSL connector (you need to create a certificate and uncomment SSL Connector settings as described (for Tomcat 6.x) at [http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html]).
  
2.2. You need to configure log4j logging (see http://tomcat.apache.org/tomcat-6.0-doc/logging.html). In case of Tomcat 6.x, you need just copy two files ([http://archive.apache.org/dist/logging/log4j/1.2.13/ log4j-1.2.13.jar] and log4j.properties) to <Tomcat directory>/lib directory. log4j.properties file can be found in the TokenService Configuration folder (see p. 4 below).
+
*You need to configure log4j logging (see http://tomcat.apache.org/tomcat-6.0-doc/logging.html). In case of Tomcat 6.x, you need just copy two files ([http://archive.apache.org/dist/logging/log4j/1.2.13/ log4j-1.2.13.jar] and log4j.properties) to <Tomcat directory>/lib directory. log4j.properties file can be found in the TokenService Configuration folder (see p. 4 below).
  
  
 
3. Install OpenLDAP server [http://www.openldap.org http://www.openldap.org]. OpenLDAP is required by JNDI Context Provider (see [http://wiki.eclipse.org/index.php/Components http://wiki.eclipse.org/index.php/Components]).
 
3. Install OpenLDAP server [http://www.openldap.org http://www.openldap.org]. OpenLDAP is required by JNDI Context Provider (see [http://wiki.eclipse.org/index.php/Components http://wiki.eclipse.org/index.php/Components]).
  
3.1. On Linux:
+
*On Linux:
  
3.1.1. Install OpenLDAP [http://www.openldap.org/software/download/ http://www.openldap.org/software/download/].
+
**Install OpenLDAP [http://www.openldap.org/software/download/ http://www.openldap.org/software/download/].
3.1.2. Configure OpenLDAP. By default, OpenLDAP configuration folder is /etc/openldap. If you are using this folder, just replace schema folder and slapd.conf file with files from [http://shangrila.parityinc.net:8888/TokenServiceDocs/linux_config.zip linux_config.zip], otherwise replace schema folder and edit your slapd.conf. Compare your slapd.conf with slapd.conf from linux_config.zip and make the following changes:
+
  
a) include required schema files;
+
**Configure OpenLDAP. By default, OpenLDAP configuration folder is /etc/openldap. If you are using this folder, just replace schema folder and slapd.conf file with files from [http://shangrila.parityinc.net:8888/TokenServiceDocs/linux_config.zip linux_config.zip], otherwise replace schema folder and edit your slapd.conf. Compare your slapd.conf with slapd.conf from linux_config.zip and make the following changes:
b) set root element rootdn "cn=root";
+
c) set root element password rootpw higgins.
+
  
3.1.3. Run OpenLDAP (in case of using default OpenLDAP paths, execute /usr/libexec/slapd -f /usr/etc/openldap/slapd.conf).
+
***include required schema files;
3.1.4. Import some required entries from [http://shangrila.parityinc.net:8888/TokenServiceDocs/org.ldif org.ldif] file (execute /usr/libexec/ldapadd -x -D "cn=root" -w higgins -a -f org.ldif).
+
***set root element rootdn "cn=root";
 +
***set root element password rootpw higgins.
  
3.2. On Windows:
+
**Run OpenLDAP (in case of using default OpenLDAP paths, execute /usr/libexec/slapd -f /usr/etc/openldap/slapd.conf).
3.2.1. Install OpenLDAP [http://shangrila.parityinc.net:8888/TokenServiceDocs/openldap-2.2.29-db-4.3.29-openssl-0.9.8a-win32_Setup.exe openldap-2.2.29-db-4.3.29-openssl-0.9.8a-win32_Setup.exe].
+
  
3.2.2. Configure OpenLDAP. If your OpenLDAP working directory is C:\Program Files\OpenLDAP, replace schema folder and slapd.conf file with files from [http://shangrila.parityinc.net:8888/TokenServiceDocs/windows_config.zip windows_config.zip]. If you are using another directory, replace schema folder and edit your slapd.conf. Compare your slapd.conf with slapd.conf from windows_config.zip and make the following changes:
+
**Import some required entries from [http://shangrila.parityinc.net:8888/TokenServiceDocs/org.ldif org.ldif] file (execute /usr/libexec/ldapadd -x -D "cn=root" -w higgins -a -f org.ldif).
  
a) include required schema files;
+
*On Windows:
b) set root element rootdn "cn=root";
+
c) set root element password rootpw higgins.
+
  
3.2.3. Run OpenLDAP (C:\Program Files\OpenLDAP\slapd -d 1).
+
**Install OpenLDAP [http://shangrila.parityinc.net:8888/TokenServiceDocs/openldap-2.2.29-db-4.3.29-openssl-0.9.8a-win32_Setup.exe openldap-2.2.29-db-4.3.29-openssl-0.9.8a-win32_Setup.exe].
3.2.4. Import some required entries from [http://shangrila.parityinc.net:8888/TokenServiceDocs/org.ldif org.ldif] file (C:\Program Files\OpenLDAP\ldapadd -x -D "cn=root" -w higgins -a -f org.ldif).
+
 
 +
**Configure OpenLDAP. If your OpenLDAP working directory is C:\Program Files\OpenLDAP, replace schema folder and slapd.conf file with files from [http://shangrila.parityinc.net:8888/TokenServiceDocs/windows_config.zip windows_config.zip]. If you are using another directory, replace schema folder and edit your slapd.conf. Compare your slapd.conf with slapd.conf from windows_config.zip and make the following changes:
 +
 
 +
***include required schema files;
 +
***set root element rootdn "cn=root";
 +
***set root element password rootpw higgins.
 +
 
 +
**Run OpenLDAP (C:\Program Files\OpenLDAP\slapd -d 1).
 +
 
 +
**Import some required entries from [http://shangrila.parityinc.net:8888/TokenServiceDocs/org.ldif org.ldif] file (C:\Program Files\OpenLDAP\ldapadd -x -D "cn=root" -w higgins -a -f org.ldif).
  
  
Line 45: Line 50:
 
This project contains /WebContent/ConfigurationFiles folder. You need to copy this folder to your server and make some changes which are described at [http://wiki.eclipse.org/Token_Service_Build_Instructions Token_Service_Build_Instructions].
 
This project contains /WebContent/ConfigurationFiles folder. You need to copy this folder to your server and make some changes which are described at [http://wiki.eclipse.org/Token_Service_Build_Instructions Token_Service_Build_Instructions].
 
Shortly, you need:
 
Shortly, you need:
4.1. Rename ManagedConfiguration.xml to Configuration.xml;
 
4.2. Replace "https://localhost" string in Configuration.xml file with URL of your site;
 
4.3. Replace "file:///C:/higgins.config.xml" string with full name of higgins.config.xml file on your server;
 
4.4. Change some properties (like URL of server, principal, credentials) of LDAP server in Configuration.xml and higgins.config.xml files.
 
  
4.5. You can simplify the configuration process and use [http://shangrila.parityinc.net:8888/TokenServiceDocs/ConfigurationFiles.zip ConfigurationFiles.zip]. In this case you need only replace https://shangrila.parityinc.net:8443 with URL of your site.
+
*Rename ManagedConfiguration.xml to Configuration.xml;
 +
*Replace "https://localhost" string in Configuration.xml file with URL of your site;
 +
*Replace "file:///C:/higgins.config.xml" string with full name of higgins.config.xml file on your server;
 +
*Change some properties (like URL of server, principal, credentials) of LDAP server in Configuration.xml and higgins.config.xml files.
 +
 
 +
You can simplify the configuration process and use [http://shangrila.parityinc.net:8888/TokenServiceDocs/ConfigurationFiles.zip ConfigurationFiles.zip]. In this case you need only replace https://shangrila.parityinc.net:8443 with URL of your site.
  
  
 
5. Deploy Token Service.
 
5. Deploy Token Service.
  
5.1. Copy TokenService.war file to <Tomcat directory>/webapps directory.
+
*Copy TokenService.war file to <Tomcat directory>/webapps directory.
  
5.2. Add "org.eclipse.higgins.sts.conf" system property which should contain your Configuration directory path:
+
*Add "org.eclipse.higgins.sts.conf" system property which should contain your Configuration directory path:
  
5.2.1. If you use Windows, add to catalina.bat the string like:
+
**If you use Windows, add to catalina.bat the string like:
 
SET JAVA_OPTS=-Dorg.eclipse.higgins.sts.conf=C:\TokenService\ConfigurationFiles %JAVA_OPTS%
 
SET JAVA_OPTS=-Dorg.eclipse.higgins.sts.conf=C:\TokenService\ConfigurationFiles %JAVA_OPTS%
  
5.2.2. If you use Linux, add to catalina.sh the string like:
+
**If you use Linux, add to catalina.sh the string like:
 
JAVA_OPTS=`-Dorg.eclipse.higgins.sts.conf=/etc/TokenService/ConfigurationFiles "$JAVA_OPTS"`
 
JAVA_OPTS=`-Dorg.eclipse.higgins.sts.conf=/etc/TokenService/ConfigurationFiles "$JAVA_OPTS"`

Revision as of 09:17, 20 July 2007

To deploy Token Service application, you should perform the following steps:

1. Build the web application (you can miss this step and download .war file currently deployed on shangrila.parityinc.net).

  • Download required Higgins projects from Eclipse CVS server using tokenService.psf project set file (in Eclipse SDK execute command File -> Import, choose “Team -> Team Project Set”, click on “Next” button and select tokenService.psf file).
  • Build the web application (instructions in progress).


2. Install/configure Apache Tomcat server. You can download Apache Tomcat from http://tomcat.apache.org.


3. Install OpenLDAP server http://www.openldap.org. OpenLDAP is required by JNDI Context Provider (see http://wiki.eclipse.org/index.php/Components).

  • On Linux:
    • Configure OpenLDAP. By default, OpenLDAP configuration folder is /etc/openldap. If you are using this folder, just replace schema folder and slapd.conf file with files from linux_config.zip, otherwise replace schema folder and edit your slapd.conf. Compare your slapd.conf with slapd.conf from linux_config.zip and make the following changes:
      • include required schema files;
      • set root element rootdn "cn=root";
      • set root element password rootpw higgins.
    • Run OpenLDAP (in case of using default OpenLDAP paths, execute /usr/libexec/slapd -f /usr/etc/openldap/slapd.conf).
    • Import some required entries from org.ldif file (execute /usr/libexec/ldapadd -x -D "cn=root" -w higgins -a -f org.ldif).
  • On Windows:
    • Configure OpenLDAP. If your OpenLDAP working directory is C:\Program Files\OpenLDAP, replace schema folder and slapd.conf file with files from windows_config.zip. If you are using another directory, replace schema folder and edit your slapd.conf. Compare your slapd.conf with slapd.conf from windows_config.zip and make the following changes:
      • include required schema files;
      • set root element rootdn "cn=root";
      • set root element password rootpw higgins.
    • Run OpenLDAP (C:\Program Files\OpenLDAP\slapd -d 1).
    • Import some required entries from org.ldif file (C:\Program Files\OpenLDAP\ldapadd -x -D "cn=root" -w higgins -a -f org.ldif).


4. Configure TokenService. TokenService application uses some configuration files which are stored within a single configuration directiory. If you did not yet download Higgins projects, download org.eclipse.higgins.sts.binding.axis1x.service project using stsService.psf project set file (see p. 1.1.). This project contains /WebContent/ConfigurationFiles folder. You need to copy this folder to your server and make some changes which are described at Token_Service_Build_Instructions. Shortly, you need:

  • Rename ManagedConfiguration.xml to Configuration.xml;
  • Replace "https://localhost" string in Configuration.xml file with URL of your site;
  • Replace "file:///C:/higgins.config.xml" string with full name of higgins.config.xml file on your server;
  • Change some properties (like URL of server, principal, credentials) of LDAP server in Configuration.xml and higgins.config.xml files.

You can simplify the configuration process and use ConfigurationFiles.zip. In this case you need only replace https://shangrila.parityinc.net:8443 with URL of your site.


5. Deploy Token Service.

  • Copy TokenService.war file to <Tomcat directory>/webapps directory.
  • Add "org.eclipse.higgins.sts.conf" system property which should contain your Configuration directory path:
    • If you use Windows, add to catalina.bat the string like:

SET JAVA_OPTS=-Dorg.eclipse.higgins.sts.conf=C:\TokenService\ConfigurationFiles %JAVA_OPTS%

    • If you use Linux, add to catalina.sh the string like:

JAVA_OPTS=`-Dorg.eclipse.higgins.sts.conf=/etc/TokenService/ConfigurationFiles "$JAVA_OPTS"`

Back to the top