jfinal项目发布到服务器上报错。。

jfianl项目这次我启动以后报了这个错误,以前一直没有,我就我找了好久找不到问题出在哪 

org.apache.catalina.core.StandardContext filterStart

SEVERE: Exception starting filter jfinal

java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy

        at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:673)

        at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:480)

        at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:306)

        at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:241)

        at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:88)

        at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:70)

        at java.lang.Class.initAnnotationsIfNecessary(Class.java:3098)

        at java.lang.Class.getAnnotation(Class.java:3057)

        at com.tzsw.core.jfinal.plugin.MyRoutesUtil.add(MyRoutesUtil.java:20)

        at com.tzsw.apps.config.TzswWebConfig.configRoute(TzswWebConfig.java:150)

        at com.jfinal.core.Config.configJFinal(Config.java:48)

        at com.jfinal.core.JFinal.init(JFinal.java:62)

        at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49)

        at com.jfinal.core.SpringJFinalFilter.init(SpringJFinalFilter.java:61)

        at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)

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

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

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

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

        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.deployDirectory(HostConfig.java:1247)

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

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

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

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

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

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

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


评论区

JFinal

2019-08-12 10:30

异常内容并未提供多少有价值的信息, jfinal 项目从未碰到过这类异常

spring 项目倒是出现过这种异常,貌似是缺包引起的,或者是多个重复的不同版本的包冲突引起的,而 JDK 吃掉了 ClassNotFound 这个异常,所以就看不出是啥了

参考 spring 的解决办法:
https://yq.aliyun.com/articles/616541
https://www.cnblogs.com/jiangwz/p/9711998.html

373118970

2019-08-12 11:10

@JFinal 这个报错信息他只有这么一点点。。。好的我看看 谢谢了

373118970

2019-08-15 09:13

解决不掉郁闷0 0.- -

JFinal

2019-08-15 09:24

@373118970 异常中出现了 spring 字眼,我估计应该是 spring 的问题, 当成是 spring 的问题搜索一下解决办法

373118970

2019-08-15 16:39

我组长叫我把老版本项目重新发布一遍。。。测试一下= =

373118970

2019-08-15 16:39

可是我觉得有点点麻烦。。。

JFinal

2019-08-15 20:40

@373118970 用上 jfinal 提供的 jfinal-undertow 来开发、运行、部署,是一体化的方案,不必折腾各种配置:
https://www.jfinal.com/doc/1-2

373118970

2019-08-16 08:39

@JFinal 好的 谢谢我试试看