Use this information to install the Enterprise Viewer. If you’re installing both the Content Accelerator and the Enterprise Viewer, its recommended that you start with the Content Accelerator install guide.
Prerequisites
Important: If the Enterprise Viewer license you have been issued with is a
GROUPlicense you must create a group within Alfresco that contains the people you want to have access to the Enterprise Viewer. This new group must be named:aev_users. All the people outside of this group will continue to see the default PDF viewer. If this is done after the installation of the Enterprise Viewer, then you must restart Tomcat for the changes to take effect.
Distribution zips
You can install the Enterprise Viewer using a distribution ZIP. Download the following ZIP file from Hyland Community:
alfresco-enterprise-viewer-package-4.0.x.zip
Java
Enterprise Viewer requires Java 11 or above. Consult your repository of choice for more detailed requirements. If you are using Java 17, refer to our Java 17 support guide.
Alfresco repository version
See the Supported Platforms for more information.
Make sure you have the correct version of the Enterprise Viewer package for your Content Services version. If you are unsure, please contact Hyland Support.
Operating system requirements
Operating system and libraries for the target server machine:
- Windows: Windows Server 2016 or newer
- Linux: Ubuntu, RHL, Amazon Linux
Custom transformer configuration file
If there is a requirement to transform image files to PDF, create a custom transformer configuration file (customTranformer.json) and add it in the path - <TOMCAT_HOME>/shared/classes/alfresco/extension/transform/pipelines/customTranformer.json. If you’re using Docker, you can mount the same content as a volume against the same path.
customTranformer.json
{
"transformers": [
{
"transformerName": "imageToPdfViaTiff",
"transformerPipeline": [
{
"transformerName": "imagemagick",
"targetMediaType": "image/tiff"
},
{
"transformerName": "imageToPdf"
}
],
"supportedSourceAndTargetList": [],
"transformOptions": [
"imageToPdfOptions"
]
}
]
}
Install proxy
Do you need a web proxy?
When installing AEV you have 2 options:
| Option 1 | Deploy AEV to the Alfresco Tomcat. Skip to the OpenContent install section since no proxy will need to be installed. |
| Option 2 | Preferred. For production deployment. Deploy AEV to a separate Tomcat instance. In this case, you must complete the following steps to setup a proxy. |
Proxy setup
The following routes must be proxied to their respective ports and applications in order for AEV to work correctly. SSL is recommended at a minimum at the Proxy layer for production installations.
{Application Base URL}/alfresco{Application Base URL}/share{Application Base URL}/OpenAnnotate{Application Base URL}/oat(if installed)
When installing a proxy please note that you are not limited to using Apache or NGINX. These are just two common options which we cover example installs of below. As long as the above routes are proxied appropriately you can move onto the AEV install.
Important: If you’ve already completed the ACA install guide and setup a proxy as part of that installation, you can just add the following routes to that proxy configuration and restart the proxy:
{Application Base URL}/OpenAnnotate{Application Base URL}/oat(if installed)Next, go to the AEV install.
Example proxy install 1 - Apache HTTPD on Windows
-
Install Apache
httpd.Download the binaries from https://www.apachelounge.com/download/.
Install Apache to
C:\Apache\Apache24(change to your desired version as appropriate). This is referred to as${apache.home}below.- Navigate to
${apache.home}\confand open uphttpd.conf - Find the line that has ServerRoot on it
- It should default to something like
ServerRoot "c:/Apache24" - Change the ServerRoot to where you extracted Apache
- It should default to something like
- If you would like to install as a service, consult the Readme.txt file that comes with the installation.
- Navigate to
-
Modify
httpd.conf(${apache.home}\conf\httpd.conf) to load the Virtual Hosts configuration file, and the Proxy, ProxyAJP, and Rewrite modules. Uncomment the following lines:Include conf/extra/httpd-vhosts.conf LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule access_compat_module modules/mod_access_compat.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule filter_module modules/mod_filter.so -
Modify the
httpd-vhosts.conffile (${apache.home}\conf\extra\httpd-vhosts.conf).- Remove the sample virtual hosts from the file by deleting the
<VirtualHost *:80>sections.
- Remove the sample virtual hosts from the file by deleting the
-
Add a new virtual host to your
vhostsconfiguration file that points to the Alfresco Tomcat and Tomcat running AEV by adding the following lines.- Make sure to update server names and paths as needed (for example, replace anything surrounded by
${})). -
Make sure you also update the
proxyPasssections at the bottom to proxy the appropriate routes.<VirtualHost *:80> ServerName ${your-server-name} ErrorLog "logs/${your-server-name}-error.log" CustomLog "logs/${your-server-name}-access.log" common ServerAlias ${your-server-name} AllowEncodedSlashes On LimitRequestFieldSize 65536 ProxyIOBufferSize 65536 #Optional - these two lines redirect the root URL (/) to /ocms. RewriteEngine on RewriteRule ^/$ /ocms [PT] <Directory /> Options All Order Deny,Allow Allow from all </Directory> ProxyRequests off <Proxy *> Order Deny,Allow Allow from all </Proxy> <Location /> Order Deny,Allow Allow from all </Location> # Proxy /alfresco requests to Alfresco's Tomcat ProxyPass /alfresco ajp://${your-TOMCAT-server-name}:8009/alfresco ProxyPass /share ajp://${your-TOMCAT-server-name}:8009/share # OR, use HTTP like this (use AJP in a production environment, as HTTP has more overhead and issues): # ProxyPass /alfresco http://{server}:8080/alfresco #Proxy all requests at the root to the Tomcat that actually has the application in question ex: ProxyPass / ajp://${your-TOMCAT-server-name}:9090/ </VirtualHost>
- Make sure to update server names and paths as needed (for example, replace anything surrounded by
-
(Re)start the proxy.
Go to
${apache.home}/bin, open a command prompt, and runhttpd.exe. -
Test the proxy is working properly by opening
http://{server}/alfresco.
Example proxy install 2 - NGINX install on Amazon Linux
Here are some sample steps of installing NGINX as a proxy (steps are done on amazon-linux and may need to be adjusted for other distributions)
-
Install NGINX on the server, for example:
sudo amazon-linux-extras list | grep nginxsudo amazon-linux-extras enable nginx1sudo yum clean metadatasudo yum -y install nginxnginx -v
-
Confirm you can startup NGINX:
sudo systemctl start nginx.service(start the service)sudo systemctl reload nginx.service(reload the service)sudo systemctl status nginx.service(check that the status is active)sudo systemctl stop nginx.service(stop the service)
-
Configure the proxy:
sudo vi /etc/nginx/nginx.conf-
Replace contents of the file with the following (replacing ports and servers and adding additional
proxy_passconfigurations as required).worker_processes 1; events { worker_connections 1024; } http { server { listen *:80; client_max_body_size 0; set $allowOriginSite *; proxy_pass_request_headers on; proxy_pass_header Set-Cookie; # External settings, do not remove #ENV_ACCESS_LOG proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_redirect off; proxy_buffering off; proxy_set_header Host $host:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass_header Set-Cookie; # Protect access to SOLR APIs location ~ ^(/.*/service/api/solr/.*)$ {return 403;} location ~ ^(/.*/s/api/solr/.*)$ {return 403;} location ~ ^(/.*/wcservice/api/solr/.*)$ {return 403;} location ~ ^(/.*/wcs/api/solr/.*)$ {return 403;} location ~ ^(/.*/proxy/alfresco/api/solr/.*)$ {return 403 ;} location ~ ^(/.*/-default-/proxy/alfresco/api/.*)$ {return 403;} # Protect access to Prometheus endpoint location ~ ^(/.*/s/prometheus)$ {return 403;} location /alfresco { proxy_pass http://{server}:8080/alfresco; } location /share { proxy_pass http://{server}:8080/share; } location /OpenAnnotate { proxy_pass http://{server}:9090/OpenAnnotate; } } }
-
Start the NGINX proxy and confirm it started up correctly:
sudo systemctl start nginx.servicesudo systemctl status nginx.service -
Make sure whatever port your proxy is listening on is open to the end user.
For example: open port
80if you’re using the configuration in our example above. -
Test the proxy is working properly by opening
http://{server}/share.
Install OpenContent
You only need to follow these steps if installing AEV without ACA:
-
Stop the Alfresco server
-
Copy the OpenContent AMP to the Alfresco Content Services installation:
Navigate to the
ALFRESCO_HOME/ampsdirectory and copy thetsgrp-opencontent-{version_info}.ampto this directory.You’ll find the AMP file in the
alfresco-enterprise-viewer-packagedistribution zip underAlfresco Artifactsfolder.Note: Make sure you are using the correct
tsgrp-opencontent.ampfor your version of Alfresco.For example:
- If using Alfresco Content Services 23.x, use the
tsgrp-opencontent-4.0.0-for-acs23.amp.
- If using Alfresco Content Services 23.x, use the
-
From the directory where your Alfresco Tomcat server is installed, run the following command to apply the AMP:
Linux:
java -jar {ALFRESCO_HOME}/bin/alfresco-mmt.jar install {ALFRESCO_HOME}/amps/tsgrp-opencontent.amp tomcat/webapps/alfresco.war -forceWindows:
java\{javaVersion}\bin\java -jar {ALFRESCO_HOME}\bin\alfresco-mmt.jar install {ALFRESCO_HOME}\amps\tsgrp-opencontent.amp tomcat\webapps\alfresco.war -force -
Delete current Alfresco deployed WAR files:
Navigate to the
ALFRESCO_HOME/tomcat/webappsdirectory and delete thealfrescofolder (if it exists). -
Install license file for OpenContent:
Create the
module/com.tsgrp.opencontent/licensefolder structure on the/alfrescoclasspath, for example, atALFRESCO_HOME/tomcat/shared/classes/alfrescoPlace a
TextLicense.l4jfile in thelicensedirectory. -
Deploy the OpenContent configuration:
Create a file called
opencontent-override-placeholders.propertiesand put it onto the/alfrescoclasspath, for example, in theALFRESCO_HOME/tomcat/shared/classes/alfresco/module/com.tsgrp.opencontent/folder.Update the necessary environment variables in the
opencontent-override-placeholders.properties.There are many configurations that can be overridden. These are described later. To start, set the follow property:
oc.email.smtp.host={SMTP host}
-
Update Tomcat server configuration:
By default, Apache Tomcat doesn’t support UTF-8 characters for languages other than English. To enable support, the
web.xmlandserver.xmlfiles need to be modified in the deployed Tomcat.- When running OpenContent on Tomcat 8+, the
relaxedQueryCharsandrelaxedPathCharsparameters are required on the Connector. - If you are using Tomcat older than version 8.5, you may need to add this to
catalina.propertiesin yourtomcat/conffolder:tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}.
Update the following files:
-
In
${tomcat.home}/conf/web.xml:Uncomment the
setCharacterEncodingFilterand its mapping inweb.xml(if not already uncommented):<!-- ================== Built In Filter Definitions ===================== --> <!-- A filter that sets character encoding that is used to decode --> <!-- parameters in a POST request --> <filter> <filter-name>setCharacterEncodingFilter</filter-name> <filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> <async-supported>true</async-supported> </filter> <!-- ==================== Built In Filter Mappings ====================== --> <!-- The mapping for the Set Character Encoding Filter --> <filter-mapping> <filter-name>setCharacterEncodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> -
In
${tomcat.home}/conf/server.xml:Add the following to the connector if not already present:
URIEncoding="UTF-8"connectionTimeout="20000"maxHttpHeaderSize="32768"relaxedQueryChars="{}[]|"-
relaxedPathChars="{}[]|"<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" relaxedQueryChars="{}[]|" relaxedPathChars="{}[]|" />
Note: In a typical Alfresco installation, the
8080connector can be modified for HTTP communications and the443connector can be modified forHTTPSconnections. - When running OpenContent on Tomcat 8+, the
-
(Optional) This step is only required if using Alfresco Search Services 2.0 or greater:
-
Navigate to the
SOLR_HOME/solrhome/conffolder. -
In the file
shared.properties, uncomment the following properties (if not already uncommented):alfresco.cross.locale.datatype.0={http://www.alfresco.org/model/dictionary/1.0}textalfresco.cross.locale.datatype.1={http://www.alfresco.org/model/dictionary/1.0}contentalfresco.cross.locale.datatype.2={http://www.alfresco.org/model/dictionary/1.0}mltext
-
Once the above changes have been made, Solr must be reindexed.
Stop the Solr process if it is running.
Clear out the following folder paths:
SOLR_HOME/solrhome/alfresco/indexSOLR_HOME/solrhome/archive/indexSOLR_HOME/solrhome/alfrescoModels
Start Solr process.
-
-
Start up Alfresco server.
-
Confirm OpenContent has been installed correctly by accessing
http://{server}/alfresco/OpenContent.
Install libraries
Install PDFium (optional)
Note: This step is only needed if using Enterprise Viewer on Linux.
-
Locate the
pdfium.tar.gzin theThird Partyfolder of thealfresco-enterprise-viewer-packageZIP. -
Unpack the
pdfium.tar.gzsource to a location on your server. -
Note the path where
pdfiumis installed asPDFIUM_HOME. -
Navigate into the newly unpacked
PDFIUM_HOMEdirectory. -
Run the following command from the
PDFIUM_HOMEto ensurepdfiumwas unpacked successfully:./pdfium --helpThe
pdfiumhelp message is displayed.
Install FFMPEG (optional)
Note: This step is only needed if using Enterprise Viewer Video.
-
Download and install an official FFMPEG package from here.
Use the latest supported release. Note that the latest Windows release is included in the
Third Partyfolder of thealfresco-enterprise-viewer-packagezip -
Note the path where FFMPEG is being installed as
FFMPEG_HOME. -
Navigate into the newly unpacked FFMPEG directory.
-
Run the following command from the
FFMPEG_HOMEto ensureffmpegwas unpacked successfully:./{FFMPEG_HOME}/ffmpeg --helpThe
ffmpeghelp message is displayed.
Configure OpenContent for AEV
Note: You only need to complete this section if you’ve installed FFMPEG and/or PDFium above.
-
Stop Alfresco.
-
Configure OpenContent.
Update the environment variables in the provided
opencontent-override-placeholders.properties. Deploy the updated file to the/alfrescoclasspath, for example, theALFRESCO_HOME/tomcat/shared/classes/alfresco/module/com.tsgrp.opencontent/directory:If you installed FFMPEG and PDFium above, update the following properties:
FFMPEG.path=FFMPEG_HOME(if installed, get theFFMPEG_HOMEvalue from Install FFMPEG)pdfium.path=PDFIUM_HOME(if installed, get thePDFIUM_HOMEvalue from Install PDFium)
-
Delete current Alfresco deployed WAR files.
Navigate to the
ALFRESCO_HOME/tomcat/webappsdirectory and delete thealfrescofolder (if it exists). -
Start Alfresco.
Install collaboration (optional)
In this section the Enterprise Viewer collaboration features Socket.IO server is installed.
Note: This installation is only needed if the collaboration features are required.
-
Install
Node.js.Both
NodeJSandnpmmust be installed. Follow theNode.jsinstall instructions at https://nodejs.org/.Node.js- use the latest version your OS supportsnpm- Node package manager, included withNode.js
-
Install Socket Server.
Locate the
socket-server.zipin theCollaborationfolder of thealfresco-enterprise-viewer-packagezip.Place the
socket-servers.zipin the directory where the collaboration server is to be installed, and unzip it. This location will be known asSOCKET_HOME.This directory will now contain
server.js,Dockerfile,windows-service.js,package.json, etc. -
If no
node_modulesdirectory is included in theSOCKET_HOME, then runnpm ifrom theSOCKET_HOMEdirectory to generate thenode_modulesdirectory. -
Test the Socket Server.
To start the collaboration server, navigate to
SOCKET_HOMEand run the following command:node server.js.A Node JavaScript server starts listening on port 3000 for connections, and the command prompt displays the message
"listening on *:3000”. -
Stop the Socket Server.
Press Ctrl+C to end the process.
-
Install the forever tool.
Install forever by running the following command:
- Linux:
sudo npm install forever -g - Windows:
npm install forever -g
- Linux:
-
Start the Socket Server.
Start the collaboration server using forever by running the following command:
forever start server.jsIn previous releases, the Socket Server URL for AEVV (Alfresco Enterprise Viewer Video) was set at build-time. There was no way to update or change the socket server URL without rebuilding the entire application.
Starting from Enterprise Viewer 3.6, an enhancement has been added so the socket server URL is fetched from the appConfig.json at runtime. This provides users with the capability to change the socket server URL by unpacking the opencontent.war file, changing the SOCKET_URL value in appConfig.json, and repacking the WAR file. You can unpack & repack the WAR file in an archive manager such as WinRAR. The URL change takes effect without rebuilding the application.
Install webapps
This sections walks through how to install the Enterprise Viewer web application.
Note:
If you installed a proxy then follow the steps in Install web applications on separate Tomcat.
If no proxy was installed then follow the steps to Install web applications on Alfresco Tomcat.
Install web applications on separate Tomcat
This section walks through how to install the web applications on a separate Tomcat instance (meaning, you must have a proxy setup).
-
Install Apache Tomcat.
See https://archive.apache.org/dist/tomcat. Note that if you installed ACA, you can use the same Tomcat you may have installed for ACA. Shut it down now if it’s already running.
-
Copy the
OpenAnnotate.warfile into theTOMCAT_HOME/webappsdirectory.You’ll find the WAR file in the
Web Applicationsfolder of thealfresco-enterprise-viewer-packagezip. -
Configure Tomcat for shared classpath loader (if not already configured in the Content Accelerator installation):
Edit the
TOMCAT_HOME/conf/catalina.propertiesfile and enable theshared.loaderby adding the following line (if not already there):shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar -
(If not already configured in the ACA install) - Configure Tomcat ports as well as encoded slashes in the
TOMCAT_HOME/conf/server.xml:Configure the connector, server, and redirect ports to not conflict with Alfresco Tomcat’s (example below):
- Set Connector -
port="9090"(defaults to8080) - Set Connector -
redirectPort="9443"(defaults to8443) - Set Server -
port="9005"(defaults to8005)
Note that you will need to ensure that the port chosen (i.e.
9090) is open to the end user.ACA has some routes that are formatted like:
/hpi/{aca-module}/{object-id}In the above case, the object ID is URL encoded. This means that forward slashes in the object ID are URL encoded to
%2F. By default, Tomcat does not serve any URLs with a URL encoded forward (or back) slash.To work around this issue, add
encodedSolidusHandling="decode"to yourserver.xmlfile. - Set Connector -
-
(If not already configured in the ACA install) - Create a
classesdirectory:Create the path
TOMCAT_HOME/shared/classes, if it does not already exist. -
Locate the
openannotate-override-placeholders.propertiesfile in theWeb Applicationsfolder of thealfresco-enterprise-viewer-packagezip. -
Update the provided
openannotate-override-placeholders.propertiesfile:Set the
ocRestEndpointAddressproperty to point to the root REST endpoint URL for OpenContent within Alfresco:{Application Base URL}/alfresco/OpenContentNote: If the Enterprise Viewer and the Alfresco Repository are located on the same server, then the URL can be:
http://localhost:<alfrescoPort>/alfresco/OpenContent.(OPTIONAL) This step is only required if using the Enterprise Viewer and leveraging the “Collaboration Server” functionality for collaborative annotation functionality:
Update the following properties:
collaborationModeEnabled=truecollaborationEndpoint=http://${server}:${port}
Replace the
${server}and${port}placeholders in the above URL with the correct server and port values for the environment being installed to (See the section Install collaboration features) -
For AEV 3.5.1 or later, verify the
secureBrowserCookiesconfiguration. If you are planning to setup SSL thensecureBrowserCookiesshould be set totrue, else it should befalse(the default).In the
openannotate-override-placeholders.propertiesset the following property accordingly:secureBrowserCookies= -
For AEV 3.5.1 or later, verify the
application.secureBrowserCookiesconfiguration. If you are planning to setup SSL thenapplication.secureBrowserCookiesshould be set totrue, or else it should befalse(the default).In the
opencontent-override-placeholder.propertiesset the following property accordingly:application.secureBrowserCookies= -
Copy the
opencontent-override-placeholders.propertiesandopenannotate-override-placeholders.propertiesfiles to the Tomcat classpath, for example, in theTOMCAT_HOME/shared/classesdirectory. -
Start Tomcat.
-
Confirm you can access AEV at
http://{server}/OpenAnnotate.
Install web applications on Alfresco Tomcat
This section walks through how to install the web applications on Alfresco Tomcat (recommended for easier non-Production environment installation).
-
Stop Alfresco Tomcat.
-
Copy the
OpenAnnotate.warfile into theALFRESCO_HOME/tomcat/webappsdirectory.You’ll find this WAR file in the
Web Applicationsfolder of thealfresco-enterprise-viewer-packagezip. -
Create a
classesdirectory:Create a
classesdirectory within theALFRESCO_HOME/tomcat/shareddirectory, if it does not already exist. -
Locate the
openannotate-override-placeholders.propertiesfile in theWeb Applicationsfolder of thealfresco-enterprise-viewer-packagezip. -
Update the provided
openannotate-override-placeholders.propertiesfile:Set the
ocRestEndpointAddressproperty to point to the root REST endpoint URL for OpenContent within Alfresco:{Application Base URL}/alfresco/OpenContentNote: The URL can also be:
http://localhost:<alfrescoPort>/alfresco/OpenContent -
(Optional) This step is only required if using the Enterprise Viewer and leveraging the “Collaboration Server” functionality for collaborative annotation functionality:
Update the provided
openannotate-override-placeholders.propertiesfile:collaborationModeEnabled=truecollaborationEndpoint=http://${server}:${port}
Replace the
${server}and${port}placeholders in the above URL with the correct server and port values for the environment being installed to. See the section Install collaboration features. -
For AEV 3.5.1 or later, verify the
secureBrowserCookiesconfiguration. If you are planning to setup SSL thensecureBrowserCookiesshould be set totrue, else it should befalse(the default).In the
openannotate-override-placeholders.propertiesset the following property accordingly:secureBrowserCookies= -
For AEV 3.5.1 or later, verify the
application.secureBrowserCookiesconfiguration. If you are planning to setup SSL thenapplication.secureBrowserCookiesshould be set totrue, else it should befalse(the default).In the
opencontent-override-placeholders.propertiesset the following property accordingly:application.secureBrowserCookies=. -
Copy the
opencontent-override-placeholder.propertiesandopenannotate-override-placeholders.propertiesfile to the Tomcat classpath, for example, in theTOMCAT_HOME/shared/classesdirectory. -
Start Alfresco Tomcat.
-
Confirm you can access AEV at
http://{server}/OpenAnnotate.
Configure Share extensions for AEV (optional)
Note: These steps are only required if you wish to accomplish one or both of the following:
- Use the Enterprise Viewer as the document viewer in the Share interface.
- Include an action in the Share interface to launch a document in the Enterprise Viewer in a new tab.
-
Stop Alfresco.
-
Locate the
oa-alfresco.ampin theAlfresco Artifactsfolder of thealfresco-enterprise-viewer-packagezip.Copy the AMP to the
ALFRESCO_HOME/ampsdirectory.From the directory where your Alfresco Tomcat lives, run this command (replacing
{ALFRESCO_HOME}with the location of yourALFRESCO_HOME):Linux:
java -jar {ALFRESCO_HOME}/bin/alfresco-mmt.jar install {ALFRESCO_HOME}/amps/oa-alfresco.amp tomcat/webapps/alfresco.war -forceWindows:
java\{javaVersion}\bin\java -jar {ALFRESCO_HOME}\bin\alfresco-mmt.jar install {ALFRESCO_HOME}\amps\oa-alfresco.amp tomcat\webapps\alfresco.war -force -
(Optional) This step is only required if using the Enterprise Viewer External Launcher action in Share. This adds a Share action to launch a document in the Enterprise Viewer in a new tab.
Locate the
oa-share-external-launcher.ampin theShare Artifactsfolder of thealfresco-enterprise-viewer-packagezip.Important: If AEV and ACS are not running the same Tomcat or if you don’t have a proxy setup to make it appear like they are, you will need to edit the following files in the AMP by extracting them or by editing them directly inside the AMP:
/web/component/(documentlibrary or preview)/annotation-urls.js/web/component/(documentlibrary or preview)/annotation-urls-min.js
Update the
Alfresco.constants.EXTERNAL_LAUNCHER_ANNOTATION_URLvariable within these files.This variable needs to be updated with the URL of the server that Enterprise Viewer is going to be deployed on (even if Enterprise Viewer is deployed on the same server as the Share web application).
For example:
Alfresco.constants.EXTERNAL_LAUNCHER_ANNOTATION_URL = "http://localhost:8080/OpenAnnotate/login/external.htm";These URLs are relative by default, so you only need to update them if AEV and ACS are running on separate Tomcats and you don’t have a proxy setup to make it appear like they are running on the same Tomcat.
Then, copy the AMP to the
ALFRESCO_HOME/amps_sharedirectory (create the directory if it doesn’t exist).From the directory where your Alfresco Tomcat is installed, run the following command (replacing
{ALFRESCO_HOME}with the location of yourALFRESCO_HOME):Linux:
java -jar {ALFRESCO_HOME}/bin/alfresco-mmt.jar install {ALFRESCO_HOME}/amps_share/oa-share-external-launcher.amp tomcat/webapps/share.war -forceWindows:
java\{javaVersion}\bin\java -jar {ALFRESCO_HOME}\bin\alfresco-mmt.jar install {ALFRESCO_HOME}\amps_share\oa-share-external-launcher.amp tomcat\webapps\share.war -force -
(Optional) This step is only required if using the Enterprise Viewer Web Preview in Share. It replaces the OOB Share viewer with the Enterprise Viewer.
Locate the
oa-share-webpreview.ampin theShare Artifactsfolder of the alfresco-enterprise-viewer-package zip.Important: If AEV and ACS are not running the same Tomcat or if you don’t have a proxy setup to make it appear like they are, you will need to edit the following files in the AMP by extracting them or by editing them directly inside the AMP:
/web/component/(documentlibrary or preview)/annotation-urls.js/web/component/(documentlibrary or preview)/annotation-urls-min.js
In both cases, you need to update the
Alfresco.constants.WEBPREVIEW_ANNOTATION_URLvariable within these files.This variable needs to be updated with the URL of the server that Enterprise Viewer is going to be deployed on (even if Enterprise Viewer is deployed on the same server as the Share web application).
For example:
Alfresco.constants.WEBPREVIEW_ANNOTATION_URL = "http://localhost:8080/OpenAnnotate/login/external.htm";These URLs are relative by default, so you only need to update them if AEV and ACS are running on separate Tomcats and you don’t have a proxy setup to make it appear like they are running on the same Tomcat.
Then, copy the AMP to the
ALFRESCO_HOME/amps_sharedirectory (create the directory if it doesn’t exist).From the directory where your Alfresco Tomcat lives, run this command (replacing
{ALFRESCO_HOME}with the location of yourALFRESCO_HOME):Linux:
java -jar {ALFRESCO_HOME}/bin/alfresco-mmt.jar install {ALFRESCO_HOME}/amps_share/oa-share-webpreview.amp tomcat/webapps/share.war -forceWindows:
java\{javaVersion}\bin\java -jar {ALFRESCO_HOME}\bin\alfresco-mmt.jar install {ALFRESCO_HOME}\amps_share\oa-share-webpreview.amp tomcat\webapps\share.war -force -
Delete current Share deployed WAR files.
Navigate to the
ALFRESCO_HOME/tomcat/webappsdirectory and delete thesharefolder (if it exists). -
Start Alfresco.
-
(Optional) You can verify these AMPs were deployed correctly by doing the following:
-
oa-share-external-launcher.amp- open an asset in Share and look at the Document Actions panel on the right-hand side of the screen. Ensure that the asset has a PDF rendition or a suitable image rendition available for Enterprise Viewer. If you installed theoa-share-external-launcher.amp, the “Enterprise Viewer” action should be available. -
oa-share-webpreview.amp- open an asset in Share. If you installed theoa-share-webpreview.ampand the asset has a PDF rendition or a suitable image rendition available for Enterprise Viewer, the asset should appear in “Alfresco Enterprise Viewer” directly in the Share application screen.
-