This document contains instructions for installing EDM at both a central site, and a remote site. At central sites, the system is typically installed on a web server so users can access it from a web browser. If the web server is visible over the internet, users can access it from anywhere they have an Internet . At remote locations, the system is usually installed in standalone mode without a web server. Standalone mode allows users to access the system without installing a web server but it can only be used in single-user installations. The standalone mode does not support multiple users because it does not synchronize changes to cached system data among multiple users.
A typical lab system has one central system and one remote system that can be on the same PC or a difference PC from the central system. To install EDM for a lab test, follow the directions in each of the following sections:
The system has been tested with the Apache Tomcat Servlet Container version 6.x, 7.x and 8.x. Note that the application being maintained by the system, such as the POS system, does not have to be installed on the server. If you already have the Apache Tomcat Web Server installed, you will need to set it's folder in the setup batch file before continuing.
To install the central system, take the following steps:
Run the executable file that begins with EDM-Server-Setup and follow the prompts to install for your system. By default, the system will be installed in the folder C:\EDMServer.
Test your installation by opening your browser to: http://localhost:8080/edm (if you are not on the same machine as the server, replace localhost with the server name or IP address). Login using userid admin and password admin. At installation, the system has the following predefined user id/password combinations:
The Tomcat Web Server is installed as a service, so, to start, stop, or restart Apache Tomcat, use the Services option under Administrative Tools in the Control Panel.
To use the Tomcat Manager to reload the application after updates or configuration changes, add a user to the conf\tomcat-users.xml file in the Tomcat folder with the following format: <user username="me" password="mypassword" roles="tomcat,manager,admin"/> (change the username and password as necessary), restart Tomcat, browse to http://localhost:8080/manager/html (replace localhost with server name if necessary), enter your userid and password, and click Reload on the line that has the /edm path.
Users may set up a 'transaction server' in addition to the main web server. The transaction server handles inserting rows into the audit table, committing packages, and processing incoming transactions. Using a separate server for transaction processing relieves the main web server of those tasks and improves performance on the main web server. The main web server checks the transaction server's status before forwarding each command to verify that it is available and is running the same version of the software as the main web server. If the transaction server is not available then transaction processing will be performed on the main web server. Since committing and transaction processing may occur on either server, it is important to set the localSendDir and localReceiveDir elements in config.xml to refer to the same server and directory on both the transaction server and the main web server.
To configure the web server to forward transaction processing tasks to a separate transaction server take the following steps:
Set a separate server running Tomcat and copy the webapps\edm folder from the main server to the transaction server.
Set the localSendDir and localReceiveDir elements in config.xml to refer to the same server and directory on both the transaction server and the main web server.
Install a valid license file on the transaction server and restart the Tomcat service on the transaction server and check the log.txt file to ensure a successful start.
On the main web server, add a line to config.xml for each company that is to forward transaction processing commands to the transaction server like this:
transactionServerURL = "http://transerver:8080/edm"
On the main web server, remove the schedule tasks for processing transactions and purging the audit trail since these will now run on the transaction server.
Restart the Tomcat service on the main web server.
Configure all remote sites to communicate directly with the transaction server when transferring transaction files.
If command forwarding is working properly, you will see a line in the log.txt file on the main web server similar to the following the first time you commit or process transactions:
INFO Connected to transaction server http://transerver:8080/edm/xmlcommand.do.
If the connection to the transaction server fails, you will see a warning message in the log like this
WARNING Failed to connect to transaction server http://transerver:8080/edm/xmlcommand.do.
and the transaction processing will be performed on the main web server.
If transaction server is running a different software version than the main web server, you will see a warning message in the log like this
WARNING Invalid software version on transaction server: Version 6.2 at http://transerver:8080/edm/xmlcommand.do, must match the software version on this server: Version 6.3.
and the transaction processing will be performed on the main web server.
If main web server is configured to forward messages to itself, you will see a warning message in the log like this
WARNING This server is configured to forward to itself, forwarding is ignored.
and the transaction processing will be performed on the main web server.
Although it is possible to configure the transaction server to forward transaction processing commands to yet another server, this will reduce performance and leads to the possibility of creating an endless circular forwarding loop.
The system is usually installed in standalone mode at remote sites because there is no need to support more than one user at a time. For a convenient lab system, the remote system may be installed on the same computer as the central system.
To install the standalone remote system, take the following steps:
Run the executable file that begins with EDM-Remote-Setup and follow the prompts to install for your system. By default, the system will be installed in the folder C:\EdmWeb.
Both 32 bit and 64 bit versions of EDM are available. The 64 bit version has "64" in the filename.
You can start the system for the remote location by double-clicking C:\EdmWeb\go.bat.
Because the central system does not have direct access to the application (such as the POS system), the system must request the table list and table structures from a remote site to create the central database tables. Once the system is installed at the first remote site, take the following steps to create the application tables in the central database:
At the central site, add a site record for the site from which you plan to get the application table list by double-clicking Edit Locations And Groups on the Locations branch of the main menu. Click the add record (+) on the tool bar and enter the site number and name, then close the site form.
Double-click Request Table List on the Transactions branch of the main menu, select the new site and click OK, click OK again to select the default package, click Yes to commit the transaction.
Configure the remote site to be able to communicate with the central web server to transfer transaction files. See Web Transfer for detailed instructions.
Transfer the transaction file (1.xml) from the
Outgoing\sitenumber folder to the Incoming\0
folder at the remote site by double-clicking transfer_web.bat
in the installation folder (usually C:\EdmWeb).
At the central site, click Process All Transactions on the Transactions branch of the main menu to process the incoming table list and create the central application tables.
If you already have a system set up with central tables and you want to support additional data sources at the remote sites, take the following steps:
Backup the EdmWeb database and C:\EdmWeb folder at the site.
Add a new <dataSource section to the config.xml at the store that has a unique name and appropriate settings for server name, database, userid, and password.
Run go.bat so EDM loads the new dataSource into the local schema.xml file.
Backup the EdmWebHQ database and jakarta...\webapps\edm\web-inf\classes folder at central.
Use Transactions - Request Table List from central to get the new table structures set up at central. This step only needs to be done once.
Use Transactions - Request Table Refresh from central to load data for the new table. This step needs to be repeated for each site.
Once the central database tables have been created using the insructions in the previous section, you can load site data for each remote site by taking the following steps:
At the central site, add a site record for each site from which you plan to load data by double-clicking Edit Locations And Groups on the Locations branch of the main menu. Click the add record (+) on the tool bar and enter the site number and name. When finished, close the site form.
Click Request Table Refresh on the Transactions branch of the main menu, select POS v.v.v Configuration Tables (where v.v.v is the version of POS you are using) and click Ok, select the site and click Ok, click Ok again to select the default package, click Yes to commit the transaction.
Transfer the transaction files from the Outgoing\sitenumber
folder to the Incoming\0 folder at the remote site by
double-clicking transfer_web.bat
in the installation
folder (usually C:\EdmWeb).
At the central site, click Process All Transactions on the Transactions branch of the main menu to process the incoming table refresh which loads the site data into the central database.
Optionally, users can load location data into the central database by physically bringing the location data to the central location and loading it directly. This is normally only used in lab settings as it is problematic to bring entire application databases from a large number of remote sites.
For remote sites running IRIS, take the following steps:
Backup the SQL Server IRIS database at the remote location and restore it to a SQL Server system that is visible to the central system.
At the central site, add a site record for each site from which you plan to load data by double-clicking Edit Locations And Groups on the Locations branch of the main menu. Click the add record (+) on the tool bar and enter the site number and name. When finished, close the site form.
Click Load Location Data on the Location branch of the menu.
Select the new location.
The system allow you to have more than one company on the central server. For example, if you have a group of hamburger restaurants and a group of coffee shops that are maintained separately, you could have two separate companies set up. Each company has its own database of sites and data so that there can be a site 1 in both companies. To set up an additional company take the following steps:
Edit your config.xml file (by default it is in the folder C:\EDMServer\webapps\edm\WEB-INF\classes).
Copy the existing company element to the clipboard as shown below (from the <company line to the </company> line inclusive).
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE config> <config version = "3"> <company . . . </company> </config>
Paste the copied company in after the </company> line and before the </config> line as shown below so that you have two company sections inside the config section..
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE config> <config version = "3"> <company . . . </company> <company . . . </company> </config>
Edit the properties in the second company section as follows (use an appropriate name instead of COFFEE):
centralSiteName = "COFFEE HQ"
thisSiteName = "COFFEE HQ"
schemaFile = "schema_iris_COFFEE.xml"
(In the systemDataSource section) database = "EdmWebCOFFEEHQ"
Restart the Apache Tomcat service.
If you plan to use the Apache Tomcat Web Server that was installed with the system as the primary web server instead of an Apache or Microsoft or some other web server, you will want to change the default HTTP port for Tomcat from 8080 (it's default value) to 80 (the standard HTTP port).
Use Notepad to edit TomcatFolder\conf\server.xml and change the line that begins with <Connector port="8080" to begin with <Connector port="80".
Restart Apache Tomcat from the Start menu by selecting Control Panel – Performance and Maintenance – Administrative Tools – Services. Click on the Apache Tomcat service and click on Restart.
Now you can use the central system by opening your browser to: http://localhost/edm (if you are not on the same machine as the server, replace localhost with the server name or IP address).
If you are already using Microsoft Internet Information Services as your web server, you can integrate Tomcat with IIS so that users can access the system through IIS. Tomcat is still required because IIS does not include support for Java Server Pages (JSP) or Java Servlets.
To configure IIS to allow Tomcat to handle JSP's and Servlets, take the following steps:
Open the Control Panel, select Performance and Maintenance, select Administrative Tools, double-click Internet Information Services.
Right-click Default Web Site, select New – Virtual Directory..., click Next, enter jakarta as the alias, click Next, click Browse and select TomcatFolder\bin\win32\i386, click Next, uncheck the Read option, check the Execute option and click Next, click Finish.
Right-click Default Web Site, select Properties, click the ISAPI Filters tab, click Add, enter jakarta as the filter name, click Browse and select TomcatFolder\bin\win32\i386\isapi_redirect.dll, click OK, click Ok to close the properties window.
If you are running IIS 6 or higher, right-click Web Sites, select Properties, click the Service tab, check the IIS 5.0 isolation mode option, and click OK.
If you are running IIS 6 or higher, click on Web Service Extensions, select Add a new Web service extension, enter jakarta as the extension name, check the checkbox for Set extension status to Allowed, click the Add button, click Browse and select TomcatFolder\bin\win32\i386\isapi_redirect.dll, click OK, click Ok to close the extension window.
Restart IIS by right-clicking the local computer and select All Tasks – Restart IIS....
Close the IIS management window.
Test your installation by opening your browser to: http://localhost/edm (if you are not on the same machine as the server, replace localhost with the server name). Login using admin as the userid and password.
You can optionally configure your system to use SSL to encrypt all communications between browsers and the web server to keep your data from being viewed by hackers. This configuration varies based on your web server and you should refer to your web server documentation for details. If you are using Tomcat only as a JSP container while using Apache or IIS as the primary web server, you should configure the primary web server for SSL communictation.
As an example, the steps for configuring a Tomcat web server are given here:
Generate a keystore and remember the keystore password by using the following command from the command line. Note that when the program prompts you for the Common Name, you should enter the exact server name (like www.mycompany.com) that you use when you browse to the web page and, if you are using the transfer_web function, when you configure the Transfer Host field in Edit Locations and Groups.
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA -keystore /my/keystore/path/.keystore
Uncomment and update the SSL Connector configuration in CATALINA_HOME/conf/server.xml
<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --> <Connector port="8443" maxThreads="150" minSpareThreads="25"maxSpareThreads="75" enableLookups="false"disableUploadTimeout="true" acceptCount="100" debug="0"scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystorePass="myKeystorePassword" keystoreFile="/my/keystore/path/.keystore" />
Uncomment the following security constraint in CATALINA_HOME\webapps\edm\WEB-INF\web.xml
<!-- Ensure SSL used for all pages --> <security-constraint> <web-resource-collection> <web-resource-name>main</web-resource-name> <url-pattern>/main</url-pattern> <url-pattern>/main/*</url-pattern> <url-pattern>*.do</url-pattern> <url-pattern>/login.jsp</url-pattern> <http-method>GET</http-method> <http-method>POST</http-method> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint>
Restart the Apache Tomcat service.
Access the system as usual from a browser and accept the certificates when prompted. Notice that the protocol on the address line is https: instead of http:.
To change the amount of memory allocated to Java and EDM on a central system running with the Apache Tomcat web server take the following steps:
On the server running Apache Tomcat, select Start – All Programs – Apache Tomcat– Configure Tomcat
Click on the Java tab
Set the Initial memory pool size to the desired number of megabytes, the default is 64.
Set the Maximum memory pool size to the desired number of megabytes, the default is 64.
Click OK
You can increase the amount of memory available to the system at a remote site by editing the parameters used when starting java from the command line in go.bat in the installation folder (C:\EdmWeb by default). The increase the available memory take the following steps:
Right click go.bat in the installation folder (C:\EdmWeb by default) and select 'Edit'.
Insert the following parameters just before -Duser (change the number of megabytes as desired): -Xms64m -Xmx256m
Close and save go.bat
The following sample shows a modified go.bat that runs the system in the C:\EdmWeb folder with 64mb of initial memory and 256mb maximum memory use:
@"%JAVA_HOME%\bin\java.exe" –Xms64m –Xmx256m "-Duser.dir=C:\EdmWeb" -jar C:\EdmWeb\lib\system.jar "-user=remote" "-pwd=remote" %1 %2 %3 %4 %5
To uninstall the central system, take the following steps:
Use SQL Server Enterprise Manager to drop the EdmWebHQ database.
Uninstall Apache Tomcat from the Add/Remove Programs option in the Control Panel (be sure to answer Yes when asked to delete all files).
If you are not using Java for other purposes on the system, uninstall the Java Runtime Environment 5.0 from the Add/Remove Programs option in the Control Panel.
To uninstall the central system, take the following steps:
Use SQL Server Enterprise Manager to drop the EdmWeb database.
Delete the C:\EdmWeb folder and all subfolders..
If you are not using Java for other purposes on the system, uninstall the Java Runtime Environment 5.0 from the Add/Remove Programs option in the Control Panel.
When users access the system through a browser that is using a Java 6 plugin, they may see a yellow warning icon pop up next to the EDM windows. To stop this behavior for the EDM applet (and all other applets), users can modify the java.policy file which is found in the security folder. The path is something like %JRE_HOME%\lib\security\java.policy. Add the following line to the file then restart the browser:
permission java.awt.AWTPermission "showWindowWithoutWarningBanner";