Hi,
I am trying to get OpenVPMS 2.0 set up on Ubuntu Server 14.04.5 and have made it through to the end of the guide, but when I start the server, I see the following errors in /var/log/tomcat7/catalina.out:
INFO: Starting service Catalina
Jun 06, 2018 9:16:07 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 (Ubuntu)
Jun 06, 2018 9:16:07 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/manager.xml
Jun 06, 2018 9:16:07 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/host-manager.xml
Jun 06, 2018 9:16:07 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/tomcat7/webapps/openvpms.war
Jun 06, 2018 9:16:19 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Jun 06, 2018 9:16:19 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/openvpms] startup failed due to previous errors
Jun 06, 2018 9:16:19 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
Jun 06, 2018 9:16:19 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]ensued
Jun 06, 2018 9:16:19 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 12280 ms
I can't figure out what the issue is. I've ensured the server has all the required software. Any help or advice with what to do next would be amazing. When I visit [vmip]:8080/openvpms/app I get HTTP Status 404 - /openvpms/app. I can access the ROOT file no issue [vmip]:8080/.
Edit: I enabled debugging and in the catalina.out log file, I see the following error:
INFO: Spring WebApplicationInitializers detected on classpath: [org.glassfish.jersey.server.spring.SpringWebApplicationInitializer@52adc50c]
Jun 06, 2018 12:05:23 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.openvpms.web.echo.servlet.SessionListener
java.lang.UnsupportedClassVersionError: org/openvpms/web/echo/servlet/SessionListener : Unsupported major.minor version 52.0 (unable to load class org.openvpms.web.echo.servlet.SessionListener)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2970)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1209)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1689)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1570)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:529)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:511)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4934)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5513)
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:632)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:473)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
at java.lang.Thread.run(Thread.java:748)
Jun 06, 2018 12:05:23 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
And my Java version:
$ java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
Re: Can't start OpenVPMS webapp in Apache
Have a look to see if there is more information in the log file in <TOMCAT_HOME>/logs/openvpms-full.log
Re: Can't start OpenVPMS webapp in Apache
Unfortunately the log files haven't even been created yet. I don't think it's getting far enough through since the webapp never actually starts.
Re: Can't start OpenVPMS webapp in Apache
This message is the key:
Unsupported major.minor version 52.0
Make sure the java version used to start Tomcat is Java 8.
Re: Can't start OpenVPMS webapp in Apache
Comment deleted as Tim pointed out the issue.