Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Servlet/JSP/JSF/JavaFX Script
打印话题 寄给朋友 订阅主题 |
作者 | eclipse+myeclipse3.8.4+tomcat5.0.28的问题,请高手帮帮我 |
t1031
发贴: 3 |
于 2005-05-06 21:50
环境变量: CATALINA_BASE=D:\java tools\tomcat-5.0.28 CATALINA_HOME=D:\java tools\tomcat-5.0.28 CLASSPATH=.;D:\JDK\j2sdk142\lib\dt.jar;D:\JDK\j2sdk142\lib\tools.jar;D:\java tools\tomcat-5.0.28\common\lib\servlet.jar; J2EE_HOME=D:\JDK\j2ee131 JAVA_HOME=D:\JDK\j2sdk142 JBOSS_HOME=D:\java tools\jboss-3.2.6 Path=D:\JDK\j2sdk142\bin;D:\JDK\j2ee131\bin; TOMCAT_HOME=D:\java tools\tomcat-5.0.28 tocmat 错误: 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: /Usebean.jsp Generated servlet error: D:\java tools\tomcat-5.0.28\work\Catalina\localhost\UseBean\org\apache\jsp\Usebean_jsp.java:45: cannot resolve symbol symbol : class BankAccount location: class org.apache.jsp.Usebean_jsp BankAccount BA = null; ^ An error occurred at line: 2 in the jsp file: /Usebean.jsp Generated servlet error: D:\java tools\tomcat-5.0.28\work\Catalina\localhost\UseBean\org\apache\jsp\Usebean_jsp.java:47: cannot resolve symbol symbol : class BankAccount location: class org.apache.jsp.Usebean_jsp BA = (BankAccount) _jspx_page_context.getAttribute("BA", PageContext.APPLICATION_SCOPE); ^ An error occurred at line: 2 in the jsp file: /Usebean.jsp Generated servlet error: D:\java tools\tomcat-5.0.28\work\Catalina\localhost\UseBean\org\apache\jsp\Usebean_jsp.java:49: cannot resolve symbol symbol : class BankAccount location: class org.apache.jsp.Usebean_jsp BA = new BankAccount(); ^ 3 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) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. -------------------------------------------------------------------------------- 命令行错误显示: 信息: Server startup in 8938 ms 2005-5-6 21:16:47 org.apache.jasper.compiler.Compiler generateClass 严重: Javac exception Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) 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) 2005-5-6 21:16:47 org.apache.jasper.compiler.Compiler generateClass 严重: Env: Compile: javaFileName=/D:/java tools/tomcat-5.0.28/work/Catalina/localhost/UseBean//org/apache/jsp\Usebean_jsp.java classpath=/D:/java tools/tomcat-5.0.28/webapps/UseBean/WEB-INF/classes/;D:\java tools\tomcat-5.0.28\work\Catalina\localhost\UseBean;/D:/java tools/tomcat-5.0.28/webapps/UseBean/WEB-INF/classes/;D:/java tools/tomcat-5.0.28/shared/classes/;D:/java tools/tomcat-5.0.28/common/classes/;D:/java tools/tomcat-5.0.28/common/endorsed/xercesImpl.jar;D:/java tools/tomcat-5.0.28/common/endorsed/xml-apis.jar;D:/java tools/tomcat-5.0.28/common/lib/ant-launcher.jar;D:/java tools/tomcat-5.0.28/common/lib/ant.jar;D:/java tools/tomcat-5.0.28/common/lib/commons-collections-3.1.jar;D:/java tools/tomcat-5.0.28/common/lib/commons-dbcp-1.2.1.jar;D:/java tools/tomcat-5.0.28/common/lib/commons-el.jar;D:/java tools/tomcat-5.0.28/common/lib/commons-pool-1.2.jar;D:/java tools/tomcat-5.0.28/common/lib/jasper-compiler.jar;D:/java tools/tomcat-5.0.28/common/lib/jasper-runtime.jar;D:/java tools/tomcat-5.0.28/common/lib/jsp-api.jar;D:/java tools/tomcat-5.0.28/common/lib/naming-common.jar;D:/java tools/tomcat-5.0.28/common/lib/naming-factory.jar;D:/java tools/tomcat-5.0.28/common/lib/naming-java.jar;D:/java tools/tomcat-5.0.28/common/lib/naming-resources.jar;D:/java tools/tomcat-5.0.28/common/lib/servlet-api.jar;/D:/JDK/j2sdk142/lib/tools.jar;/D:/java%20tools/tomcat-5.0.28/bin/bootstrap.jar;/D:/JDK/j2sdk142/jre/lib/ext/dnsns.jar;/D:/JDK/j2sdk142/jre/lib/ext/ldapsec.jar;/D:/JDK/j2sdk142/jre/lib/ext/localedata.jar;/D:/JDK/j2sdk142/jre/lib/ext/sunjce_provider.jar cp=D:\JDK\j2sdk142\lib\tools.jar;D:\java tools\tomcat-5.0.28\bin\bootstrap.jar cp=D:\java tools\tomcat-5.0.28\webapps\UseBean\WEB-INF\classes cp=D:\java tools\tomcat-5.0.28\work\Catalina\localhost\UseBean cp=D:\java tools\tomcat-5.0.28\webapps\UseBean\WEB-INF\classes cp=D:\java tools\tomcat-5.0.28\shared\classes cp=D:\java tools\tomcat-5.0.28\common\classes cp=D:\java tools\tomcat-5.0.28\common\endorsed\xercesImpl.jar cp=D:\java tools\tomcat-5.0.28\common\endorsed\xml-apis.jar cp=D:\java tools\tomcat-5.0.28\common\lib\ant-launcher.jar cp=D:\java tools\tomcat-5.0.28\common\lib\ant.jar cp=D:\java tools\tomcat-5.0.28\common\lib\commons-collections-3.1.jar cp=D:\java tools\tomcat-5.0.28\common\lib\commons-dbcp-1.2.1.jar cp=D:\java tools\tomcat-5.0.28\common\lib\commons-el.jar cp=D:\java tools\tomcat-5.0.28\common\lib\commons-pool-1.2.jar cp=D:\java tools\tomcat-5.0.28\common\lib\jasper-compiler.jar cp=D:\java tools\tomcat-5.0.28\common\lib\jasper-runtime.jar cp=D:\java tools\tomcat-5.0.28\common\lib\jsp-api.jar cp=D:\java tools\tomcat-5.0.28\common\lib\naming-common.jar cp=D:\java tools\tomcat-5.0.28\common\lib\naming-factory.jar cp=D:\java tools\tomcat-5.0.28\common\lib\naming-java.jar cp=D:\java tools\tomcat-5.0.28\common\lib\naming-resources.jar cp=D:\java tools\tomcat-5.0.28\common\lib\servlet-api.jar cp=D:\JDK\j2sdk142\lib\tools.jar cp=D:\java%20tools\tomcat-5.0.28\bin\bootstrap.jar cp=D:\JDK\j2sdk142\jre\lib\ext\dnsns.jar cp=D:\JDK\j2sdk142\jre\lib\ext\ldapsec.jar cp=D:\JDK\j2sdk142\jre\lib\ext\localedata.jar cp=D:\JDK\j2sdk142\jre\lib\ext\sunjce_provider.jar work dir=D:\java tools\tomcat-5.0.28\work\Catalina\localhost\UseBean extension dir=D:\JDK\j2sdk142\jre\lib\ext srcDir=D:\java tools\tomcat-5.0.28\work\Catalina\localhost\UseBean include=org/apache/jsp/Usebean_jsp.java 2005-5-6 21:16:47 org.apache.jasper.compiler.Compiler generateClass 严重: Error compiling file: /D:/java tools/tomcat-5.0.28/work/Catalina/localhost/UseBean//org/apache/jsp\Usebean_jsp.java [javac] Compiling 1 source file D:\java tools\tomcat-5.0.28\work\Catalina\localhost\UseBean\org\apache\jsp\Usebean_jsp.java:45: cannot resolve symbol symbol : class BankAccount location: class org.apache.jsp.Usebean_jsp BankAccount BA = null; ^ D:\java tools\tomcat-5.0.28\work\Catalina\localhost\UseBean\org\apache\jsp\Usebean_jsp.java:47: cannot resolve symbol symbol : class BankAccount location: class org.apache.jsp.Usebean_jsp BA = (BankAccount) _jspx_page_context.getAttribute("BA", PageContext.APPLICATION_SCOPE); ^ D:\java tools\tomcat-5.0.28\work\Catalina\localhost\UseBean\org\apache\jsp\Usebean_jsp.java:49: cannot resolve symbol symbol : class BankAccount location: class org.apache.jsp.Usebean_jsp BA = new BankAccount(); ^ 3 errors 源代码没有错误在j2ee sdk中部署是可以运行的,在tomcat下就有错误了,代码中用到了数据库连接,sqlserver2000。 请求JAVA学习方向????? |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
2876 | eclipse+myeclipse3.8.4+tomcat5.0.28的问题,请高手帮帮我 | t1031 | 10794 | 2005-05-06 21:50 |
2059 | 找不到BankAccount | chengbd | 16 | 2005-05-07 11:10 |
2074 | Re:eclipse+myeclipse3.8.4+tomcat5.0.28的问题,请高手帮帮我 | t1031 | 15 | 2005-05-07 16:46 |
2024 | Re:eclipse+myeclipse3.8.4+tomcat5.0.28的问题,请高手帮帮我 | bluebe | 27 | 2005-05-10 22:42 |
1991 | Re:eclipse+myeclipse3.8.4+tomcat5.0.28的问题,请高手帮帮我 | t1031 | 117 | 2005-05-14 14:19 |
2040 | Re:eclipse+myeclipse3.8.4+tomcat5.0.28的问题,请高手帮帮我 | chengbd | 11 | 2005-05-15 02:22 |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |