This documentation is for WSO2 Developer Studio version 3.7.1. View documentation for the latest release.
Creating a Web Application - Developer Studio 3.7.1 - WSO2 Documentation
                                                                     
||
Skip to end of metadata
Go to start of metadata

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 (choose 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.

  1. Open the Developer Studio Dashboard (choose Developer Studio -> Open Dashboard) and click Web Application.
  2. Select Create New Web Application and click Next.
  3. 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.
  4. 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, and then complete the steps in the wizard.
  5. Specify the dynamic web module version (the version of the Servlet API) that is compatible with the target container.
  6. 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.
  7. Optionally add this project to an Enterprise Archive file (EAR) and working sets.
  8. Click Next, and either leave the default web module settings or configure the settings as needed.
  9. Click Next and optionally configure the Maven settings.
  10. 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.

  1. Open the Developer Studio Dashboard (choose Developer Studio -> Open Dashboard) and click Web Application.
  2. Select Import Web Application and click Next.
  3. Specify the WAR file by typing its full pathname or clicking Browse and navigating to the file.
  4. Click Finish.
  • No labels