简体   繁体   English

java.lang.NoSuchMethodError:java.lang.NoSuchMethodError

[英]java.lang.NoSuchMethodError: java.lang.NoSuchMethodError

Running Tomcat 7 through eclipse The error reported is:运行 Tomcat 7 到 eclipse 报告的错误是:

javax.servlet.ServletException: java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/eclipse/jdt/core/compiler/IProblem;
at org.apache.jasper.compiler.JDTCompiler$2.acceptResult(JDTCompiler.java:341)

I have tried both jasper-jdt-6.0.13.jar and tomcat-6.0.16-jasper-jdt.jar and both report the same error.我已经尝试了 jasper-jdt-6.0.13.jar 和 tomcat-6.0.16-jasper-jdt.jar 并且都报告了相同的错误。 In a way I shouldn't be surprised because I ran:在某种程度上,我不应该感到惊讶,因为我跑了:

jar tf tomcat-6.0.16-jasper-jdt.jar

and it doesn't have the class org.eclipse.jdt.internal.compiler.CompilationResult in it.并且它没有 class org.eclipse.jdt.internal.compiler.CompilationResult。 But this sitehttp://www.java2s.com/Code/Jar/STUVWXYZ/Downloadtomcat6016jasperjdtjar.htm says it does!!但是这个网站http://www.java2s.com/Code/Jar/STUVWXYZ/Downloadtomcat6016jasperjdtjar.htm说它确实!
Can someone tell me what the correct jar file is and where to get it from?谁能告诉我正确的 jar 文件是什么以及从哪里得到它? It seems to be a recurring theme.这似乎是一个反复出现的主题。 http://www.findjar.com lists a number of jars that purport to have this class - but do not. http://www.findjar.com列出了一些 jars 声称有这个 ZA2F2ED4F8EBC2CAB1DZC2 但没有。

OK, Found it in jasper-compiler-jdt-5.5.23.jar好的,在 jasper-compiler-jdt-5.5.23.jar 中找到它

Found it in jasper-compiler-jdt-5.5.23.jar在 jasper-compiler-jdt-5.5.23.jar 中找到它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM