com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Deploying an Exploded Web App

WSO2 Developer Studio simplifies the deployment of Web Applications to WSO2 carbon based servers by facilitating the export of exploded Web Apps instead of having to package them into Composite Application (C-App) projects. 

Creating a web application

  1. Create a web application.
  2. Add the javaee-web-api.jar to the build path.
  3. In order to enable context reloading, place a context.xml file (see example content below) in the META-INF folder of the web app.

    <Context reloadable="true">
        <Loader className="org.wso2.carbon.webapp.mgt.loader.CarbonWebappLoader" loaderClass="org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader"/>
    </Context>

Importing a web application

  1. After importing the existing web application, add the javaee-web-api.jar to the build path.
  2. A sample web application can be found here.

Deploying the Web Application to WSO2 carbon based servers

  1. Click Window > Show View > Other as shown below.

  2. Click Servers under the Server folder.



  3. On the Servers view, click the link to create a new server.



  4.  Select the carbon server version.



  5. Click the Add link next to the the Server Runtime Environment field.
  6. Browse to the WSO2 AS server (in this case 5.3.0) as shown below and click Finish.


     
  7. Add the web application to be configured in the server.


     
  8. Right-click on the server and click Start.


     
  9. WSO2 Application Server will automatically start and the web application will be deployed to the server. After logging in to the server, click List under the Web Applications category to view the deployed Web Application.

  10. Click Go To URL and the web page opens as shown below.

     

Republishing the web application

  1. It is possible to change the web application. For example, change the title in the index.jsp to <h3>Welcome !!!!!!</h3>. The web application will automatically be republished to the server.


     
  2. You can view the change by refreshing the web page.

     
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.