Manual Install fails with a LifecycleException

Installation Forum (Inactive)
Manual Install fails with a LifecycleException flavien jacques  2015-06-14 12:13
Status: Closed
 
Hello everyone,

I'm struggling with a manual install on a Windows 7. I'm using Tomcat 7, Java version "1.8.0_45" and postgresql version "postgresql-9.4.4-1-windows-x64".

The deployment of Labkey is not happening because of this (catalina log):




INFOS: Déploiement du descripteur de configuration C:\Users\Flap\Downloads\apache-tomcat-7.0.62-windows-x64\apache-tomcat-7.0.62\conf\Catalina\localhost\labkey.xml
juin 14, 2015 9:04:16 PM org.apache.catalina.startup.SetContextPropertiesRule begin
AVERTISSEMENT: [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.
juin 14, 2015 9:04:16 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
AVERTISSEMENT: [SetPropertiesRule]{Context/Loader} Setting property 'useSystemClassLoaderAsParent' to 'false' did not find a matching property.
juin 14, 2015 9:04:16 PM org.apache.catalina.loader.WebappLoader startInternal
GRAVE: LifecycleException
java.lang.ClassNotFoundException: org.labkey.bootstrap.LabkeyServerBootstrapClassLoader
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.apache.catalina.loader.WebappLoader.createClassLoader(WebappLoader.java:721)
    at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:582)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5393)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1912)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

juin 14, 2015 9:04:16 PM org.apache.catalina.core.ContainerBase addChildInternal
GRAVE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/labkey]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1912)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [WebappLoader[/labkey]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5393)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 10 more
Caused by: org.apache.catalina.LifecycleException: start:
    at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:630)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 12 more
Caused by: java.lang.ClassNotFoundException: org.labkey.bootstrap.LabkeyServerBootstrapClassLoader
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.apache.catalina.loader.WebappLoader.createClassLoader(WebappLoader.java:721)
    at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:582)
    ... 13 more

juin 14, 2015 9:04:16 PM org.apache.catalina.startup.HostConfig deployDescriptor
GRAVE: Erreur lors du déploiement du descripteur de configuration C:\Users\Flap\Downloads\apache-tomcat-7.0.62-windows-x64\apache-tomcat-7.0.62\conf\Catalina\localhost\labkey.xml
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/labkey]]
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1912)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)




Am I missing something ? I've read several times the "How-to" and I can't figure where I'm making a mistake. I've attached the labkey.xml and relevant logs, any advices are more than appreciated !

Thanks,

Flavien
 
 
Jon (LabKey DevOps) responded:  2015-06-16 15:41
Hi Flavien,

Can you tell me what version of LabKey you're trying to install here? I see you've mentioned the version of Windows, Java, Tomcat, and Postgres, but no mention of which version of LabKey you're trying to install.

Also, were you trying to use the executable version to install or were you using the zipped up version?

Regards,

Jon
 
flavien jacques responded:  2015-06-17 01:39
Hello Jon,

I'm on a french Windows 7. I'm trying to install the zipped up version of LabKey15.1-38086.35-bin

Regards,

Flavien
 
Jon (LabKey DevOps) responded:  2015-06-17 11:50
Hi Flavien,

Thanks for confirming the information.

So based on our documentation here for a manual install (https://www.labkey.org/wiki/home/Documentation/page.view?name=manualInstall), it sounds like you have the right version of Java, Tomcat, and Postgres.

This means that the problem is most likely in the actual configuration itself. Can you take a look at the following part of the installation documentation (https://www.labkey.org/wiki/home/Documentation/page.view?name=configTomcat) and carefully go through each step to make sure you've done the configuration correctly?

Also be sure that you've setup the correct ports as well. I noticed that you only had localhost listed for the PostgreSQL server configuration in the LabKey.xml file rather than having the port number with it like this: localhost:5432. Unless you have setup port forwarding, it's usually recommended to include the ports.

Regards,

Jon