首页上一页 1 下一页尾页 1 条记录 1/1页
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.
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.