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

运作jsp时出错,大侠来看看

2013-09-11 
运行jsp时出错,大侠来看看HTTPStatus500---------------------------------------------typeExceptionrepo

运行jsp时出错,大侠来看看
HTTP   Status   500   -  

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

type   Exception   report

message  

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

exception  

org.apache.jasper.JasperException:   Unable   to   compile   class   for   JSP

Generated   servlet   error:
C:\Program   Files\Apache   Software   Foundation\Tomcat   5.0\webapps\test2\work\org\apache\jsp\info_jsp.java:7:   package   com   does   not   exist
import   com.*;
^


An   error   occurred   at   line:   11   in   the   jsp   file:   /info.jsp
Generated   servlet   error:
C:\Program   Files\Apache   Software   Foundation\Tomcat   5.0\webapps\test2\work\org\apache\jsp\info_jsp.java:117:   cannot   resolve   symbol
symbol     :   variable   Chaxun  
location:   class   org.apache.jsp.info_jsp
      Chaxun.cx(sql);
      ^


An   error   occurred   at   line:   42   in   the   jsp   file:   /info.jsp
Generated   servlet   error:
C:\Program   Files\Apache   Software   Foundation\Tomcat   5.0\webapps\test2\work\org\apache\jsp\info_jsp.java:123:   cannot   resolve   symbol
symbol     :   variable   Chaxun  
location:   class   org.apache.jsp.info_jsp
      for(int   i=0;i <Chaxun.num;i++)
                                  ^


An   error   occurred   at   line:   46   in   the   jsp   file:   /info.jsp
Generated   servlet   error:
C:\Program   Files\Apache   Software   Foundation\Tomcat   5.0\webapps\test2\work\org\apache\jsp\info_jsp.java:128:   cannot   resolve   symbol
symbol     :   variable   Chaxun  
location:   class   org.apache.jsp.info_jsp
            out.print(Chaxun.result[i][0]);
                                ^


An   error   occurred   at   line:   47   in   the   jsp   file:   /info.jsp
Generated   servlet   error:
C:\Program   Files\Apache   Software   Foundation\Tomcat   5.0\webapps\test2\work\org\apache\jsp\info_jsp.java:131:   cannot   resolve   symbol
symbol     :   variable   Chaxun  
location:   class   org.apache.jsp.info_jsp
            out.print(Chaxun.result[i][1]);
                                ^


An   error   occurred   at   line:   48   in   the   jsp   file:   /info.jsp
Generated   servlet   error:
C:\Program   Files\Apache   Software   Foundation\Tomcat   5.0\webapps\test2\work\org\apache\jsp\info_jsp.java:134:   cannot   resolve   symbol
symbol     :   variable   Chaxun  


location:   class   org.apache.jsp.info_jsp
            out.print(Chaxun.result[i][2]);
                                ^


An   error   occurred   at   line:   49   in   the   jsp   file:   /info.jsp
Generated   servlet   error:
C:\Program   Files\Apache   Software   Foundation\Tomcat   5.0\webapps\test2\work\org\apache\jsp\info_jsp.java:137:   cannot   resolve   symbol
symbol     :   variable   Chaxun  
location:   class   org.apache.jsp.info_jsp
            out.print(Chaxun.result[i][3]);
                                ^
7   errors


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
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)


[解决办法]
查看一下你的设置.错误应该是没到找到想关类.
import com.* 这个东西没的进去
查看你的包对不
[解决办法]
应该是没有import那个Chaxun类。
[解决办法]
导入包有问题 import com.*;
还有就是Chaxun这个有问题,不能解\析
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.myexception.cn/j2ee/2308.html

热点排行