Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Deploying I-Card Service 1.0"
Line 13: | Line 13: | ||
* Copy the directory “tomcat” over same directory name in the place, where Tomcat was installed. Driver MySQL must be placed in the "lib" folder. Drivers can be downloaded [http://dev.mysql.com/downloads/connector/j/5.1.html here]. | * Copy the directory “tomcat” over same directory name in the place, where Tomcat was installed. Driver MySQL must be placed in the "lib" folder. Drivers can be downloaded [http://dev.mysql.com/downloads/connector/j/5.1.html here]. | ||
− | * Contents of the directory ''“usr”'' must be placed in a home directory of the current user. Folder ''“.higgins”'' contains three folders: ''“.icard”, “.ontology”, “.iss”''. In a folder ''“.icard”'' there are files of a configuration for icard-providers: ''“org.eclipse.higgins.icard.provider.cardspace.managed.db”'' and ''“org.eclipse.higgins.icard.provider.cardspace.personal.db.ini”''. Folder ''“.iss”'' contains configuration file for Icard selector service (iss). Folder ''“ConfigurationFile”'' contains two configuration files for Security Token Service (sts): ''“ClientConfiguration.xml”'' and ''“PersonalConfiguration.xml”''. | + | * Contents of the directory ''“usr”'' must be placed in a home directory of the current user. Folder ''“.higgins”'' contains three folders: ''“.icard”, “.ontology”, “.iss”''. |
+ | |||
+ | :{|style="background:transparent" | ||
+ | |-valign=top | ||
+ | |MySQL-database should be installed . It's necessary to create two mysql-schema . | ||
+ | |-valign=top | ||
+ | |First schema be created for working with icard-providers. In a folder ''“.icard”'' there are files of a configuration for icard-providers: ''“org.eclipse.higgins.icard.provider.cardspace.managed.db”'' and ''“org.eclipse.higgins.icard.provider.cardspace.personal.db.ini”''. They have equal structure. It's necessary to change three parameters: | ||
+ | |} | ||
+ | <parameter name="db.username" value="'''username for login to databse'''"/> | ||
+ | <parameter name="db.password" value="'''password for login to databse'''"/> | ||
+ | <parameter name="db.url" value="jdbc:mysql://'''hostname for MySQL server/First_Schema_name'''?autoReconnect=true"/> | ||
+ | |||
+ | :{|style="background:transparent" | ||
+ | |-valign=top | ||
+ | |For filling schema-tables in database must be executed SQL script '''mysql.sql'''. It be found in folder ''"*\org.eclipse.higgins.icard.provider.cardspace.db.mysql\sql"'' | ||
+ | |-valign=top | ||
+ | |Second schema be created for working with UserProfile. In a subfolder ''“xrds”'', in the file userProfileContext.xrds should be changed three fields: | ||
+ | |} | ||
+ | <Setting Name="db.password" Type="xsd:string">'''username for login to databse'''</Setting> | ||
+ | <Setting Name="db.user" Type="xsd:string">'''password for login to databse'''</Setting> | ||
+ | <Setting Name="db.url" Type="xsd:string">jdbc:mysql://'''hostname for MySQL server/First_Schema_name?autoReconnect=true'''</Setting> | ||
+ | :{|style="background:transparent" | ||
+ | |-valign=top | ||
+ | |Folder ''“.iss”'' contains configuration file for Icard selector service (iss). Folder ''“ConfigurationFile”'' contains two configuration files for Security Token Service (sts): ''“ClientConfiguration.xml”'' and ''“PersonalConfiguration.xml”''. | ||
+ | |} | ||
* At last, copy '''rpps-axis.war''' from the folder '''*\org.eclipse.higgins.rpps.web\build\war''' into ''Tomcat folder "/webapps"'' and restart Tomcat for deploy Web Application. | * At last, copy '''rpps-axis.war''' from the folder '''*\org.eclipse.higgins.rpps.web\build\war''' into ''Tomcat folder "/webapps"'' and restart Tomcat for deploy Web Application. |
Revision as of 11:14, 16 January 2008
Prerequisites
This guide assumes you have the following software:
- Apache Tomcat 5.5 or later (or other servlet container)
- "rpps-axis.war" file must be maked before deploying (i.e. RPPS-web project must be built. For information on how to configure and deploy the web applications, see here: Building the Higgins Identity Agent Service).
Deploying the Identity Agent Service
Project folder *\org.eclipse.higgins.rpps.web contains the folder “conf”. It include zip-archive with files and folders which needed for running RPPS-web in Tomcat.
- Extract all files and folders.
- Copy the directory “tomcat” over same directory name in the place, where Tomcat was installed. Driver MySQL must be placed in the "lib" folder. Drivers can be downloaded here.
- Contents of the directory “usr” must be placed in a home directory of the current user. Folder “.higgins” contains three folders: “.icard”, “.ontology”, “.iss”.
MySQL-database should be installed . It's necessary to create two mysql-schema . First schema be created for working with icard-providers. In a folder “.icard” there are files of a configuration for icard-providers: “org.eclipse.higgins.icard.provider.cardspace.managed.db” and “org.eclipse.higgins.icard.provider.cardspace.personal.db.ini”. They have equal structure. It's necessary to change three parameters:
<parameter name="db.username" value="username for login to databse"/> <parameter name="db.password" value="password for login to databse"/> <parameter name="db.url" value="jdbc:mysql://hostname for MySQL server/First_Schema_name?autoReconnect=true"/>
For filling schema-tables in database must be executed SQL script mysql.sql. It be found in folder "*\org.eclipse.higgins.icard.provider.cardspace.db.mysql\sql" Second schema be created for working with UserProfile. In a subfolder “xrds”, in the file userProfileContext.xrds should be changed three fields:
<Setting Name="db.password" Type="xsd:string">username for login to databse</Setting> <Setting Name="db.user" Type="xsd:string">password for login to databse</Setting> <Setting Name="db.url" Type="xsd:string">jdbc:mysql://hostname for MySQL server/First_Schema_name?autoReconnect=true</Setting>
Folder “.iss” contains configuration file for Icard selector service (iss). Folder “ConfigurationFile” contains two configuration files for Security Token Service (sts): “ClientConfiguration.xml” and “PersonalConfiguration.xml”.
- At last, copy rpps-axis.war from the folder *\org.eclipse.higgins.rpps.web\build\war into Tomcat folder "/webapps" and restart Tomcat for deploy Web Application.