Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

2. Deploying the CompanyWeb WAR into a Tomcat you configure yourself
Alternatively, you can deploy the sample to your own configured Tomcat installation by following the
instructions below. These instructions assume that you have either 1) downloaded the Tuscany sample distribution or 2) Downloaded the Tuscany source and run our maven build, see the following link to more details steps on how to build DAS Sample applications http://incubator.apache.org/tuscany/java_das_overview.html .

Set Up

...

  1. Download and install the most recent stable version of Tomcat 5.5. You can find it here:
    http://tomcat.apache.org/download-55.cgiImage Modified

...

  1. Download the most recent official release of Derby from here: http://db.apache.org/derby/index.htmlImage Modified.
    The only file you'll need from this download is derby.jar

...

  1. Stop Tomcat

...

  1. Copy derby.jar (from the derby distribution) to Tomcat_Home/common/lib

...

  1. Add the sample war file to Tomcat_Home/webapps
  • a.sample-companyweb-xxx.war (e.g. "sample-companyweb-1.0-incubator-M2.war") 6.
  1. Install the canned Derby database to Tomcat:
  • a.First, create a new directory named "Databases" to hold the sample database.Create
    Tomcat_Home / Databases
  • b.Copy the dastest folder (and all its contents) from (build directory root OR where samples were unzipped/java/das/samples/companyweb) to Tomcat_Home/Databases.
  • NOTE:
    If you are running this from a sample distribution, the canned database is available in the
    distribution, inside the databases directory.

...

  1. Define a DataSource by adding a datasource definition to Tomcat_Home/conf/server.xml.
  • a.Find the end-of-section marker </GlobalNamingResources> and add the following lines just above it:

...

url="jdbc:derby:c:\apache-tomcat-5.5.17\Databases/dastest"/> 8.

  1. Start tomcat and point your browser to: http://localhost:8080/sample-companyweb-Image Modified version tag/
    example: http://localhost:8080/sample-companyweb-1.0-incubator-M2/Image Modified

Sample Architecture

This is a simple, single-page, web application. The main components of this application are:

...