| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 821 人关注过本帖
标题:同样的文件保存后就运行不了怎么回事?
只看楼主 加入收藏
snowcat
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2006-4-8
收藏
 问题点数:0 回复次数:4 
同样的文件保存后就运行不了怎么回事?

疯了!
为什么源文件可以运行,只是打开其中一个.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

An error occurred at line: 6 in the jsp file: /listboard.jsp

Generated servlet error:
    [javac] Compiling 1 source file

G:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\11\listboard_jsp.java:52: package connection does not exist
      connection.ConnPool pool = null;
                ^



An error occurred at line: 6 in the jsp file: /listboard.jsp

Generated servlet error:
G:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\11\listboard_jsp.java:54: package connection does not exist
        pool = (connection.ConnPool) pageContext.getAttribute("pool", PageContext.APPLICATION_SCOPE);
                          ^



An error occurred at line: 6 in the jsp file: /listboard.jsp

Generated servlet error:
G:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\11\listboard_jsp.java:57: package connection does not exist
            pool = (connection.ConnPool) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "connection.ConnPool");
                              ^
3 errors


	at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
	at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	at java.lang.Thread.run(Thread.java:534)


Apache Tomcat/4.1.30

谁知道怎么回事?!?!!?

搜索更多相关主题的帖子: 文件 保存 运行 
2006-04-30 14:42
snowcat
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2006-4-8
收藏
得分:0 
求求个位了, 有没有看得懂的呀。
小弟快疯了。。。。
2006-04-30 14:43
snowcat
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2006-4-8
收藏
得分:0 
这天下怪事怎么这么多呀,让人操心。。。。
2006-04-30 14:44
snowcat
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2006-4-8
收藏
得分:0 
我不是水王,只渴望回答。。那怕有人关注一下。。。
2006-04-30 14:59
zhou
Rank: 1
等 级:禁止发言
帖 子:429
专家分:0
注 册:2006-6-16
收藏
得分:0 
提示: 作者被禁止或删除 内容自动屏蔽
2008-03-30 13:26
快速回复:同样的文件保存后就运行不了怎么回事?
数据加载中...
 
   



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

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