tomcat7 - Tomcat 7 and Java 8 compatibility issue -


installing oracle java 8 , pointing tomcat7 java8 produced following error per catalina.out:

            info: deploying web application directory /var/lib/tomcat7/webapps/root             sep 22, 2015 9:14:32 org.apache.catalina.core.containerbase addchildinternal             severe: containerbase.addchild: start:             org.apache.catalina.lifecycleexception: failed start component [standardengine[catalina].standardhost[localhost].standardcontext[]]                     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154)                     @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:895)                     @ org.apache.catalina.core.containerbase.addchild(containerbase.java:871)                     @ org.apache.catalina.core.standardhost.addchild(standardhost.java:615)                     @ org.apache.catalina.startup.hostconfig.deploydirectory(hostconfig.java:1095)                     @ org.apache.catalina.startup.hostconfig$deploydirectory.run(hostconfig.java:1617)                     @ java.util.concurrent.executors$runnableadapter.call(executors.java:511)                     @ java.util.concurrent.futuretask.run(futuretask.java:266)                     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142)                     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617)                     @ java.lang.thread.run(thread.java:745)             caused by: org.apache.tomcat.util.bcel.classfile.classformatexception: invalid byte tag in constant pool: 15                     @ org.apache.tomcat.util.bcel.classfile.constant.readconstant(constant.java:131)                     @ org.apache.tomcat.util.bcel.classfile.constantpool.<init>(constantpool.java:60)                     @ org.apache.tomcat.util.bcel.classfile.classparser.readconstantpool(classparser.java:209)                     @ org.apache.tomcat.util.bcel.classfile.classparser.parse(classparser.java:119)                     @ org.apache.catalina.startup.contextconfig.processannotationsstream(contextconfig.java:2032)                     @ org.apache.catalina.startup.contextconfig.processannotationsjar(contextconfig.java:1923)                     @ org.apache.catalina.startup.contextconfig.processannotationsurl(contextconfig.java:1891)                     @ org.apache.catalina.startup.contextconfig.processannotations(contextconfig.java:1877)                     @ org.apache.catalina.startup.contextconfig.webconfig(contextconfig.java:1270)                     @ org.apache.catalina.startup.contextconfig.configurestart(contextconfig.java:855)                     @ org.apache.catalina.startup.contextconfig.lifecycleevent(contextconfig.java:345)                     @ org.apache.catalina.util.lifecyclesupport.firelifecycleevent(lifecyclesupport.java:119)                     @ org.apache.catalina.util.lifecyclebase.firelifecycleevent(lifecyclebase.java:90)                     @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5161)                     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)                     ... 10 more              sep 22, 2015 9:14:32 org.apache.catalina.startup.hostconfig deploydirectory             severe: error deploying web application directory /var/lib/tomcat7/webapps/root             java.lang.illegalstateexception: containerbase.addchild: start: org.apache.catalina.lifecycleexception: failed start component [standardengine[catalina].standardhost[localhost].standardcontext[]]                     @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:898)                     @ org.apache.catalina.core.containerbase.addchild(containerbase.java:871)                     @ org.apache.catalina.core.standardhost.addchild(standardhost.java:615)                     @ org.apache.catalina.startup.hostconfig.deploydirectory(hostconfig.java:1095)                     @ org.apache.catalina.startup.hostconfig$deploydirectory.run(hostconfig.java:1617)                     @ java.util.concurrent.executors$runnableadapter.call(executors.java:511)                     @ java.util.concurrent.futuretask.run(futuretask.java:266)                     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142)                     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617)                     @ java.lang.thread.run(thread.java:745)              sep 22, 2015 9:14:32 org.apache.coyote.abstractprotocol start             info: starting protocolhandler ["http-bio-8080"]             sep 22, 2015 9:14:32 org.apache.catalina.startup.catalina start             info: server startup in 1308 ms 

i'm using:-- tomcat version: 7.0.26 & oracle java: 8

i've seen lot of posts suggesting upgrade tomcat 7.0.53 or higher. there workaround resolve issue without upgrading tomcat?

upgrade tomcat @ least 7.0.30.
should work because bug fixed.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -