Running Vivo behind Apache server

79 views
Skip to first unread message

Ruan Kruger

unread,
Oct 6, 2017, 7:18:35 AM10/6/17
to VIVO Tech
Good day Vivo Tech


the concern is that on my ubuntu installation im using Apache2 so there is no httpd.conf, the tech forums read the new file is etc/apache2/apache2.conf

When added the: ProxyPass / ajp://localhost:8009/

The Apache2 server fails to start and when reading the sudo systemctl status apache2.service it says that the syntax is incorrect, thus where must I add 
the ProxyPass / ajp://localhost:8009/ when using Apache2. Also tried placing it in 000-default and the 000-defaultssl with the same fail to start. 

This is all vital for ssl is configured on Apache2 and the proxy is needed to the application.

Yours Faithfully 
Ruan

Ruan Kruger

unread,
Oct 6, 2017, 8:31:01 AM10/6/17
to VIVO Tech
It seems when placed the ProxyPass before the end of the VirtualHost tag it worked to reroute the request, albeit now the following error is given:

Fatal error

The application detected a fatal error during startup.

  • FATAL: ApplicationSetup

    • Failed to initialize the Application.
    • edu.cornell.mannlib.vitro.webapp.application.ApplicationSetup
    • java.lang.IllegalStateException: Can't find a value for the Vitro home directory. Looked in JNDI environment at 'java:comp/env/vitro/home'. Looked for a system property named 'vitro.home'. Looked in 'WEB-INF/resources/build.properties' for 'vitro.home'.
      	at edu.cornell.mannlib.vitro.webapp.application.VitroHomeDirectory$HomeDirectoryFinder.confirmExactlyOneResult(VitroHomeDirectory.java:160)
      	at edu.cornell.mannlib.vitro.webapp.application.VitroHomeDirectory$HomeDirectoryFinder.(VitroHomeDirectory.java:82)
      	at edu.cornell.mannlib.vitro.webapp.application.VitroHomeDirectory.find(VitroHomeDirectory.java:27)
      	at edu.cornell.mannlib.vitro.webapp.application.ApplicationSetup.contextInitialized(ApplicationSetup.java:45)
      	at edu.cornell.mannlib.vitro.webapp.startup.StartupManager.initialize(StartupManager.java:179)
      	at edu.cornell.mannlib.vitro.webapp.startup.StartupManager.contextInitialized(StartupManager.java:65)
      	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
Please advice me how to resolve 

Kindly Ruan 

Ruan Kruger

unread,
Oct 6, 2017, 9:02:46 AM10/6/17
to VIVO Tech


On Friday, 6 October 2017 13:18:35 UTC+2, Ruan Kruger wrote:

Ruan Kruger

unread,
Oct 6, 2017, 9:03:01 AM10/6/17
to VIVO Tech
I got around this by adding the vitro/home path as an environmental variable within the Tomcat config context elements like so:
<Environment
type="java.lang.String"
name="vitro/home"
value="/usr/local/vivo/home" override="true”/>
Reply all
Reply to author
Forward
0 new messages