Installing Loftware DaVinci
Loftware DaVinci is a web application used to compare images. You can use DaVinci within Label Design
Spectrum is delivered with a DaVinci package that can be deployed on your web server alongside Spectrum. Configuration is required, and you will have to restart the Loftware Spectrum service after making changes to configuration files.
The installation package is available from the downloads folder of your Spectrum Application Server at the following URL:
http://[hostname]:[port]/downloads/DaVinciPackage.zip
Deploy and Configure the Loftware DaVinci Application
To use Loftware DaVinci within Label Design
- Download or copy the DaVinciPackage.zip installation package to the Spectrum Application Server.
- On the Spectrum Application Server, unzip the DaVinciPackage.zip installation package. Recommended location: <SPECTRUM_HOME>\DaVinci
- Navigate to the folder where you extracted the installation package.
Example
<SPECTRUM_HOME>\DaVinci
- Copy the davinciHtml5.war and dvserver.war files in the folder into the <SPECTRUM_HOME>\product\webapps folder on the Spectrum Application Server.
Note: This folder also contains loftwareserver.war and spectrum-server.war. A davinciHtml5 and dvserver folder will be created under the webapps folder after copying the files into the folder.
- Navigate to the DaVinci folder and unzip the dvserver-configure.zip package.
Example
<SPECTRUM_HOME>\DaVinci\dvserver-configure
- Navigate to location you extracted the dvserver-configure package.
- Copy the following files in the folder into the <SPECTRUM_HOME>\product\conf folder on the Spectrum Application Server.
- database.properties
- dvConfig.properties
- standalone.properties
- Navigate to the DaVinci folder and unzip the davinciHtml5-configure.zip file.
- Navigate to the location you extracted the davinciHtml5-configure.zip package.
- Copy the following files in the folder into the <SPECTRUM_HOME>\product\conf folder on the Spectrum Application Server.
- config.properties
- configuration.xml
- Create a DVStore location.
Example
C:\DVStore
- Create a slice store location in Tomcat's <SPECTRUM_HOME>\product\webapps\ROOT folder.
Example
C:\Loftware\Spectrum\Spectrum\product\webapps\ROOT\sliceStorage
Note: The slice storage location must be within Tomcat's ROOT folder.
- Open the standalone.properties file in a text editor and do the following.
- Modify the following properties:
- isStandalone: Set to true
Important! Do not add anything else on the isStandalone line, including comments.
- dvstore: The location you created for the DVStore location
Example
If your location is C:\DVStore, enter
dvstore=C:\\DVStore
. - sliceProtocol: http
- slicePort: 8080 or the same as Tomcat
- sliceHost: The application server's IP address or hostname
Important! Do not use localhost or 127.0.0.1 for this setting.
- sliceFolder: The path to the slices from <SPECTRUM_HOME>/product/webapps/ROOT. Default is “/sliceStorage”
- isStandalone: Set to true
- Save and close the standalone.properties file.
- Modify the following properties:
- Open the database.properties file in a text editor and do the following.
- Uncomment either the Oracle or PostgreSQL section, depending on where you installed LoftStore. Make sure all properties in the other section are commented out.
- Modify the following properties for your environment.
LoftStore in an Oracle database
- database.type: PLSQL
- database.driverClassName: oracle.jdbc.driver.OracleDriver
- database.url: jdbc:oracle:thin:@[host]:[port]:[SID] or
jdbc:oracle:thin:@//[host]:[port]/[serviceName] - database.username: LOFTDVUSER
- database.password: Set during the LoftStore installation. This must be prefixed by either "(encrypt)" or "(clear)" depending on whether the password is in clear text or is encrypted.
Example
database.password=(encrypt)examplepassword
or
database.password=(clear)examplepassword - database.schema: LOFTDV
LoftStore in a PostgreSQL database
- database.type: POSTGRES
- database.driverClassName: org.postgresql.Driver
- database.url: postgresql
- database.username: LOFTDVUSER
- database.password: Set during the LoftStore installation. This must be prefixed by either "(encrypt)" or "(clear)" depending on whether the password is in clear text or is encrypted.
Example
database.password=(encrypt)examplepassword
or
database.password=(clear)examplepassword - database.schema: LOFTDV
- Comment out the lines in the section titled FOR MS SQL SERVER.
- Save and close the database.properties file.
Note: Your database administrator can change the database password for LOFTDVUSER if needed. After changing the password in the database, see Update the Loftware DaVinci Password for information on updating the password on the Spectrum Application Server.
- If the value of database.password in the database.properties file is encrypted, you must also do the following. If your password is not encrypted, skip this step.
- Open the jdbc.properties file in a text editor.
- Comment out the com.loftware.schema.davinci.user.password property.
Example
#com.loftware.schema.davinci.user.password
- Save and close the jdbc.properties file.
- Open the dvConfig.properties file in a text editor do the following.
- Modify the following properties:
- initAntiClickJackingUri: IP address or hostname of the DaVinci system with http protocol and port
Example
initAntiClickJackingUri=http://localhost:8080
- dvClientDomainName: IP address or hostname of the DaVinci system
Example
dvClientDomainName=myhost.loftwareinc.com
- initAntiClickJackingUri: IP address or hostname of the DaVinci system with http protocol and port
- Save and close the dvConfig.properties file.
- Modify the following properties:
-
Open the config.properties file in a text editor and do the following.
- Modify the following properties:
- initAntiClickJackingUri: IP address or hostname of the DaVinci system with http protocol and port
Example
initAntiClickJackingUri=http://localhost:8080
- initAntiClickJackingUri: IP address or hostname of the DaVinci system with http protocol and port
- Save and close the config.properties file.
- Modify the following properties:
- Open the configuration.xml file in a text editor do the following.
- Change the “0.0.0.0” portion of the URLs to the IP address or hostname of the DaVinci system in each location within the file. Confirm the port matches the Tomcat port.
Important! Do not use localhost or 127.0.0.1 for this setting, even if using the local server.
- dvServerURL
- dvServerIPURL
- dvCallClientUrl
- dvCallCompareUrl
- Save and close the configuration.xml file.
- Change the “0.0.0.0” portion of the URLs to the IP address or hostname of the DaVinci system in each location within the file. Confirm the port matches the Tomcat port.
- Restart the Loftware Spectrum service.
Note: <SPECTRUM_HOME> represents the folder on the Spectrum Application Server in which the Spectrum application is installed. For example, in Windows Server this might be C:\Loftware\Spectrum\Spectrum, and in Linux this might be /opt/loftware/spectrum/Spectrum. Although procedures in this documentation typically use backslashes in operating system paths, you should use forward slashes if required by your operating system.
Next Step
After deploying the Loftware DaVinci web application, you'll need to Configure Loftware DaVinci in Label Design or see the Spectrum User Guide (Help) for information on how to create a label comparison application. If you are configuring a distributed Spectrum environment, see Installing DaVinci for Distributed Services.