This section describes how to integrate iWay Data Profiler (iDP) with Apache Tomcat.
<Tomcat_Home>\tomcat\bin
where:
Is the path where Tomcat is installed (for example, C:\ibi\apps).
A new property window appears.
Note: You can skip this step if you are using an existing Tomcat.
<Tomcat_Home>/conf/Catalina/localhost
<?xml version='1.0' encoding='utf-8'?>
<Context docBase="<dphome>\idpweb" path="/idpweb">
</Context>
where:
Is the path where iDP is installed.
Note:
<Tomcat_Home>/work/Catalina/localhost
cd <dphome>\idpweb
jar -cvf idpweb.war *
Note: Ensure that Java is properly configured on the system.
The idpweb.war file is created in the idpweb folder location.
This procedure assumes that Apache Tomcat is installed in CATALINA_HOME, running on a local machine on the standard port 8080.
Before deploying applications on Apache Tomcat, the context name (for example, the relative URL of the application) must be defined. If the context name is idpweb, then iDP will be accessible from the following URL:
http://localhost:8080/idpweb/
The basic methods to deploy the iDP Web Archive (WAR) are:
http://localhost:8080/manager/html.
Note: If the user ID and password are not available, then check the Apache Tomcat documentation and ensure that the manager role and admin user are defined in CATALINA_HOME/conf/tomcat-users.xml as follows:
<role rolename="manager"/> <user username="admin" password="password" roles="manager"/>
Note that the default content of CATALINA_HOME/conf/tomcat-users.xml is slightly different across all Apache Tomcat versions. Regardless of the version used, ensure that the manager role and the admin user are defined as described above.
The following success message is displayed at the top of the page.
OK - Deployed application at context path /idpweb
In the Applications section, check that there is a row with the new idpweb application, as shown in the following image.
The application is now ready and available at the specified URL.
The technique described in the previous section will work if you can copy the idpweb.war file to the file system of the server. If you cannot, it is still possible to deploy the file using a remote deployment.
The browser uploads the idpweb.war file to the server and Apache Tomcat will deploy the file.
Many Apache Tomcat installations do not offer the Apache Tomcat Web Application Manager for security reasons. Apache Tomcat has a useful auto-deploy feature that you can use.
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
Note the values of the autoDeploy and unpackWARs attributes. If they are both true, then proceed to the next step.
Apache Tomcat will automatically detect the new WAR file, open it, and deploy the application.
Deploying iDP as a Web Archive (WAR) file in Apache Tomcat will change the location of the idpweb folder, which should be reflected in the dpcontext.properties file as a result.
<TOMCAT_INSTALL_DIR>\<webapps>\<deployed idpweb folder>\WEB-INF\classes\dpcontext.properties
For example:
idppath=<TOMCAT_INSTALL_DIR>/<webapps>/<deployed idpweb folder>
iWay Software |