jfinal2.0在本地运行ok,发布的Linux resin上面出错 400 请求报错  -问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

jfinal2.0在本地运行ok,发布的Linux resin上面出错 400 请求报错 

kun坤 2020-05-30 23:00:56 62
之前跑1.8没问题,@jFinal
如题,一启动就出错了。
项目引用包: resin3中lib结构:
 
 
tail: ../ServiceLog/console.txt: file truncated
[16:37:42.616] javax.servlet.ServletException: java.lang.AbstractMethodError: javax.serv
let.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;[16:37:42.616] 	at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.j
ava:164)[16:37:42.616] 	at com.caucho.server.dispatch.FilterManager.init(FilterManager.java:87)
[16:37:42.616] 	at com.caucho.server.webapp.Application.start(Application.java:1605)
[16:37:42.616] 	at com.caucho.server.deploy.DeployController.startImpl(DeployController.
java:621)[16:37:42.616] 	at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(St
artAutoRedeployAutoStrategy.java:72)[16:37:42.616] 	at com.caucho.server.deploy.DeployController.startOnInit(DeployControlle
r.java:509)[16:37:42.616] 	at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:1
58)[16:37:42.616] 	at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContai
ner.java:652)[16:37:42.616] 	at com.caucho.server.host.Host.start(Host.java:385)
[16:37:42.616] 	at com.caucho.server.deploy.DeployController.startImpl(DeployController.
java:621)[16:37:42.616] 	at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(St
artAutoRedeployAutoStrategy.java:72)[16:37:42.616] 	at com.caucho.server.deploy.DeployController.startOnInit(DeployControlle
r.java:509)[16:37:42.616] 	at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:1
58)[16:37:42.616] 	at com.caucho.server.host.HostContainer.start(HostContainer.java:501)
[16:37:42.616] 	at com.caucho.server.resin.ServletServer.start(ServletServer.java:977)
[16:37:42.616] 	at com.caucho.server.deploy.DeployController.startImpl(DeployController.
java:621)[16:37:42.616] 	at com.caucho.server.deploy.AbstractDeployControllerStrategy.start(Abstr
actDeployControllerStrategy.java:56)[16:37:42.616] 	at com.caucho.server.deploy.DeployController.start(DeployController.java
:517)[16:37:42.616] 	at com.caucho.server.resin.ResinServer.start(ResinServer.java:485)
[16:37:42.616] 	at com.caucho.server.resin.Resin.init(Resin.java)
[16:37:42.616] 	at com.caucho.server.resin.Resin.main(Resin.java:624)
[16:37:42.616] Caused by: java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.ge
tJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;[16:37:42.616] 	at com.jfinal.plugin.activerecord.ModelRecordElResolver.init(ModelRecord
ElResolver.java:46)[16:37:42.616] 	at com.jfinal.render.RenderFactory.initJspRender(RenderFactory.java:113)
[16:37:42.616] 	at com.jfinal.render.RenderFactory.init(RenderFactory.java:68)
[16:37:42.616] 	at com.jfinal.core.JFinal.initRender(JFinal.java:99)
[16:37:42.616] 	at com.jfinal.core.JFinal.init(JFinal.java:70)
[16:37:42.616] 	at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49)
[16:37:42.616] 	at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.j
ava:134)[16:37:42.616] 	... 20 more
Java Linux
分享到
取消 提交回答
全部回答(1)
  • kun坤
    2020-05-30 23:01:02

       看不出原因来,异常格式化一下,并且要贴出更加详细的异常信息######回复 @ilikesss : 异常信没有贴完全,无法判断是什么原因######项目一启动就报错,贴出来引用包结构了。包冲突错误?我找不到哪里冲突了######使用的openjdk么  尝试换成 sun的jdk试试呢######没找到冲突,换了resin4就好了

    0 0
开发与运维
使用钉钉扫一扫加入圈子
+ 订阅

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题
推荐课程