sjh报错问题。。。。

09-03-03 jeffrey4chartcrm
刚下了本站的jdon应用案例之二-----sjh,在myeclipse5中导入,经过简单的配置后在tomcat6上发布,报错如下:

javax.servlet.jsp.JspException: Cannot find bean listForm in any scope

at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:938)

at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:277)

at org.apache.jsp.web.index_jsp._jspService(index_jsp.java:120)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.jdon.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:92)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.jdon.persistence.hibernate.CloseSessionInViewFilter.doFilter(CloseSessionInViewFilter.java:43)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)

at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:852)

at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:584)

at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)

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

经过查看,发现jdon-struts1x.jar已经导入,此类也在struts-config.xml中配置,望各位熟知的朋友告知一下错在哪里,谢谢!我也没有通过ant来编译,只是用myeclipse自带的的编译器来编译,不知这样是不是有问题?

[该贴被jeffrey4chartcrm于2009-03-03 22:33修改过]

[该贴被jeffrey4chartcrm于2009-03-03 22:35修改过]

banq
2009-03-04 11:19
最好通过ant来编译,不要使用myeclipse提供的自动功能,出了错很难知道问题,这个现象也出在JBuilder上,现在JBuilder被淘汰了

jeffrey4chartcrm
2009-03-05 23:22
看了一些本站有关IDE的帖子,已经在搭建基于eclipse3.4的环境了。确实以前用myeclipse开发hibernate的时候是通过数据表来生成hibernate的类和xml文件的,正如banq所说完全是反着用了,以前觉得挺方便,其实是思想上没转变过来而已。谢谢~

猜你喜欢