Previous Topic: Delete OperationsNext Topic: Creating Custom Proxies and Web Services


How to Deploy an Application

You need to generate the required files into the site project directory to deploy an application.

When you generate an Action Set, a separate directory is created for each Action Set as shown next:

<site directory>/Action Sets/<action set name>.html

This Action Set directory includes the following:

The Action directory includes the following files that are generated for each operation contained in the Action:

After generating the Action Sets, you can include the generated files in the Web View application WAR file using Build Tool.

Note: For more information about including generated files in the WAR file, see the Build Tool User Guide or the Build Tool Help.

Follow these steps:

  1. Open the site project in Web Service Access Designer.
  2. Right-click the HTML file in the Web Service Access Navigator and select Generate Action Set.

    All the required XML and XSL files are generated into the site project directory.

  3. Open the HTML file in a browser window.
  4. Execute the actions defined in Adobe Dreamweaver.

    The generated XSL files are executed and the result is displayed in the browser.

Follow these steps:

  1. Assemble the generated application in the Build Tool.

    Note: For information about assembling an application using Build Tool, see the Build Tool User Guide.

  2. Update PATH to include <JDKDIR>\bin.
    PATH=<JDKDIR>\bin;%PATH%
    
    <JDKDIR>

    Defines the root folder of a J2SE JDK installation.

  3. Use the jar command to package everything in the Adobe DreamWeaver site project folder where a .project file exists.
    cd <DreamWeaverSiteProjectFolder>
    
    jar -cvf ..\<DreamWeaverSiteProject>.war
    
    <DreamWeaverSiteProjectFolder>

    Defines the folder name where the site project is available.

    <DreamWeaverSiteProject>

    Defines the name of the .war file to be created.

  4. Extract the .ear file from Build Tool to an empty folder with the jar command.
    cd <NewJarFileFolder>
    
    jar -xvf <PathToCAGenModel>\Java\deploy.j2ee\<CAGenModel>.ear
    
    <NewJarFileFolder>

    Defines the path where the new jar file is to be created.

    <PathToCAGenModel>

    Define the path where the CA Gen model is available.

    <CAGenModel>

    Defines the name of the CA Gen model.

  5. Copy the .war file created in Step 3 into the folder where the .ear file was extracted.
    copy <PATHtoTheWarFile>\ <DreamWeaverSiteProject>.war
    
    <PATHtoTheWarFile>

    Defines the path where the new .war file is to be created.

  6. Edit META-INF\application.xml to include the following XML elements.
    <module>
    
    <web>
      <web-uri> <DreamWeaverSiteProject>.war</web-uri>
      <context-root> <DreamWeaverSiteProject> </context-root>
    </web>
    
    </module>
    

    If the <module> tag already exists in the application.xml file, merge this code fragment.

  7. Recreate the jar file with the updated contents in the folder.
    jar -cvf ..\<NewGenModel>.ear
    
    <NewGenModel>

    Defines the name of the new CA Gen model.

    The application is deployed to the Application Server.