Good afternoon all,
I have been following the instructions located on the Confluence Board in order to deploy OpenSpecimen from the source code on Fedora 24. However, there is a hiccup towards the end. I do not perform the step involving eclipse, as this is being installed in a VM server for testing purposes. After I restart the Tomcat server, I cannot proceed with the MySQL to create a default institute, department, and user as the tables do not exist. During the “gradle deploy” command, I am not receiving any errors. I have tried accessing the front end, but Firefox does not show anything on the page (it is all white). If I check the services, Tomcat is running without any errors. If I look into /usr/share/tomcat/webapps/openspecimen/ I notice that there is no folder called “os_plugins” as I defined in build.properties. I have to manually create this directory, which then removes one error when starting Tomcat. This brings up a new error though, which states that it cannot find the JDBC jar. I have corrected this by creating a symlink from the mysql-connector-java.jar into the /usr/share/tomcat/webapps/openspecimen/WEB-INF/lib/ folder. There are further issues then as I look through Tomcat logs, the only file that is being updated after a Tomcat restart is /var/log/tomcat/catalina.2016-09-01.log. I am receiving the following error:
01-Sep-2016 16:35:24.322 INFO [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance.
01-Sep-2016 16:35:24.323 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-apr-8080”]
01-Sep-2016 16:35:24.339 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“ajp-apr-8009”]
01-Sep-2016 16:35:24.340 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina
01-Sep-2016 16:35:24.376 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler [“http-apr-8080”]
01-Sep-2016 16:35:25.640 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.32
01-Sep-2016 16:35:25.643 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Mar 3 2016 11:06:06 UTC
01-Sep-2016 16:35:25.643 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.32.0
01-Sep-2016 16:35:25.644 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
01-Sep-2016 16:35:25.645 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.6.7-300.fc24.x86_64
01-Sep-2016 16:35:25.645 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
01-Sep-2016 16:35:25.646 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.102-1.b14.fc24.x86_64/jre
01-Sep-2016 16:35:25.647 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_102-b14
01-Sep-2016 16:35:25.648 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
01-Sep-2016 16:35:25.649 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/share/tomcat
01-Sep-2016 16:35:25.649 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/share/tomcat
01-Sep-2016 16:35:25.651 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -agentpath:/usr/lib/abrt-java-connector/libabrt-java-connector.so=abrt=on
01-Sep-2016 16:35:25.656 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory
01-Sep-2016 16:35:25.657 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/share/tomcat
01-Sep-2016 16:35:25.658 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/share/tomcat
01-Sep-2016 16:35:25.659 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=
01-Sep-2016 16:35:25.659 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/var/cache/tomcat/temp
01-Sep-2016 16:35:25.660 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties
01-Sep-2016 16:35:25.661 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
01-Sep-2016 16:35:25.662 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.2.4 using APR version 1.5.2.
01-Sep-2016 16:35:25.663 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
01-Sep-2016 16:35:25.675 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.2f 28 Jan 2016)
01-Sep-2016 16:35:25.848 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-apr-8080”]
01-Sep-2016 16:35:25.870 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“ajp-apr-8009”]
01-Sep-2016 16:35:25.877 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1121 ms
01-Sep-2016 16:35:25.923 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
01-Sep-2016 16:35:25.927 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.32
01-Sep-2016 16:35:25.974 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /var/lib/tomcat/webapps/openspecimen.war
01-Sep-2016 16:35:26.856 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/openspecimen]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:939)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1812)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:304)
at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:162)
at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1890)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1128)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:780)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
… 10 more
01-Sep-2016 16:35:26.860 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive /var/lib/tomcat/webapps/openspecimen.war
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/openspecimen]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:939)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1812)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
01-Sep-2016 16:35:26.863 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /var/lib/tomcat/webapps/openspecimen.war has finished in 888 ms
01-Sep-2016 16:35:26.864 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /var/lib/tomcat/webapps/TestApp
01-Sep-2016 16:35:27.559 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
01-Sep-2016 16:35:27.659 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /var/lib/tomcat/webapps/TestApp has finished in 795 ms
01-Sep-2016 16:35:27.666 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“http-apr-8080”]
01-Sep-2016 16:35:27.685 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“ajp-apr-8009”]
01-Sep-2016 16:35:27.690 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 1812 ms
Looking through this, I see that the following is the first error that it encounters:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/openspecimen]]
I’m not actually sure what this means, but it is definitely stopping the webapp from getting published. Would anyone be able to assist me?