ruixun8 2018-10-26 13:55 采纳率: 33.3%
浏览 4861
已采纳

HTTP Status 500 – Internal Server Error – The server encountered an unexpected condition

各位前辈,我初学JAVA的

我根据一位热心群友的建议,将stuts.xml的namespace="/qiantai",改为namespace="/";

今天遇到这么个情况:window端myeclipse做的一个工程,用的是jdk7+tomcat8.
500HTTP Status 500 – Internal Server Error

Type Exception Report

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception
java.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
........

Root Cause
java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session;
...............

Note The full stack trace of the root cause is available in the server logs.

初入门,各位前辈帮忙一下!
我试过用用jdk7+tomcat7.jdk7+tomcat8.jdk8+tomcat8.
都是此版本的项目都是一样不行;但是我用此版本重做个源代码基本相同的项目,居然是正常的!

帮下新手,请问如何在更高级的SSH框架下,不出现“HTTP Status 500 – Internal Server Error”错误呢?

  • 写回答

2条回答

  • 知春秋 博客专家认证 2018-10-27 01:52
    关注

    这个提示是没有这个方法错误,你可以更新jar包,换最新版本的包看看

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器