您的位置:首页 > 大数据 > 人工智能

Failed to load resource: the server responded with a status of 500 ()

2017-11-16 09:57 681 查看
Failed to load resource: the server responded with a status of 500 ()

遇到这样的错误,本地测试没问题,放到服务器上就出问题了,经过排查以下原因:

把xwork的jar包替换成低版本的即可!

struts2项目启动时报错:

java.lang.ClassNotFoundException:org.apache.commons.lang.xwork.StringUtils。

是因为struts2-convention-plugin-xxxxxx.jar 某个版本的SEOActionNameBuilder类引用了 org.apache.commons.lang.xwork.StringUtils;

此类存在于xwork-core-2.1.6.jar,更高的版本已经没有这个类了。


解决的方法是,使用高版本的struts2-convention-plugin-xxxxxx.jar,最好使用struts2 lib中配套的jar。

解决该问题来源博文:http://bbs.csdn.net/topics/391992908

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  status of 500
相关文章推荐