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)
(Prerequisites)
Line 6: Line 6:
 
* Eclipse IDE 3.2 or later (see http://www.eclipse.org/)
 
* Eclipse IDE 3.2 or later (see http://www.eclipse.org/)
 
* Web standard tools (see http://www.eclipse.org/webtools/)
 
* Web standard tools (see http://www.eclipse.org/webtools/)
* Apache Tomcat 6 (see http://tomcat.apache.org) with [http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html SSL configuration]
+
* Apache Tomcat 6 (see http://tomcat.apache.org) with [http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html SSL configuration] (see [[Generating a Private Key and a Keystore]])
 
* Sun JDK/JRE 1.5 or later (see http://java.sun.com/javase/downloads)
 
* Sun JDK/JRE 1.5 or later (see http://java.sun.com/javase/downloads)
 
* Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files (see http://java.sun.com/javase/downloads)
 
* Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files (see http://java.sun.com/javase/downloads)

Revision as of 11:37, 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 the following projects to Eclipse workspace from dev.eclipse.org:/cvsroot/technology.

 org.eclipse.higgins/app/RelyingPartyDemoApp
 org.eclipse.higgins/dependencies.redistributable

You can use the following psf file to checkout the projects

<?xml version="1.0" encoding="UTF-8"?>
<psf version="2.0">
	<provider id="org.eclipse.team.cvs.core.cvsnature">
		<project reference="1.0,:pserver:dev.eclipse.org:/cvsroot/technology,org.eclipse.higgins/dependencies.redistributable,dependencies.redistributable"/>
		<project reference="1.0,:pserver:dev.eclipse.org:/cvsroot/technology,org.eclipse.higgins/app/RelyingPartyDemoApp,RelyingPartyDemoApp"/>
	</provider>
</psf>

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 Generating a Private Key and a Keystore if you don't have SSL keystore for the tomcat installation.

6. Update RelyingPartyDemoApp/WebContent/WEB-INF/web.xml file for the following params

  • keystorename to your keystore file name
  • keystorepw to your keystore password
  • keystoretype to your keystore type
  • keystorekeyalias to your keystore alias
  • keystorekeypw to your keystore key password
  • securePort to the SSL port of your tomcat installation
  • normalPort to the normal port of your tomcat installation
  • privacyUrl to the URL of your privacy statement. This must be a valid URI.
  • 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: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.

Links

Back to the top