Versions Compared

Key

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

...

  1. Open the maven  pom.xml file, which is in 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  <AS_HOME>/repository/deployment/server/webapps/ directory.

  3. Start the WSO2 Application Server by following the instructions in Running the Product.
  4. You can now deploy the WAR file you created in step 2 above, using the management console as detailed here.

Using Apache Ant to deploy applications

...

  1. Run the WSO2 Application Server. For instructions see, Running the Product.
  2. In a command prompt, switch to the samples directory.
    For example, in Windows:

    Code Block
    cd <AS_HOME>\samples\HelloWorldWebapp
  3. Enter the following command:

    Code Block
    ant

    This will copy the sample webapp (wso2appserver-samples-hello-webapp-1.0.war file) in to <AS_HOME>/repository/deployment/server/webapps/ directory. If you log into the Application Server, you will see the deployed webapp on the running applications windowRunning Applications screen.