struts2项目发布后出错

庚武讲堂 2014-10-04 02:53:38
我的SSH(struts2 + spring3 + hibernate 3)项目,开发时用eclipse + jetty plugin, 直接运行/调试是正常的,但是发布后,却报错了。
2014-10-04 14:47:01,712 ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor.error:34 - Developer Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'model.title' on 'class com.opensymphony.xwork2.ActionSupport: Error setting expression 'model.title' with value '[Ljava.lang.String;@7c6159c4'

2014-10-04 14:47:01,714 ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor.error:34 - Developer Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'post' on 'class com.opensymphony.xwork2.ActionSupport: Error setting expression 'post' with value ['true', ]

网上有人说是jetty的问题,然后我换成tomcat7,同样报错上面的错。
这是ognl表达式不能识别的问题,配置什么的感觉都没问题啊,最要命的是eclipse jetty plugin直接运行是正常的,找了很久找不到原因啊,哪位道友碰到过?
...全文
103 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
Magical茏 2014-10-04
  • 打赏
  • 举报
回复
set struts.devMode to false to disable this message) 里面不是有这句话 你把开发模式 改成产品模式 试试 struts.xml里面 <constant name="struts.devMode" value="false" />

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧