Versions Compared

Key

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

...

Follow the steps given below before you build and run the sample.

  1. Open the maven  pom.xml file, which is in a command prompt and navigate to the base directory of the sample (i.e.,  <PRODUCT_HOME>\samples\HelloWorldWebapp).
  2. Build the demo and create a WAR file using the following command.

    Code Block
    mvn clean install

    This will create the sample webapp WAR file (wso2appserver-samples-hello-webapp-1.0.war file) and copy it to  in the target folder of the <AS_HOME>/repository/deployment/server/webapps/ samples/<sample-name> directory.

  3. Start the WSO2 Application Server by following the instructions in Running the Product.
  4. You can now deploy deploy the web app in two ways:
    • Manually copy the WAR file to the <AS_HOME>/repository/deployment/server/webapps directory.
    • Deploy the WAR file you created in step 2
    above,
    • using the management console as detailed here.

Using Apache Ant to deploy applications

...