请教各位高手(很急)(有点穷,少给一点分,表示敬意)

yi_huang007 吉林省康宁百润电子商务有限公司 2004-10-13 01:35:54
我的BEAN调试通过,但在TOMCAT下出现的下面的问题,请帮我解决一下,谢谢!
HTTP Status 500 org.apache.jasper.JasperException: Unable to compile class for JSP
我的开发环境是WIN2K+ORACLE+TOMCAT4.1.30.
...全文
83 点赞 收藏 5
写回复
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
yi_huang007 2004-10-14
继续等待
回复
yi_huang007 2004-10-13
谢谢您的解答。所有的配置和文件目录我都检查过了。总是出现这个错误。
回复
fantastic_2005 2004-10-13
问题在这一句话:package firm does not exist;
说明没有找到这个包,你察看一下web-inf/classes下,有没有firm这个文件夹(包),或者工程中包含这个包没有?
回复
yi_huang007 2004-10-13
具体的错误信息是:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 2 in the jsp file: /cjrj/cj/login.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\Tomcat 4.1\work\Standalone\localhost\examples\cjrj\cj\login_jsp.java:7: package firm does not exist
import firm.sjk;
^
C:\Tomcat 4.1\work\Standalone\localhost\examples\cjrj\cj\login_jsp.java:45: package firm does not exist
firm.sjk sjk1 = null;
^



An error occurred at line: 2 in the jsp file: /cjrj/cj/login.jsp

Generated servlet error:
C:\Tomcat 4.1\work\Standalone\localhost\examples\cjrj\cj\login_jsp.java:47: package firm does not exist
sjk1 = (firm.sjk) pageContext.getAttribute("sjk1", PageContext.PAGE_SCOPE);
^



An error occurred at line: 2 in the jsp file: /cjrj/cj/login.jsp

Generated servlet error:
C:\Tomcat 4.1\work\Standalone\localhost\examples\cjrj\cj\login_jsp.java:50: package firm does not exist
sjk1 = (firm.sjk) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "firm.sjk");
^



An error occurred at line: 2 in the jsp file: /cjrj/cj/login.jsp

Generated servlet error:
Note: C:\Tomcat 4.1\work\Standalone\localhost\examples\cjrj\cj\login_jsp.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
4 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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:492)
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.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)



--------------------------------------------------------------------------------
回复
fantastic_2005 2004-10-13
提示太少,看不出来问题,代码贴出来
回复
发动态
发帖子
Web 开发
创建于2007-09-28

7.9w+

社区成员

Java Web 开发
申请成为版主
社区公告
暂无公告