Creating a Web Application
You can use Developer Studio to create a web application (webapp), which you can host on the Application Server. You can create a new webapp or import an existing webapp from a WAR file.
As you create the webapp, you can configure facets, runtimes, an EAR project, and the context root. For information on these concepts, see the topic on creating a dynamic web project in the Eclipse help (click Help -> Help Contents and search for "dynamic web project").
Creating a new webapp
Follow these steps to create a new webapp. Alternatively, you can import an existing webapp.
- Open the Developer Studio Dashboard (click Developer Studio -> Open Dashboard) and click Web Application.
- Select Create New Web Application and click Next.
- Type a unique name for the webapp project, and then either leave the default location, or clear the check box to specify a new location where you want to create the project.
 - Specify the server runtime environment (the container in which the webapp will run). To enable the webapp to run with WSO2 Carbon products, click New Runtime, expand the WSO2 folder and select the version of Carbon.
 - Specify the carbon home path and click Finish.
 - Specify the dynamic web module version (the version of the Servlet API) that is compatible with the target container.
- Specify the configuration you want to use as the starting configuration for this webapp. To modify the facets and limit the runtimes that this project is compatible with, click Modify.
- Optionally add this project to an Enterprise Archive file (EAR) and working sets.
- Click Next, and either leave the default web module settings or configure the settings as needed.
- Click Next and optionally configure the Maven settings.
- Click Finish.
The new webapp project has now been created in the workspace. You can export this webapp to a web archive (WAR) file by right-clicking the project and choosing Export -> War File. You can then import it into another project or environment.
Importing an existing webapp
Follow these steps to import an existing webapp from a WAR file. Alternatively, you can create a new webapp.
- Open the Developer Studio Dashboard (click Developer Studio -> Open Dashboard) and click Web Application.
- Select Import Web Application and click Next.
- Specify the WAR file by typing its full path name or clicking Browse and navigating to the file.
 - Click Next if you want to specify Maven information.
- Click Finish.