Creating a secure Web application  Deploying the WAR file

Appendix D: Using the Enterprise Portal Samples

Creating a deployable WAR file

This section describes how to create a deployable WAR file for the sample. The process is shown only for reference. The deployable WAR file—sso.war—is located in /PortalStudio/samples in the EP installation directory.

The development environment directory structure looks like this:

temp/SSO.jsp
temp/WEB-INF/web.xml
temp/WEB-INF/lib/<JAR files in Web application>

For this sample, Sybase created a deployable Web application archive (WAR) file using the jar command (entered in at a command line) from the Java JDK:

cd temp
jar -cf /tmp/sso.war *

These commands create the sso.war deployment file in the /tmp directory.

The security_stubs.jar file must be in the WEB-INF/lib directory so that sso.jsp can use Enterprise Security to access proxy authentication information. We have packaged security_stubs.jar, and after you deploy the WAR file in the next step, it is located under WEB-INF/lib.





Copyright © 2004. Sybase Inc. All rights reserved. Deploying the WAR file

View this book as PDF