标题:求助!项目上传到服务器访问出错
只看楼主
逆袭的小怪兽
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2015-5-5
 问题点数:0 回复次数:1 
求助!项目上传到服务器访问出错
程序代码:
HTTP Status 500 - An exception occurred processing JSP page /index.jsp at line 100

type Exception report

message An exception occurred processing JSP page /index.jsp at line 100

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

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 100

97:     <%
98:         int t1;
99:         int t2;
100:         count_num co1 = new count_num();
101:         t1 = co1.count("recent");
102:         count_num co2 = new count_num();
103:         t2 = co2.count("hire");


Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

root cause

javax.servlet.ServletException: java.lang.UnsupportedClassVersionError: count/count_num
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:916)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:845)
    org.apache.jsp.index_jsp._jspService(index_jsp.java:408)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

root cause

java.lang.UnsupportedClassVersionError: count/count_num
    org.apache.jsp.index_jsp._jspService(index_jsp.java:169)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

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

这是我程序的错误信息,我已经把我自己写的类打包成jar包放在lib下了,可是为什么还是有错误?谢谢各位过路大神
搜索更多相关主题的帖子: occurred 服务器 server 项目 
2015-05-07 14:21
逆袭的小怪兽
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2015-5-5
得分:0 
擦擦,知道出什么问题了,是我没有把数据库导入才导致这个servlet出错的
2015-05-07 15:04



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-444962-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.023725 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved