Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The WSO2 Application Server supports Apache Tomcat based Web application deployment. All you need to do is to bundle your Web application as a .war archive with all your Web application related resources and all third-party libraries, and then deploy the archive. This sample demonstrates how you can get started quickly with WSO2 Application Server, by deploying your custom web application.

You can use Maven or Apache Ant to deploy the applications as follows:


Using Maven to deploy applications

Apache Maven 3 is recommended to build the samples.

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

  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.

    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

You need Apache Ant 1.6.2 or higher to build the sample.

You can find the sample discussed here in the <AS_HOME>/samples/HelloWorldWebapp directory.

The steps are as follows:

  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:

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

    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 window.

  • No labels