I rented a VPS server and when trying to connect my android application with Java EE, I received the following message:
type Exception report message app/server/CSelerServer : Unsupported major.minor version 52.0 (unable to load class app.server.CSelerServer) description The server encountered an internal error that prevented it from fulfilling this request. exception java.lang.UnsupportedClassVersionError: app/server/CSelerServer : Unsupported major.minor version 52.0 (unable to load class app.server.CSelerServer) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2899) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1173) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1681) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) java.lang.Thread.run(Thread.java:745) note The full stack trace of the root cause is available in the Apache Tomcat/7.0.42 logs.
On the server, I have WHM / CPanel CENTS 6.8 x86_64 virtuozzo and use Apache Tomcat as the application server. In the project the client side (desktop and mobile) and server side I'm using JDK 1.8.
I noticed that the server's Tomcat is using JVM 1.7.0
I found two articles that say CentOS / Tomcat does not support Java 1.8
Did I get it wrong?
If so, how should I proceed?
Back to JDK1.7, change the application server, change OS on the server or change the control panel?
At localhost everything is working right.
All help is welcome.