Kbase 20321: Setting up Tomcat With AIA Version 9.1X
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  09/04/2003 |
|
Solution ID: 20321
GOAL:
Setting up TomCat to work with Progress AIA?
FACT(s) (Environment):
Progress 9.1B
FIX:
Follow these steps to set up Tomcat:
(The below examples reference /usr1/dlc91b as the
installation directory for AIA.)
1) Edit the configuration file web.xml (under $TOMCAT_HOME/conf.
You must add a servlet section for AIA. This is an example:
<servlet>
<servlet-name>
Aia
</servlet-name>
<servlet-class>
com.progress.aia.Aia
</servlet-class>
<init-param>
<param-name>InstallDir</param-name>
<param-value>/usr1/dlc91b</param-value>
</init-param>
<init-param>
<param-name>instanceName</param-name>
<param-value>Aia1</param-value>
</init-param>
<init-param>
<param-name>PropertyFileName</param-name>
<param-value>/usr1/dlc91b/properties/ubroker.properties</param-value>
</init-param>
<load-on-startup>
-2147483646
</load-on-startup>
</servlet>
2) Edit tomcat.sh under $TOMCAT_HOME/bin). It is necessary to add one file
to the CLASSPATH. For example, add the following lines to the
file:
CLASSPATH=/usr1/dlc91b/java/aia.zip:${CLASSPATH}
export CLASSPATH
3) Stop the Apache Web server.
4) Set up the environments DLC, WRKDIR and library path before
you start Tomcat. These variables may be defined in
tomcat.sh:
a) DLC sets the directory where AIA is installed.
b) WRKDIR sets the work directory. This was specified at install.
c) Add $DLC/lib to the library path variable. It might
differ depending on the operating system (for example,
LIBPATH on AIX, HLIB_PATH on HP-UX, LD_LIBRARY_PATH on
Solaris etc.).
5) Start Tomcat and the Web server.
6) Use the following URL to test your AIA configuration:
http:/host-name:port/servlet/Aia
where host-name is the Web Server name, port is the
Web server port number and AIA is the servlet name that was
defined. An OK message should appear from the AIA or
the message 'Internal Commands Restricted: Access Denied'.