WSO2 AppServer supports Apache tomcat based web application deployment as a latest feature. Now you can Deploy your custom web application under WSO2 AppServer. 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 needed, and then deploy the archive.
To deploy the web application, all you have to do is locate
the archive file and upload it.
Uploading Web Archive Files
To upload your web archive file, you first need to have all the class
files and the service.xml files in the archive directory. Thereafter, you can
create the archive file.
The folder structure of the web archive file will be as follows.
In the navigator, under Manage/Web Applications, click Add
.
Click Browse to locate the file you want to
upload. If you want to add multiple services at the same time, click on the
'+' sign at the right side, and new additional entry to upload a service archive
will appear each time you click. So you can select all the services you want and deploy them at the same time.
Click Upload.
The Running Web Applications page
appears. Subsequently, if the web application is successful, it will appear in
list. If the web application is faulty, a Faulty Web Application
Groups link will appear. You can click the link to view the errors.
Testing the Web Application
A successful web application can be easily tested through the user
interface.Several options are available to control your web application.
In the navigator, under Manage/Web Applications, click List.
The Running Web Applications page appears.
Figure 2: Web Applications List.
Click on the web application name you want to test. The Web Application
Dashboard page appears.
Figure 3: Web Application Dashboard.
A page with your web application name appears. It contains the operations
available for your web application.
Clicking the 'url' you will be directed the web application's index.html page
Note: Instead of using this user interface, you can also manually place
the .war containing all the required files
into CARBON_HOME/epository/deployment/webapps. These archive files can be deployed
as web applications.