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 "RelyingPartyDemoApp Deployment"

(Deployment steps)
(Deployment steps)
Line 28: Line 28:
 
# Download [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.higgins/plugins/org.eclipse.higgins.sts.binding.axis1x.service/WebContent/ConfigurationFiles/sun.config.xml?root=Technology_Project&view=co  sun.config.xml] from org.eclipse.higgins.sts.binding.axis1x.service project and save it as RelyingPartyDemoApp/src/org/apache/xml/security/resource/config.xml. config.xml file checked into cvs works only for IBM Java. If you are using Sun Java, Sun version of the config file must be copied to RelyingPartyDemoApp/src/org/apache/xml/security/resource folder to get the right XML Encryption/Decryption algorithm.
 
# Download [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.higgins/plugins/org.eclipse.higgins.sts.binding.axis1x.service/WebContent/ConfigurationFiles/sun.config.xml?root=Technology_Project&view=co  sun.config.xml] from org.eclipse.higgins.sts.binding.axis1x.service project and save it as RelyingPartyDemoApp/src/org/apache/xml/security/resource/config.xml. config.xml file checked into cvs works only for IBM Java. If you are using Sun Java, Sun version of the config file must be copied to RelyingPartyDemoApp/src/org/apache/xml/security/resource folder to get the right XML Encryption/Decryption algorithm.
 
# Create RelyingPartyDemoApp.war by right clicking RelyingPartyDemoApp project and selecting Export ... > Web > WAR file. Specify the destination for saving war file.
 
# Create RelyingPartyDemoApp.war by right clicking RelyingPartyDemoApp project and selecting Export ... > Web > WAR file. Specify the destination for saving war file.
 +
# Stop tomcat
 +
# Copy RelyingPartyDemoApp.war to tomcat's webapps folder
 +
# Start tomcat
 +
# Access https://<host>:<ssl port>/RelyingPartyDemoApp in a browser. If you are using a test certificate for tomcat, then you need to install the test certificate in your browser when accessing the URL for the first time.

Revision as of 03:22, 21 November 2007

This page describes how to download, build, configure and deploy RelyingPartyDemoApp to Tomcat6 servlet container

Prerequisites

This guide assumes you have the following software:

Deployment steps

  1. Checkout org.eclipse.higgins/app/RelyingPartyDemoApp and org.eclipse.higgins/dependencies.redistributable projects to Eclipse workspace from dev.eclipse.org:/cvsroot/technology
  2. Copy dependencies.redistributable/commons-logging-1.0.4/commons-logging-1.0.4.jar and dependencies.redistributable/xalan-2.6.0/xalan-2.6.0.jar to RelyingPartyDemoApp/WebContent/WEB-INF/lib folder
  3. Since all required plugin jars for RelyingPartyDemoApp are checked into cvs, remove all projects and libs (NOT Web App Libraries) from Java Build Path of RelyingPartyDemoApp to get rid of the error in the IDE. The only error that you see after this step is "Target runtime Apache Tomcat v5.5 is not defined". This error will not cause any trouble when building war file.
  4. Refresh the project
  5. Copy your SSL keystore file and CA Root file to RelyingPartyDemoApp/WebContent folder. See How to create a keystore with test certificate if you don't have SSL keystore for the tomcat installation.
  6. Update RelyingPartyDemoApp/WebContent/WEB-INF/web.xml file for the following params
    1. keystorename to your keystore file name
    2. keystorepw to your keystore password
    3. keystoretype to your keystore type
    4. keystorekeyalias to your keystore alias
    5. keystorekeypw to your keystore key password
    6. securePort to the SSL port of your tomcat installation
    7. normalPort to the normal port of your tomcat installation
    8. privacyUrl to the URL of your privacy statement. This must be a valid URI.
    9. rootCertUrl to the URL of your CA Root location
  7. Download sun.config.xml from org.eclipse.higgins.sts.binding.axis1x.service project and save it as RelyingPartyDemoApp/src/org/apache/xml/security/resource/config.xml. config.xml file checked into cvs works only for IBM Java. If you are using Sun Java, Sun version of the config file must be copied to RelyingPartyDemoApp/src/org/apache/xml/security/resource folder to get the right XML Encryption/Decryption algorithm.
  8. Create RelyingPartyDemoApp.war by right clicking RelyingPartyDemoApp project and selecting Export ... > Web > WAR file. Specify the destination for saving war file.
  9. Stop tomcat
  10. Copy RelyingPartyDemoApp.war to tomcat's webapps folder
  11. Start tomcat
  12. Access https://<host>:<ssl port>/RelyingPartyDemoApp in a browser. If you are using a test certificate for tomcat, then you need to install the test certificate in your browser when accessing the URL for the first time.

Back to the top