com/jfinal/core/JFinalFilter报错

我本地使用JDK1.8,Tomcat 7,jfinal3.5,能正常使用,然后上传到服务器(JDK1.6,Tomcat 7,jfinal3.5)就报错:

(Thread.java:662)

Nov 3, 2018 10:40:34 AM org.apache.catalina.core.StandardContext filterStart

SEVERE: Exception starting filter jfinal

java.lang.UnsupportedClassVersionError: com/jfinal/core/JFinalFilter : Unsupported major.minor version 52.0 (unable to load class com.jfinal.core.JFinalFilter)

at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3209)

at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1373)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1861)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)

at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:495)

at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:477)

at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:113)

at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)

at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)

at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4950)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5652)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1015)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:991)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1296)

at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2038)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

at java.lang.Thread.run(Thread.java:662)


我把jfinal的jfinal-3.5-bin-with-src.jar换成3.0的 本地能正常使用,服务器也能正常使用,大佬们能帮我看看什么问题吗


评论区

JFinal

2018-11-03 13:17

jfinal 3.5 最低要求 JDK 1.8,升下级 JDK

AW

2018-11-03 13:50

爷们儿

2018-11-21 09:49

@JFinal 3.5以后就必须使用JDK1.8了啊!
好可怜啊!必须升级环境了

热门反馈

扫码入社