app/alfresco/faq/preview

From JumpBox Documentation Wiki

Jump to: navigation, search

Turning on the Virtual Tomcat Preview Server

NOTE - This functionality is present in JumpBoxes for Alfresco 1.1.4 through 1.6.2 inclusive but was removed starting with JumpBox version 1.7.0.

In order to preview your Web Projects in Alfresco, you'll need to turn on the Virtual Tomcat Preview Server, which is disabled by default. Follow the following steps:

  • SSH in to the JumpBox, then run "sudo -s" to obtain a root shell.
  • Enter the Alfresco home directory: "cd /opt/alfresco"
  • Edit the file "virtual-tomcat/conf/alfresco-virtserver.properties" with your editor of choice.
  • Find the "alfresco.virtserver.domain" line, and change the "127-0-0-1" to your JumpBox's IP address, with the dots replaced by dashes.
  • Go to the end of that file and change the "alfresco.server.password" line to contain your admin user password.
  • Run "./virtual_alf.sh start"
  • Wait about a minute for Tomcat to start, or watch the "virtual-tomcat/logs/catalina.out" file instead.
  • If you are currently logged in to Alfresco, you must refresh the page in order for the "Preview" links to be properly rewritten.
  • Previews should now function as expected.

By enabling the Alfresco Virtual Tomcat Preview Server you are running a second memory intensive Alfresco application. You may consider allocating more RAM to your Alfresco JumpBox.

It is also strongly recommended that you configure your Alfresco JumpBox to use a static IP address.

Views
Personal tools