...
- Open the maven
pom.xml
file, which is in 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
<AS_HOME>/repository/deployment/server/webapps/
directory.- Start the WSO2 Application Server by following the instructions in Running the Product.
- 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
...
- Run the WSO2 Application Server. For instructions see, Running the Product.
In a command prompt, switch to the samples directory.
For example, in Windows:Code Block cd <AS_HOME>\samples\HelloWorldWebapp
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.