jps网站开发实例第7章新闻网按书中配置后报错
发表在JavaWeb图书答疑 2008-10-06
是否精华
版块置顶:
进入tomcat打开wynews报如下错误
HTTP Status 500 - 

--------------------------------------------------------------------------------

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 65 in the jsp file: /index.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\wyNews\org\apache\jsp\index_jsp.java:122: 无法访问 org.apache.struts.action.ActionForm
未找到 org.apache.struts.action.ActionForm 的类文件
              newsForm=(NewsForm)list.get(i);
                       ^


An error occurred at line: 65 in the jsp file: /index.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\wyNews\org\apache\jsp\index_jsp.java:125: 不可转换的类型
找到: java.lang.Object
需要: com.actionForm.SortForm
              SortForm sortForm=(SortForm)objectDao.queryFrom(hql);
                                                             ^


An error occurred at line: 123 in the jsp file: /index.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\wyNews\org\apache\jsp\index_jsp.java:200: 不可转换的类型
找到: java.lang.Object
需要: com.actionForm.NewsForm
              newsForm=(NewsForm)list.get(i);
                                         ^


An error occurred at line: 123 in the jsp file: /index.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\wyNews\org\apache\jsp\index_jsp.java:203: 不可转换的类型
找到: java.lang.Object
需要: com.actionForm.SortForm
              SortForm sortForm=(SortForm)objectDao.queryFrom(hql);
                                                             ^


An error occurred at line: 175 in the jsp file: /index.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\wyNews\org\apache\jsp\index_jsp.java:272: 不可转换的类型
找到: java.lang.Object
需要: com.actionForm.NewsForm
              newsForm=(NewsForm)list.get(i);
                                         ^


An error occurred at line: 175 in the jsp file: /index.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\wyNews\org\apache\jsp\index_jsp.java:275: 不可转换的类型
找到: java.lang.Object
需要: com.actionForm.SortForm
              SortForm sortForm=(SortForm)objectDao.queryFrom(hql);
                                                             ^


An error occurred at line: 223 in the jsp file: /index.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\wyNews\org\apache\jsp\index_jsp.java:340: 不可转换的类型
找到: java.lang.Object
需要: com.actionForm.NewsForm
              newsForm=(NewsForm)list.get(i);
                                         ^


An error occurred at line: 223 in the jsp file: /index.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\wyNews\org\apache\jsp\index_jsp.java:343: 不可转换的类型
找到: java.lang.Object
需要: com.actionForm.SortForm
              SortForm sortForm=(SortForm)objectDao.queryFrom(hql);
                                                             ^


An error occurred at line: 276 in the jsp file: /index.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\wyNews\org\apache\jsp\index_jsp.java:413: 不可转换的类型
找到: java.lang.Object
需要: com.actionForm.NewsForm
              newsForm=(NewsForm)list.get(i);
                                         ^


An error occurred at line: 276 in the jsp file: /index.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\wyNews\org\apache\jsp\index_jsp.java:416: 不可转换的类型
找到: java.lang.Object
需要: com.actionForm.SortForm
              SortForm sortForm=(SortForm)objectDao.queryFrom(hql);
                                                             ^


An error occurred at line: 328 in the jsp file: /index.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\wyNews\org\apache\jsp\index_jsp.java:485: 不可转换的类型
找到: java.lang.Object
需要: com.actionForm.NewsForm
              newsForm=(NewsForm)list.get(i);
                                         ^


An error occurred at line: 328 in the jsp file: /index.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\wyNews\org\apache\jsp\index_jsp.java:488: 不可转换的类型
找到: java.lang.Object
需要: com.actionForm.SortForm
              SortForm sortForm=(SortForm)objectDao.queryFrom(hql);
                                                             ^
12 错误



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.

分享到:
精彩评论 1
无语_mrkj
学分:3155 LV11
2008-10-08
沙发
应该是程序中所需的jar包没有放置对,该程序所需的包可以到我公司网站(http://www.mingribook.com)的技术支持栏目中下载。
首页上一页 1 下一页尾页 1 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照