Deploying Your Custom Web Application
The WSO2 Application Server supports Apache Tomcat based Web application deployment as a latest feature. 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 the functionality of the Web Application deployment support in the WSO2 Application Server.
Building the sample
You can find the sample discussed here in the <AS_HOME>/samples/HelloWorldWebapp
directory.
The steps are as follows:
- Run the WSO2 Application Server. For instructions see, Running the Product.
In a command prompt, switch to the samples directory.
For example, in Windows:cd <AS_HOME>\samples\HelloWorldWebapp
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.