Kbase P21937: How to setup AIA as a web application with ServletExec.4.1 and 4.2.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/15/2008 |
|
Status: Verified
GOAL:
How to setup AIA as a web application with ServletExec.4.1 and 4.2.
GOAL:
How to setup AIA as a webapp with ServletExex
FIX:
1. Create 3 folders for the AIA web application under the New Atlanta\ServletExec ISAPI\webapps directory of ServletExec
aia
aia\WEB-INF
aia\WEB-INF\lib
The full directory tree should be similiar to New Atlanta\ServletExec ISAPI\webapps\aia\WEB-INF\lib
2. Create a web.xml file in the New Atlanta\ServletExec ISAPI\webapps\aia\WEB-INF folder containing the following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Appserver Internet Adapter</display-name>
<servlet>
<servlet-name>Aia</servlet-name>
<display-name>Appserver Internet Adapter</display-name>
<servlet-class>com.progress.aia.Aia</servlet-class>
<init-param>
<param-name>instanceName</param-name>
<param-value>Aia1</param-value>
</init-param>
<init-param>
<param-name>InstallDir</param-name>
<param-value>{ProgressInstallDir}</param-value>
</init-param>
<init-param>
<param-name>propertyFileName</param-name>
<param-value>{ProgressInstallDir}/properties/ubroker.properties</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>Aia</servlet-name>
<url-pattern>/Aia/*</url-pattern>
</servlet-mapping>
</web-app>
3. Insert the path to the Progress DLC directory for {ProgressInstallDir}.
4. Copy the Progress file <Progress DLC>/java/aia.zip to the New Atlanta\ServletExec ISAPI\webapps\aia\WEB-INF\lib folder created.
5. Start the admin utility for ServletExec - http://hostname/servlet/admin
6. Go to Web Applications - managed
Enter the following:
Application Name - aia
URL Context Path - /aia/
'Location <path to the aia folder you created>
Select Submit
7. Stop/start the ServletExec
8. Test the AIA. The URL is
http://hostname/aia/Aia
If using the ServletExec ISAPI version perform the following:
9. Add the following to the end of the
\ServletExec ISAPI\ServletExec Data\default directory\rules.properties file:
/aia/Aia=Aia
10. Add the following to the end of the
\ServletExec ISAPI\ServletExec Data\default directory\servlets.properties file:
# Aia servlet
servlet.Aia.code=com.progress.aia.Aia
Servlet.Aia.initArgs=InstallDir="",
instanceName="aia1",
propertyFileName="\\properties\\ubroker.properties"