| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 602 人关注过本帖
标题:急急!!初学jsp,运行老是出错,是不是tomcat 4.1配置错了!
只看楼主 加入收藏
wulishengedu
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2005-10-6
收藏
 问题点数:0 回复次数:1 
急急!!初学jsp,运行老是出错,是不是tomcat 4.1配置错了!
请大家帮忙,我想学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: 2 in the jsp file: /wu/about.jsp

Generated servlet error:
    [javac] Compiling 1 source file

C:\Tomcat 4.1\work\Standalone\localhost\_\wu\about_jsp.java:64: package test does not exist
      test.bbsuser user = null;
          ^



An error occurred at line: 2 in the jsp file: /wu/about.jsp

Generated servlet error:
C:\Tomcat 4.1\work\Standalone\localhost\_\wu\about_jsp.java:66: package test does not exist
        user = (test.bbsuser) pageContext.getAttribute("user", PageContext.PAGE_SCOPE);
                    ^



An error occurred at line: 2 in the jsp file: /wu/about.jsp

Generated servlet error:
C:\Tomcat 4.1\work\Standalone\localhost\_\wu\about_jsp.java:69: package test does not exist
            user = (test.bbsuser) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "test.bbsuser");
                        ^



An error occurred at line: 3 in the jsp file: /wu/about.jsp

Generated servlet error:
C:\Tomcat 4.1\work\Standalone\localhost\_\wu\about_jsp.java:79: package test does not exist
      test.bbsboard board = null;
          ^



An error occurred at line: 3 in the jsp file: /wu/about.jsp

Generated servlet error:
C:\Tomcat 4.1\work\Standalone\localhost\_\wu\about_jsp.java:81: package test does not exist
        board = (test.bbsboard) pageContext.getAttribute("board", PageContext.PAGE_SCOPE);
                     ^



An error occurred at line: 3 in the jsp file: /wu/about.jsp

Generated servlet error:
C:\Tomcat 4.1\work\Standalone\localhost\_\wu\about_jsp.java:84: package test does not exist
            board = (test.bbsboard) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "test.bbsboard");
                         ^
6 errors


	at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
	at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:248)
	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	at java.lang.Thread.run(Thread.java:534)


Apache Tomcat/4.1.31

搜索更多相关主题的帖子: message request ffffff server report 
2005-10-06 16:39
zishan
Rank: 1
等 级:新手上路
帖 子:37
专家分:0
注 册:2005-8-6
收藏
得分:0 
test 包不存在,你用import把这个包加入到你的jsp里面

2005-10-08 09:20
快速回复:急急!!初学jsp,运行老是出错,是不是tomcat 4.1配置错了!
数据加载中...
 
   



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

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