进入http://127.0.0.1:8080/admin/时遇到太多问题,请大家帮我解决下,非常感谢

chyun705 2012-04-01 10:29:06
HTTP Status 500 -

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

type Exception report

message

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

exception

javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.struts.taglib.html.HtmlTag
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
admin.login_jsp._jspService(login_jsp.java:118)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

java.lang.NoClassDefFoundError: Could not initialize class org.apache.struts.taglib.html.HtmlTag
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:169)
admin.login_jsp.class$(login_jsp.java:70)
admin.login_jsp._jspService(login_jsp.java:70)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


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

...全文
701 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
llqzy 2012-04-01
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]
一种是标签库没有导入,缺少tld文件
看看你在jsp页面中<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>有没有

看看你的web-inf下有没有struts-html.tld文件

另一种是 hibernate 里面的包是否和struts冲突了
[/Quote]
+1
tt986101dpc 2012-04-01
  • 打赏
  • 举报
回复
一种是标签库没有导入,缺少tld文件
看看你在jsp页面中<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>有没有

看看你的web-inf下有没有struts-html.tld文件

另一种是 hibernate 里面的包是否和struts冲突了
成一粒 2012-04-01
  • 打赏
  • 举报
回复
javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.struts.taglib.html.HtmlTag
不能够初始化 org.apache.struts.taglib.html.HtmlTag 是不是没导入标签库??