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

再发一贴tomcat报错,希望帮忙看看解决思路

2012-02-27 
再发一贴tomcat报错,希望帮忙看看JavacexceptionCompilefailedseethecompilererroroutputfordetails.ator

再发一贴tomcat报错,希望帮忙看看
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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at   org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
at   org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
at   org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
at   com.publish.jxc.charpter9.Utility.forwardToSpecialPage(Utility.java:130)
at   com.publish.jxc.charpter9.FlowControlServlet.doPost(FlowControlServlet.java:63)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at   com.publish.jxc.charpter9.FlowControlServlet.service(FlowControlServlet.java:78)
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(Unknown   Source)
2007-5-7   19:14:30   org.apache.jasper.compiler.Compiler   generateClass
严重:   Env:   Compile:   javaFileName=/D:/work/charpter   9/work//org/apache/jsp/pages\sellnews_jsp.java
        classpath=/D:/work/charpter   9/charpter9/WEB-INF/classes/;/D:/work/charpter   9/charpter9/WEB-INF/lib/dom.jar;/D:/work/charpter   9/charpter9/WEB-INF/lib/jaxp.jar;/D:/work/charpter   9/charpter9/WEB-INF/lib/sax.jar;/D:/work/charpter   9/charpter9/WEB-INF/lib/xalan.jar;D:\work\charpter   9\work;/D:/work/charpter   9/charpter9/WEB-INF/classes/;/D:/work/charpter   9/charpter9/WEB-INF/lib/dom.jar;/D:/work/charpter   9/charpter9/WEB-INF/lib/jaxp.jar;/D:/work/charpter   9/charpter9/WEB-INF/lib/sax.jar;/D:/work/charpter   9/charpter9/WEB-INF/lib/xalan.jar;D:/java/Tomcat   5.0/shared/classes/;D:/java/Tomcat   5.0/common/classes/;D:/java/Tomcat   5.0/common/lib/naming-factory.jar;D:/java/Tomcat   5.0/common/lib/jasper-runtime.jar;D:/java/Tomcat   5.0/common/lib/commons-collections-3.1.jar;D:/java/Tomcat   5.0/common/lib/jasper-compiler.jar;D:/java/Tomcat   5.0/common/lib/commons-dbcp-1.2.1.jar;D:/java/Tomcat   5.0/common/lib/ant-launcher.jar;D:/java/Tomcat   5.0/common/lib/ant.jar;D:/java/Tomcat   5.0/common/lib/naming-java.jar;D:/java/Tomcat   5.0/common/lib/commons-pool-1.2.jar;D:/java/Tomcat   5.0/common/lib/naming-resources.jar;D:/java/Tomcat   5.0/common/lib/jsp-api.jar;D:/java/Tomcat   5.0/common/lib/commons-el.jar;D:/java/Tomcat   5.0/common/lib/servlet-api.jar;D:/java/Tomcat   5.0/common/lib/naming-common.jar;D:/java/Tomcat   5.0/common/lib/tools.jar;/D:/java/Tomcat%205.0/bin/bootstrap.jar;/D:/java/jre1.5.0_06/lib/ext/dnsns.jar;/D:/java/jre1.5.0_06/lib/ext/localedata.jar;/D:/java/jre1.5.0_06/lib/ext/sunjce_provider.jar;/D:/java/jre1.5.0_06/lib/ext/sunpkcs11.jar;/D:/java/jre1.5.0_06/lib/ext/jbcl/
        cp=D:\java\Tomcat   5.0\bin\bootstrap.jar
        cp=D:\work\charpter   9\charpter9\WEB-INF\classes
        cp=D:\work\charpter   9\charpter9\WEB-INF\lib\dom.jar
        cp=D:\work\charpter   9\charpter9\WEB-INF\lib\jaxp.jar
        cp=D:\work\charpter   9\charpter9\WEB-INF\lib\sax.jar
        cp=D:\work\charpter   9\charpter9\WEB-INF\lib\xalan.jar
        cp=D:\work\charpter   9\work
        cp=D:\work\charpter   9\charpter9\WEB-INF\classes
        cp=D:\work\charpter   9\charpter9\WEB-INF\lib\dom.jar
        cp=D:\work\charpter   9\charpter9\WEB-INF\lib\jaxp.jar
        cp=D:\work\charpter   9\charpter9\WEB-INF\lib\sax.jar
        cp=D:\work\charpter   9\charpter9\WEB-INF\lib\xalan.jar
        cp=D:\java\Tomcat   5.0\shared\classes
        cp=D:\java\Tomcat   5.0\common\classes
        cp=D:\java\Tomcat   5.0\common\lib\naming-factory.jar
        cp=D:\java\Tomcat   5.0\common\lib\jasper-runtime.jar
        cp=D:\java\Tomcat   5.0\common\lib\commons-collections-3.1.jar


        cp=D:\java\Tomcat   5.0\common\lib\jasper-compiler.jar
        cp=D:\java\Tomcat   5.0\common\lib\commons-dbcp-1.2.1.jar
        cp=D:\java\Tomcat   5.0\common\lib\ant-launcher.jar
        cp=D:\java\Tomcat   5.0\common\lib\ant.jar
        cp=D:\java\Tomcat   5.0\common\lib\naming-java.jar
        cp=D:\java\Tomcat   5.0\common\lib\commons-pool-1.2.jar
        cp=D:\java\Tomcat   5.0\common\lib\naming-resources.jar
        cp=D:\java\Tomcat   5.0\common\lib\jsp-api.jar
        cp=D:\java\Tomcat   5.0\common\lib\commons-el.jar
        cp=D:\java\Tomcat   5.0\common\lib\servlet-api.jar
        cp=D:\java\Tomcat   5.0\common\lib\naming-common.jar
        cp=D:\java\Tomcat   5.0\common\lib\tools.jar
        cp=D:\java\Tomcat%205.0\bin\bootstrap.jar
        cp=D:\java\jre1.5.0_06\lib\ext\dnsns.jar
        cp=D:\java\jre1.5.0_06\lib\ext\localedata.jar
        cp=D:\java\jre1.5.0_06\lib\ext\sunjce_provider.jar
        cp=D:\java\jre1.5.0_06\lib\ext\sunpkcs11.jar
        cp=D:\java\jre1.5.0_06\lib\ext\jbcl
        work   dir=D:\work\charpter   9\work
        extension   dir=D:\java\jre1.5.0_06\lib\ext
        srcDir=D:\work\charpter   9\work
        include=org/apache/jsp/pages/sellnews_jsp.java
前面的问题已经解决了是XML文档中action   名字错误,但是修改了后又出现新的错误了。希望有人能帮忙看下,给点意见
下面的也是错误:

[解决办法]
安装好Tomcat 5.0后,测试能通过,不能正常运行Jsp程序,报错是
type :Status report
message: /myjsp/firstjsp.jsp
description: The requested resource (/myjsp/firstjsp.jsp) is not available.
(myjsp/firstjsp.jsp)是测试文件.
请问是错在哪个地方?


[解决办法]
我也遇到这种错误了。在网上查的结果是:
"try " 不带有 "catch " 或 "finally " 
是因为JSP文件中有全角的空格。
但是其他的错误就不清楚了。很郁闷。

热点排行