...
Follow the steps given below before you build and run the sample.
- 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
). 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.- Start the WSO2 Application Server by following the instructions in Running the Product.
- 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
- using the management console as detailed here.
- Manually copy the WAR file to the
Using Apache Ant to deploy applications
...