The following example provides a stepwise description of deploying a simple Dialog Designer application with Apache Tomcat Server on Windows Server 2003.
- Configure Apache Tomcat 5.5/Tomcat 6:
- Download and install the Apache Tomcat software to your Windows 2003 server.
- Run the installation using the default settings.
- Create an application.
- Write a simple "Hello World" application in the Eclipse development environment that
- Says "Hello World" (This is done using the "Announce" node in the call flow)
- Test your application:
- Test the application in the simulator in the Eclipse IDE. You should hear your announcement "Hello world".
- Incase the application is not working; refer to the VXML log in the simulator.
- Export your application using Export Dialog Designer Speech Project wizard:
- After testing the application, stop the Tomcat server.
- Click File > Export to export your project.
- In the Select page of Export Dialog Designer Project Wizard, select Export Dialog Designer Speech Project.
- In the Specify Export Parameters page, select your project from the Available Projects panel.
- Specify the Destination Directory.
- Depending on your base platform, change the Target Platform to Voice Portal or IR. The default value is Desktop. Click Next.
- In the Configure Web Application Descriptor page, keep the default settings unchanged and click Finish.
- Export your application using Export Runtime Support Files wizard:
Note:
Installing runtime support files and the runtime configuration web application only
has to be done during the initial application server setup or after installing Dialog
Designer updates or service packs. If the Application server already has been
configured for Dialog Designer applications then steps 5-7 can be skipped.
- In the Select page of Export Dialog Designer Project Wizard, select Export Runtime Support Files.
- In the Application Server field, select the installed application server from the list.
- For creating the runtime config file, check the Export Dialog Designer runtime configuration application.
- Enter a path where the runtime support and runtime config files will be saved. Alternatively, click Browse to navigate to an appropriate directory.
- At your chosen destination directory, the following three files will be created:
- runtimesupportTomcat<version number>.zip
- The application is now exported.
- Prepare the application server:
- Unzip the runtimeSupportTomcat<version number>.zip into Tomcat's common directory.
- Copy the runtimeconfig.war file to the webapps folder.
- For example, C:\Program Files\ApacheSoftware Foundation\Tomcat 5.5\webapps
- Restart the Apache Tomcat Service on the Application Service.
- Launch the runtimeconfig web page using your server IP address.
- For example, http://<server_IP_address>:8080/runtimeconfig
- Under License Server, provide the license URL.
- Under Proxy Settings, set the same proxy settings as in your Eclipse IDE.
- (Window > Preferences > Dialog Designer)
- Set the proxy settings only when the application server machine is on a different side of the firewall from the license server, or any other network resources (that is, web services) that the applications need to access.
- Deploy the application:
- Copy the application war file (HelloWorld.war) to the webapps folder of the application server.
- Restart the Apache Tomcat server.
To deploy the application on a Voice Portal (VP) system, refer the following Voice Portal documentation:
- ConvertToSingleServer.pdf (Chapter 7: Adding the Voice Portal Test Application and Chapter 8: Running the Sample Application)
To deploy the application on a Interactive Response (IR) system, refer the following Interactive Response (IR) document:
- ApplicationDevelopment.pdf