`

Tomcat5.0出现:Error starting modern compiler

阅读更多
在使用Myeclipse与tomcat5.0集成中出现:异常如下:
信息: Server startup in 5282 ms
2009-8-19 16:07:22 org.apache.jasper.compiler.Compiler generateClass
严重: Javac exception 
Error starting modern compiler
	at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:69)
	at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
	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(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:61)
	... 35 more
Caused by: java.lang.NoClassDefFoundError: javax/tools/StandardJavaFileManager
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$100(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:485)
	at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:820)
	at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	at com.sun.tools.javac.main.Main.compile(Main.java:269)
	at com.sun.tools.javac.Main.compile(Main.java:69)
	... 40 more
--- Nested Exception ---
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:61)
	at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
	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$Con



建议修该办法:在Myeclipse集成的Service服务器Tomcat5.X中把JDK指向自己安排的JDK
就可以了!
分享到:
评论

相关推荐

    现代编译原理:c语言描述 Modern Compiler Implementation in C

    Andrew W. Appel__Modern Compiler Implementation in C 英文版 现代编译原理:c语言描述

    linux下 Error running javac compiler

    如果一切正常,部署应该能够顺利完成,不再出现“Error running javac compiler”的错误。 #### 总结 本文详细介绍了在 Linux 系统中解决“Error running javac compiler”错误的具体步骤,包括配置 Apache Ant ...

    Error:java: Compilation failed: internal java compiler error

    在使用IntelliJ IDEA(简称Idea)进行Java开发时,有时会遇到“Error:java: Compilation failed: internal java compiler error”的错误提示,这通常意味着编译过程中遇到了内部错误,可能是由于配置问题、环境问题...

    gcc-4.9.4安装包

    在编译安装软件的时候,发现错误configure: error: *** A compiler with support for C++11 language features is required. 要支持C++11,必须升级到gcc4.7以上。

    (虎書)Modern Compiler Implementation in ML

    《现代编译原理》全面讲述了现代编译器的结构、编译算法和实现方法,是Andrew w.Apple的“虎书”——Modern Compiler Implementation——“红、蓝、绿”三序列之一。这三本书的内容基本相同。但是使用不同的语言来...

    Modern Compiler Implementation in C

    《Modern Compiler Implementation in C》是一本由Andrew W. Appel和Maia Ginsburg合著的关于编译器实现的书籍。本书首次出版于1998年,是由剑桥大学出版社出版的。本书详细介绍了使用C语言实现现代编译器的基础技术...

    compiler-gcc5.h

    当编译内核时遇到“fatal error: linux/compiler-gcc5.h: No such file”错误,这表明系统无法找到对应的编译器头文件,这可能是由于以下几个原因: 1. **源代码缺失**:确保你已经下载了完整的Linux内核源代码树。...

    gcc_4.9.4_gcc+gmp+mpfr+mpc.tar.gz

    编译安装软件的时候,发现错误configure: error: *** A compiler with support for C++11 language features is required. 原来是gcc版本太低了,我的版本是gcc version 4.6.3 想要支持C++11,必须升级到gcc4.8...

    Modern Compiler Implementation in Java ed2

    Modern Compiler Implementation in Java, Second Edition

    【虎书】 Modern Compiler Implementation in C(C版)

    《Modern Compiler Implementation in C》是编译器设计领域的一本经典教材,被广大读者亲切地称为“虎书”。这本书深入浅出地介绍了编译器的基本概念、设计方法和实现技术,是学习和研究编译器不可或缺的参考资料。...

    IntelliJ IDEA报错Error:java: Compilation failed: internal java compiler error的解决办法

    在使用IntelliJ IDEA开发Java项目时,可能会遇到一个令人头疼的错误:“Error:java: Compilation failed: internal java compiler error”。这个错误通常意味着IDE在尝试编译代码时遇到了内部问题,可能是由于配置不...

    Modern Compiler Implementation in C(虎书)

    三大编译原理书:Modern Compiler Implementation in C——虎书——英文版

    Modern Compiler Implementation in Java -- 编译之虎书 第二版 part2

    Modern Compiler Implementation in Java, Second Edition by Andrew W. Appel and Jens Palsberg ISBN:052182060x Cambridge University Press © 2002 (501 pages)

    Modern Compiler Implementation in Java, 2nd Edition

    《Modern Compiler Implementation in Java, 2nd Edition》是一本关于编译器设计与实现的教材,旨在向读者全面介绍编译器的各个阶段,包括词法分析、语法分析、抽象语法树、语义动作、中间表示、指令选择、数据流...

Global site tag (gtag.js) - Google Analytics