org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to load class for JSP
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:389)
root cause org.apache.jasper.JasperException: Unable to load class for JSP
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:620)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:389)
root cause java.lang.ClassNotFoundException: org.apache.jsp.net.Admin.manage_005fdiary_jsp
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:618)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:389)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.这个是spring+struts2+jpa的集成的配置文件的错误吗?

解决方案 »

  1.   

    java.lang.ClassNotFoundException: org.apache.jsp.net.Admin.manage_005fdiary_jsp 你的JSP语法有问题,tomcat不能正确编译它。
      

  2.   

    java.lang.ClassNotFoundException: org.apache.jsp.net.Admin.manage_005fdiary_jsp 这里说是找不到类,可能是缺包,也可能是你页面写错了。总之你的把出错的页面或者java代码拿来看看才行。
      

  3.   

    <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
    <%@ include file="/net/share/taglib.jsp" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    <link rel="stylesheet" href="/Admin/css/table.css" type="text/css" />
    <style type="text/css">
    <!--
    body {
    background-color: #97FFFF;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    }
    -->
    </style></head><body>
    <table width="700" height="523" border="0" cellpadding="0" cellspacing="0" bordercolor="#3399FF">
      <tr>
        <th height="13" colspan="8" scope="col">&nbsp;</th>
      </tr>
      <tr>
        <th width="74" height="13" scope="col">&nbsp;</th>
        <th width="74" scope="col">&nbsp;</th>
        <th width="108" scope="col">&nbsp;</th>
        <th width="79" scope="col">&nbsp;</th>
        <th width="88" scope="col"></th>
        <th width="94" scope="col">&nbsp;</th>
        <th width="98" scope="col">删除</th>
        <th width="85" scope="col">&nbsp;</th>
      </tr>
      <tr>
        <th height="273" colspan="8" scope="col">&nbsp;</th>
      </tr>
      <tr>
        <th height="12" scope="col">&nbsp;</th>
        <th height="12" scope="col">&nbsp;</th>
        <th height="12" scope="col">&nbsp;</th>
        <th height="12" scope="col">&nbsp;</th>
        <th height="12" scope="col">总记录数:${pageView.totalrecord}</th>
        <th height="12" scope="col">每页显示:${pageView.maxresult}条</th>
        <th height="12" scope="col">总页数:${pageView.totalpage}页</th>
        <th height="12" scope="col"></th>
      </tr>
    </table>
    </body>
    </html>
      

  4.   

    估计时这里面的问题
    <%@ include file="/net/share/taglib.jsp" %>