11-软件工程第一章作业-103111011.doc

JSJ05-075@JSP教学管理系统(源代码+论文)

收藏

资源目录
跳过导航链接。
JSJ05-075@JSP教学管理系统(源代码+论文).zip
JSJ05-075@JSP教学管理系统(源代码+论文)
.myeclipse
database
sll103111040_Data.MDF
sll103111040_Log.LDF
src
com
admin
index
know
room
util
WebRoot
admin
article
css
images
know
power
user
checklogin.jsp
left.jsp
login.jsp
logout.jsp
main.jsp
mainframe.jsp
css
css.css
k_css.css
images
032.gif
1.gif
2.gif
3.gif
a.gif
arr1.gif
arrow_o1.gif
ask.gif
a_14.gif
a_16.gif
b.gif
beiwang.gif
bi.gif
bottom.gif
c.gif
chzhi.jpg
closew.gif
course.gif
d.gif
del.gif
del.jpg
denglu.jpg
down1.gif
down2.gif
down3.gif
download.gif
e.gif
edit.gif
f.gif
fly.gif
g.gif
gonggao.gif
head.gif
hehe.gif
help.jpg
help1.jpg
help2.jpg
icn_best.gif
icn_point.gif
icon.jpg
icon1.gif
icon2.gif
icon3.gif
icon4.gif
ic_comm.gif
ic_money.gif
img.gif
index_01.gif
index_02.gif
index_03.gif
index_04.gif
index_05.gif
index_06.gif
index_07.gif
index_08.gif
index_09.gif
index_10.gif
index_11.gif
index_12.gif
index_13.gif
index_14.gif
index_15.gif
index_16.gif
index_17.gif
index_18.gif
index_19.gif
index_20.gif
index_21.gif
index_22.gif
index_23.gif
index_24.gif
index_25.gif
index_26.gif
index_27.gif
index_28.gif
index_29.gif
index_30.gif
index_31.gif
index_32.gif
index_33.gif
index_34.gif
index_35.gif
index_36.gif
index_37.gif
index_38.gif
index_39.gif
index_40.gif
index_41.gif
index_42.gif
index_43.gif
jia.gif
jian.gif
jiaocheng.gif
jilu.gif
kejian.gif
know_01.gif
know_02.gif
know_03.gif
know_04.gif
know_05.gif
know_06.gif
know_07.gif
know_08.gif
know_09.gif
know_10.gif
know_11.gif
know_12.gif
know_13.gif
know_14.gif
know_15.gif
know_16.gif
know_17.gif
know_18.gif
know_19.gif
know_20.gif
know_21.gif
know_22.gif
know_23.gif
know_24.gif
know_25.gif
know_26.gif
know_27.gif
know_28.gif
know_29.gif
korweb0019_13.gif
list_26.gif
list_27.gif
login2_01.gif
login2_08.gif
login2_12.gif
login_01.gif
login_02.gif
login_03.gif
login_04.gif
login_05.gif
login_06.gif
login_07.gif
login_08.gif
login_09.gif
login_10.gif
login_11.gif
login_12.gif
login_13.gif
login_14.gif
login_15.gif
login_16.gif
login_17.gif
mail.gif
menu.gif
month1.gif
month10.gif
month11.gif
month12.gif
month2.gif
month3.gif
month4.gif
month5.gif
month6.gif
month7.gif
month8.gif
month9.gif
more.jpg
mybg.gif
myroom_09.gif
newmail.gif
ok.gif
over.gif
pic.gif
pwd.gif
room_21.gif
room_22.gif
room_23.gif
room_24.gif
room_25.gif
room_26.gif
room_27.gif
room_28.gif
room_29.gif
room_30.gif
room_31.gif
room_32.gif
room_33.gif
room_34.gif
room_35.gif
room_36.gif
search.gif
search1.gif
search_0.gif
shanchuan.gif
spacer.gif
Thumbs.db
title.gif
today.gif
tuichu.jpg
upload_20.gif
upload_21.gif
upload_22.gif
upload_23.gif
upload_25.gif
upload_27.gif
upload_28.gif
upload_29.gif
upload_30.gif
upload_31.gif
view1_02.gif
view1_04.gif
view_05.gif
view_07.gif
view_08.gif
view_10.gif
work0.gif
work1.gif
work2.gif
work_01.jpg
work_02.jpg
yk_ico_s1.gif
yk_ico_s3.gif
zero.gif
zhuandao.gif
_menu.gif
_menu2.gif
分隔符.gif
js
cal.js
head.js
know
add.jsp
adopt.jsp
answer.jsp
ask.jsp
browse.jsp
delAnswer.jsp
delAsk.jsp
help.jsp
know.jsp
list.jsp
logout.jsp
myanswer.jsp
myask.jsp
search.jsp
view.jsp
META-INF
MANIFEST.MF
room
add.jsp
add_students.jsp
calendar.jsp
checkwork.jsp
course.jsp
del_course.jsp
del_log.jsp
del_work.jsp
del_workquery.jsp
down.jsp
edit_calendar.jsp
edit_course.jsp
edit_log.jsp
edit_work.jsp
excel_1.jsp
excel_2.jsp
excel_3.jsp
index.jsp
menu1.jsp
menu2.jsp
news.jsp
new_calendar.jsp
new_course.jsp
new_work.jsp
pwd.jsp
searchwork.jsp
send.jsp
simple.jsp
students_list.jsp
upload.jsp
uploadwork.jsp
uploadwork2.jsp
upload_ok.jsp
view_news.jsp
workpg.jsp
workquery.jsp
workscore.jsp
xuanke.jsp
upload
20070413143835.rar
20070413144029.rar
20070413144053.rar
20070413151256.rar
20070413151439.rar
20070413151630.rar
20070413151800.rar
20070413151851.rar
20070426133717.rar
WEB-INF
classes
lib
web.xml
work
checklogin.jsp
Download.jsp
first.jsp
index.jsp
list.jsp
login.jsp
logout.jsp
room.jsp
search.jsp
view.jsp
.classpath
.mymetadata
.project
压缩包内文档预览:
预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图
编号:508223    类型:共享资源    大小:3.14MB    格式:ZIP    上传时间:2015-11-10 上传人:QQ28****1120 IP属地:辽宁
12
积分
关 键 词:
毕业设计计算机
资源描述:
JSJ05-075@JSP教学管理系统(源代码+论文),毕业设计计算机
内容简介:
java 常见异常整理( 1) _爱琦 13 百度首页 | 百度空间 | 登录 爱琦 13 朋友多遍天下 主页博客相册 |个人档案 |好友 查看文章 java 常见异常整理( 1) 2007 年 02 月 09 日 星期五 23:18 大中小 异常 javax.servlet.jsp.JspException: Cannot retrieve mapping for action /Login ( /Login 是你的 action 名字) 可能原因 action 没有再 struts-config.xml 中定义,或没有找到匹配的 action,例如在 JSP文件中使用 标签)。 在 struts-config.xml 中通过 action 标签的 class 属性指定的 action 类不能被找到有很多种原因,例如:定位编译后的 .class 文件失败。 Failure nts to place compiled .class file for the action in the classpath (在 web 开发中, class 的的位置在 r WEB-INF/classes,所以你的 action class 必 须 要 在 这 个 目 录 下 。 例 如 你 的 action 类 位 于WEB-INF/classes/action/Login.class,那么在 struts-config.xml 中设置 action 的属性 type 时就是action.Login). 拼写错误,这个也时有发生,并且不易找到,特别注意第一个字母的大小写和包的名称。 异常 javax.servlet.jsp.JspException: No getter method for property username of bean org.apache.struts.taglib.html.BEAN 可能原因 没有位 form bean 中的某个变量定义 getter 方法 这个错误主要发生在表单提交的 FormBean 中,用 struts 标记 时,在 FormBean 中必须有一个 getUsername()方法。注意字母“ U”。 异常 java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm 可能原因 这个错误主要发生在在 classpath 中找不到相应的 Java .class 文件。如果这个错误发生在 web 应用程序的运行时,主要 是因为指定的class 文件不在 web server 的 classpath 中( /WEB-INF/classes 和 /WEB-INF/lib)。在上面的错误中,原因是找不到 ActionForm 类。 异常 javax.servlet.jsp.JspException: Exception creating bean of class org.apache.struts.action.ActionForm: 1 可能原因 Instantiating Struts-provided ActionForm class directly instead of instantiating a class derived off ActionForm. This mightoccur implicitly if you specify that a form-bean is this Struts ActionForm class rather than specifying a child of this classfor the form-bean. Not associating an ActionForm-descended class with an action can also lead to this error. nts 异常 javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection 可能原因 不是标识 Struts actionServlet 的 标记就是映射 .do 扩展名的 标记或者两者都没有在 web.xml 中 声明。 在 struts-config.xml 中的打字或者拼写错误也可导致这个异常的发生。例如缺少一个标记的关闭符号 /。最好使用 struts console 工具检查一下。 另外, load-on-startup 必须在 web.xml 中声明,这要么是一个空标记,要么指定一个数值,这个数值用来表 servlet 运行的优先级,数值越大优先级越低。 还有一个和使用 load-on-startup 有关的是使用 Struts 预编译 JSP 文件时也可能导致这个异常。 异常 java.lang.NullPointerException at org.apache.struts.util.RequestUtils.forwardURL(RequestUtils.java:1223) 可能原因 在 struts-config.xml 中的 forward 元素缺少 path 属性。例如应该是如下形式: 异常 javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope Probable Causes 试图在 Struts 的 form 标记外使用 form 的子元素。这常常发生在你在后面使用 Struts 的 html 标记。另外要注意可能你不经意使用的无主体的标记,如 ,这样 web nts 服务器解析时就当作一个无主体的标记,随后使用的所有 标记都被认为是在这个标记之外的,如又使用了 还有就是在使用 taglib 引入 HTML 标记库时,你使用的 prefix的值不是 html。 异常 javax.servlet.jsp.JspException: Missing message for key xx.xx.xx Probable Causes 这个 key 的值对没有在资源文件 ApplicationRperties 中定义。如果你使用 eclipse 时经常碰到这样的情况,当项目重新编译时, eclipse 会自动将 classes 目录下的资源文件删除。 资源文件 ApplicationRperties 不在 classpath 中应将资源文件放到 WEB-INF/classes 目录下,当然要在 struts-config.xml 中定义 ) 异常 Cannot find message resources under key org.apache.struts.action.MESSAGE 可能原因 很显然,这个错误是发生在使用资源文件时,而 Struts 没有找到资源文件。 Implicitly trying to use message resources that are not available (such as using empty html:options tag instead of specifyingthe options in its body - this assumes options are specified in ApplicationRperties file) XML parser issues - too many, too few, incorrect/incompatible versions 异常 Strange and seemingly random characters in HTML and on screen, but not in original JSP or servlet. 可能原因 混和使用 Struts 的 html:form 标记和标准的 HTML 标记不正确。 使用的编码样式在本页中不支持。 nts 异常 Document contained no data in Netscape No data rendered (completely empty) page in Microsoft Internet Explorer 可能原因 使用一个 Action 的派生类而没有实现 perform()方法或 execute()方法。在Struts1.0 中实现的是 perform()方法,在 Struts1.1 中实现的是 execute()方法,但 Struts1.1 向后兼容 perform()方法。但你使用 Struts1.1 创建一个 Action 的派生类,并且实现了 execute()方法,而你在 Struts1.0 中运行的话,就会得到 Document contained nodata error message in Netscape or a completely empty (no HTML whatsoever) page rendered in Microsoft Internet Explorer.”的错误信息。 异常 ServletException: BeanUtils.populate 解决方案 在用 Struts 上传文件时 ,遇到了 javax.servlet.ServletException: BeanUtils.populate 异常。 我的 ActionServlet 并没有用到 BeanUtils 这些工具类。后来仔细检查代码发现是在 jsp 文件里的 form 忘了加 enctype=multipart/form-data 了。所以写程序遇到错误或异常应该从多方面考虑问题存在的可能性,想到系统提示信息以外的东西。 1. 定义 Action 后 , 如果指定了 name, 那么必须要定义一个与它同名的FormBean 才能进行 form 映射 .2. 如果定义 Action后 , 提交页面时出现 No input attribute for mapping path. 错误 , 则需要在其 input 属性中定义转向的页面 .3. 如果插入新的数据时出现 Batch update row count wrong:. 错误 , 则说明 XXX.hbm.xml 中指定的 key 的类型为原始类型 (int, long),因为这种类型会自动分配值 , 而这个值往往会让系统认为已经存在该记录 , 正确的方法是使用 java.lang.Integer 或 java.lang.Long 对象 .4. 如果插入数据时出现 argument type mismatch 错误 , 可能是你使用了 Date 等特殊对象 , nts 因为 struts 不能自动从 String 型转换成 Date 型 ,所以 , 你需要在 Action 中手动把 String 型转换成 Date 型 .5. Hibernate 中 , Query 的 iterator()比 list()方法快很多 .6. 如果出现 equal symbol expected 错误 , 说明你的 strtus 标签中包 含另一个标签或者变量 , 例如 : / 或者 / 这样的情况 . 错误: Exception in thread main org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update 原因与解决: 因 为 Hibernate Tools(或者 Eclipse 本身的Database Explorer)生成 *.hbn.xml 工具中包含有 catalog=*( *表示数据库名称)这样的属性 ,将该属性删除就可以了 错误: org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations) 原因与解决: 方法 1 删除 Set 方的 cascade 方法 2 解决关联关系后,再删除 方法 3 在 many-to-one 方 增加 cascade 但值不能是 none 最后一招: 检查一下 hashCode equals 是否使用了 id 作为唯一标示的选项了;我用 uuid.hex 时是没有问题的;但是用了 native,就不行了,怎么办?删除啊! 问题:今天用 Tomcat 5.5.12,发现原来很好用的系统不能用了,反复测试发现页面中不能包含 taglib,否则会出现以下提示: HTTP Status 500 -type Exception reportMessage description The server encountered an internal error () that prevented it from fulfilling this request.exceptionorg.apache.jasper.JasperException: /index.jsp(1,1) Unable to read TLD META-INF/tlds/struts-bean.tld from JAR filefile:*/WEB-INF/lib/struts.jar:原因:更新了工程用的 lib文件夹下的 jar,发 布时也发布了 servlet.jar 和 jsp-api.jar。解决:把 jsp-api.jar 删除就解决这个问题了。nts 错误: java.lang.NullPointerException 原因: 发现 dao 实例、 manage 实例等需要注入的东西没有被注入(俗称空指针异常)解决:这个时候,你应该查看日志文件;默认是应用服务器的 log 文件,比如 Tomcat 就是 Tomcat 安装目录 /logs ; 你 会 发 现 提 示 你 : 可 能 是 :org.springframework.beans.factory.BeanCreationException: Error creating bean with name sf defined in ServletContextresource /WEB-INF/applicationContext.xml: Initialization of bean failed; nested exception isorg.hibernate.HibernateException: could not configure from URL: file:src/hibernate.cfg.xmlorg.hibernate.HibernateException: could not configure from URL: file:src/hibernate.cfg.xml.Caused by: java.io.FileNotFoundException: srchibernate.cfg.xml 可 能 是 :org.springframework.beans.factory.BeanCreationException: Error creating bean with name sessionFactory defined inServletContext resource /WEB-INF/applicationContext.xml: Initialization of bean failed; nested exception isorg.hibernate.MappingException: Resource: com/mcc/coupon/model/UserRole.hbm.xml not foundorg.hibernate.MappingException: Resource: com/mcc/coupon/model/UserRole.hbm.xml not found 然后你就知道原因是因为配置文件的解析出了错误,这个通过 Web 页面是看不出来 的。更多的是持久化影射文件出的错误;导致了没有被解析;当然你需要的功能就无法使用了。 错误: StandardWrapperValveaction: Servlet.service() for servlet action threw exception javax.servlet.jsp.JspException: Cannot retrieve mapping for action /settlementTypeManage 或者: type Status report message Servlet action is not available description The requested resource (Servlet action is not available) is not available. 原因: 同 上 错误 StandardWrapperValvejsp: Servlet.service() for servlet jsp threw exceptionjava.lang.ClassNotFoundException: org.apache.struts.taglib.bean.CookieTei 界面错误具体描述: nts org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.bean.CookieTei 原因与解决: 你的“ html:”开头的标签没有放在一个中 重新启动你的应用服务器,自动就没有这个问题了 类 别: java 错误处理 | 浏览 (215) 网友评论: 发表评论:姓 名: *姓名最长为 50 字节 网址或邮箱: (选填 ) 内 容: 验证码: 请输入下图中的四位验证码,字母不区分大小写。 看不清 ? 2007 Baidu ntsjava 常见异常整理( 1) _爱琦 13 百度首页 | 百度空间 | 登录 爱琦 13 朋友多遍天下 主页博客相册 |个人档案 |好友 查看文章 java 常见异常整理( 1) 2007 年 02 月 09 日 星期五 23:18 大中小 异常 javax.servlet.jsp.JspException: Cannot retrieve mapping for action /Login ( /Login 是你的 action 名字) 可能原因 action 没有再 struts-config.xml 中定义,或没有找到匹配的 action,例如在 JSP文件中使用 标签)。 在 struts-config.xml 中通过 action 标签的 class 属性指定的 action 类不能被找到有很多种原因,例如:定位编译后的 .class 文件失败。 Failure nts to place compiled .class file for the action in the classpath (在 web 开发中, class 的的位置在 r WEB-INF/classes,所以你的 action class 必 须 要 在 这 个 目 录 下 。 例 如 你 的 action 类 位 于WEB-INF/classes/action/Login.class,那么在 struts-config.xml 中设置 action 的属性 type 时就是action.Login). 拼写错误,这个也时有发生,并且不易找到,特别注意第一个字母的大小写和包的名称。 异常 javax.servlet.jsp.JspException: No getter method for property username of bean org.apache.struts.taglib.html.BEAN 可能原因 没有位 form bean 中的某个变量定义 getter 方法 这个错误主要发生在表单提交的 FormBean 中,用 struts 标记 时,在 FormBean 中必须有一个 getUsername()方法。注意字母“ U”。 异常 java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm 可能原因 这个错误主要发生在在 classpath 中找不到相应的 Java .class 文件。如果这个错误发生在 web 应用程序的运行时,主要 是因为指定的class 文件不在 web server 的 classpath 中( /WEB-INF/classes 和 /WEB-INF/lib)。在上面的错误中,原因是找不到 ActionForm 类。 异常 javax.servlet.jsp.JspException: Exception creating bean of class org.apache.struts.action.ActionForm: 1 可能原因 Instantiating Struts-provided ActionForm class directly instead of instantiating a class derived off ActionForm. This mightoccur implicitly if you specify that a form-bean is this Struts ActionForm class rather than specifying a child of this classfor the form-bean. Not associating an ActionForm-descended class with an action can also lead to this error. nts 异常 javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection 可能原因 不是标识 Struts actionServlet 的 标记就是映射 .do 扩展名的 标记或者两者都没有在 web.xml 中 声明。 在 struts-config.xml 中的打字或者拼写错误也可导致这个异常的发生。例如缺少一个标记的关闭符号 /。最好使用 struts console 工具检查一下。 另外, load-on-startup 必须在 web.xml 中声明,这要么是一个空标记,要么指定一个数值,这个数值用来表 servlet 运行的优先级,数值越大优先级越低。 还有一个和使用 load-on-startup 有关的是使用 Struts 预编译 JSP 文件时也可能导致这个异常。 异常 java.lang.NullPointerException at org.apache.struts.util.RequestUtils.forwardURL(RequestUtils.java:1223) 可能原因 在 struts-config.xml 中的 forward 元素缺少 path 属性。例如应该是如下形式: 异常 javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope Probable Causes 试图在 Struts 的 form 标记外使用 form 的子元素。这常常发生在你在后面使用 Struts 的 html 标记。另外要注意可能你不经意使用的无主体的标记,如 ,这样 web nts 服务器解析时就当作一个无主体的标记,随后使用的所有 标记都被认为是在这个标记之外的,如又使用了 还有就是在使用 taglib 引入 HTML 标记库时,你使用的 prefix的值不是 html。 异常 javax.servlet.jsp.JspException: Missing message for key xx.xx.xx Probable Causes 这个 key 的值对没有在资源文件 ApplicationRperties 中定义。如果你使用 eclipse 时经常碰到这样的情况,当项目重新编译时, eclipse 会自动将 classes 目录下的资源文件删除。 资源文件 ApplicationRperties 不在 classpath 中应将资源文件放到 WEB-INF/classes 目录下,当然要在 struts-config.xml 中定义 ) 异常 Cannot find message resources under key org.apache.struts.action.MESSAGE 可能原因 很显然,这个错误是发生在使用资源文件时,而 Struts 没有找到资源文件。 Implicitly trying to use message resources that are not available (such as using empty html:options tag instead of specifyingthe options in its body - this assumes options are specified in ApplicationRperties file) XML parser issues - too many, too few, incorrect/incompatible versions 异常 Strange and seemingly random characters in HTML and on screen, but not in original JSP or servlet. 可能原因 混和使用 Struts 的 html:form 标记和标准的 HTML 标记不正确。 使用的编码样式在本页中不支持。 nts 异常 Document contained no data in Netscape No data rendered (completely empty) page in Microsoft Internet Explorer 可能原因 使用一个 Action 的派生类而没有实现 perform()方法或 execute()方法。在Struts1.0 中实现的是 perform()方法,在 Struts1.1 中实现的是 execute()方法,但 Struts1.1 向后兼容 perform()方法。但你使用 Struts1.1 创建一个 Action 的派生类,并且实现了 execute()方法,而你在 Struts1.0 中运行的话,就会得到 Document contained nodata error message in Netscape or a completely empty (no HTML whatsoever) page rendered in Microsoft Internet Explorer.”的错误信息。 异常 ServletException: BeanUtils.populate 解决方案 在用 Struts 上传文件时 ,遇到了 javax.servlet.ServletException: BeanUtils.populate 异常。 我的 ActionServlet 并没有用到 BeanUtils 这些工具类。后来仔细检查代码发现是在 jsp 文件里的 form 忘了加 enctype=multipart/form-data 了。所以写程序遇到错误或异常应该从多方面考虑问题存在的可能性,想到系统提示信息以外的东西。 1. 定义 Action 后 , 如果指定了 name, 那么必须要定义一个与它同名的FormBean 才能进行 form 映射 .2. 如果定义 Action后 , 提交页面时出现 No input attribute for mapping path. 错误 , 则需要在其 input 属性中定义转向的页面 .3. 如果插入新的数据时出现 Batch update row count wrong:. 错误 , 则说明 XXX.hbm.xml 中指定的 key 的类型为原始类型 (int, long),因为这种类型会自动分配值 , 而这个值往往会让系统认为已经存在该记录 , 正确的方法是使用 java.lang.Integer 或 java.lang.Long 对象 .4. 如果插入数据时出现 argument type mismatch 错误 , 可能是你使用了 Date 等特殊对象 , nts 因为 struts 不能自动从 String 型转换成 Date 型 ,所以 , 你需要在 Action 中手动把 String 型转换成 Date 型 .5. Hibernate 中 , Query 的 iterator()比 list()方法快很多 .6. 如果出现 equal symbol expected 错误 , 说明你的 strtus 标签中包 含另一个标签或者变量 , 例如 : / 或者 / 这样的情况 . 错误: Exception in thread main org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update 原因与解决: 因 为 Hibernate Tools(或者 Eclipse 本身的Database Explorer)生成 *.hbn.xml 工具中包含有 catalog=*( *表示数据库名称)这样的属性 ,将该属性删除就可以了 错误: org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations) 原因与解决: 方法 1 删除 Set 方的 cascade 方法 2 解决关联关系后,再删除 方法 3 在 many-to-one 方 增加 cascade 但值不能是 none 最后一招: 检查一下 hashCode equals 是否使用了 id 作为唯一标示的选项了;我用 uuid.hex 时是没有问题的;但是用了 native,就不行了,怎么办?删除啊! 问题:今天用 Tomcat 5.5.12,发现原来很好用的系统不能用了,反复测试发现页面中不能包含 taglib,否则会出现以下提示: HTTP Status 500 -type Exception reportMessage description The server encountered an internal error () that prevented it from fulfilling this request.exceptionorg.apache.jasper.JasperException: /index.jsp(1,1) Unable to read TLD META-INF/tlds/struts-bean.tld from JAR filefile:*/WEB-INF/lib/struts.jar:原因:更新了工程用的 lib文件夹下的 jar,发 布时也发布了 servlet.jar 和 jsp-api.jar。解决:把 jsp-api.jar 删除就解决这个问题了。nts 错误: java.lang.NullPointerException 原因: 发现 dao 实例、 manage 实例等需要注入的东西没有被注入(俗称空指针异常)解决:这个时候,你应该查看日志文件;默认是应用服务器的 log 文件,比如 Tomcat 就是 Tomcat 安装目录 /logs ; 你 会 发 现 提 示 你 : 可 能 是 :org.springframework.beans.factory.BeanCreationException: Error creating bean with name sf defined in ServletContextresource /WEB-INF/applicationContext.xml: Initialization of bean failed; nested except
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
提示  人人文库网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:JSJ05-075@JSP教学管理系统(源代码+论文)
链接地址:https://www.renrendoc.com/p-508223.html

官方联系方式

2:不支持迅雷下载,请使用浏览器下载   
3:不支持QQ浏览器下载,请用其他浏览器   
4:下载后的文档和图纸-无水印   
5:文档经过压缩,下载后原文更清晰   
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

网站客服QQ:2881952447     

copyright@ 2020-2025  renrendoc.com 人人文库版权所有   联系电话:400-852-1180

备案号:蜀ICP备2022000484号-2       经营许可证: 川B2-20220663       公网安备川公网安备: 51019002004831号

本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知人人文库网,我们立即给予删除!