首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

?解决方案

2013-09-11 
? %@pagecontentType text/htmlcharsetgb2312 %%@pageimport java.sql.* %htmlBODY%Class



%@   page   contentType= "text/html;   charset=gb2312 "%>
<%@   page   import= "java.sql.* "%>

<html>
<BODY>
<%
            Class.forName( "org.gjt.mm.mysql.Driver ").newInstance();
            String   url= "jdbc:mysql://localhost/zqswork?user=root&password=root&useUnicaode=true&characterEncoding=8859-1 ";
            Connection   conn=DriverManager.getConnection(url);
            Statement   stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
            String   sql= "selcet*form   zqsworktable ";
          ResultSet   rs=stmt.executeQuery(sql);
            while(rs.next()){
                                %> 第1个字段 <%=rs.getString(1)%>
                                第2个字段 <%=rs.getString(2)%>
                                第3个字段 <%=rs.getString(3)%>
                                <%}%>
                                <%out.println( "成功拉! ");%>
                                <%
                 
                                    rs.close();
                                      stmt.close();
                                      conn.close();
                                %>

</BODY>
</html>
               
错误如下:


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:   org/aspectj/lang/Signature
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.MyJsp_jsp._jspService(MyJsp_jsp.java:88)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
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)


root   cause  

java.lang.NoClassDefFoundError:   org/aspectj/lang/Signature
java.lang.Class.forName0(Native   Method)
java.lang.Class.forName(Unknown   Source)
org.apache.jsp.MyJsp_jsp._jspService(MyJsp_jsp.java:49)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
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.


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

Apache   Tomcat/5.0.28


帮我看看原因 谢谢大家!!


[解决办法]
呵呵,搞定就好,jf,谢谢
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html

热点排行