tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yoav Shapira" <yo...@apache.org>
Subject Re: [build]fail message
Date Thu, 19 Oct 2006 11:11:25 GMT
Hi,
You have the wrong version of the Eclipse JDT jar on your classpath.

Don't put jars in $ANT_HOME/lib, $JRE_HOME/lib, or similar locations.
(That's true for building nearly anything, not just Tomcat).  The
Tomcat build will download them and put them in its own lib directory
for the build, as specificed in build.properties.

Clean up anything you've added to the above directories, run "ant
download" and then "ant" and you should be all set.

Yoav

On 10/19/06, Sean Qiu <sean.xx.qiu@gmail.com> wrote:
> Hi, everybody.
> I am going to build Tomcat by myself by following the step from
> http://tomcat.apache.org/tomcat-5.5-doc/building.html.
> But unfortunately i failed as the message listed below.
> At first i think maybe i miss the ecj*.jar, but after putting the newest one
> in the $ANT_HOME/lib, it still fails.
> And according the message, the java.lang.NoSuchMethodError, is this problem
> caused by different version of ecj???
>
> Thanks for your help.
>
> =====================
> init:
>
> build-webapps-precompile:
> [jasper2] java.lang.NoSuchMethodError:
> org.eclipse.jdt.internal.compiler.CompilationResult.getProblems
> ()[Lorg/eclipse/jdt/core/compiler/IProblem;
> [jasper2] at org.apache.jasper.compiler.JDTCompiler$2.acceptResult(
> JDTCompiler.java:345)
> [jasper2] at org.eclipse.jdt.internal.compiler.Compiler.compile(
> Compiler.java:417)
> [jasper2] at org.apache.jasper.compiler.JDTCompiler.generateClass(
> JDTCompiler.java:404)
> [jasper2] at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
> [jasper2] at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
> [jasper2] at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
> [jasper2] at org.apache.jasper.JspCompilationContext.compile(
> JspCompilationContext.java:563)
> [jasper2] at org.apache.jasper.servlet.JspServletWrapper.loadTagFile(
> JspServletWrapper.java:210)
> [jasper2] at org.apache.jasper.compiler.TagFileProcessor.loadTagFile(
> TagFileProcessor.java:515)
> [jasper2] at org.apache.jasper.compiler.TagFileProcessor.access$000(
> TagFileProcessor.java:48)
> [jasper2] at
> org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(
> TagFileProcessor.java:566)
> [jasper2] at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java
> :1441)
> [jasper2] at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
> [jasper2] at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java
> :2213)
> [jasper2] at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
> [jasper2] at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
> [jasper2] at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
> [jasper2] at org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(
> TagFileProcessor.java:584)
> [jasper2] at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java
> :178)
> [jasper2] at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
> [jasper2] at org.apache.jasper.JspC.processFile(JspC.java:986)
> [jasper2] at org.apache.jasper.JspC.execute(JspC.java:1135)
> [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> [jasper2] at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> [jasper2] at java.lang.reflect.Method.invoke(Method.java:585)
> [jasper2] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
> [jasper2] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
> :275)
> [jasper2] at org.apache.tools.ant.Task.perform(Task.java:364)
> [jasper2] at org.apache.tools.ant.Target.execute(Target.java:341)
> [jasper2] at org.apache.tools.ant.Target.performTasks(Target.java:369)
> [jasper2] at org.apache.tools.ant.Project.executeSortedTargets(Project.java
> :1216)
> [jasper2] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(
> SingleCheckExecutor.java:37)
> [jasper2] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> [jasper2] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> [jasper2] at org.apache.tools.ant.taskdefs.CallTarget.execute(
> CallTarget.java:107)
> [jasper2] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
> :275)
> [jasper2] at org.apache.tools.ant.Task.perform(Task.java:364)
> [jasper2] at org.apache.tools.ant.Target.execute(Target.java:341)
> [jasper2] at org.apache.tools.ant.Target.performTasks(Target.java:369)
> [jasper2] at org.apache.tools.ant.Project.executeSortedTargets(Project.java
> :1216)
> [jasper2] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(
> SingleCheckExecutor.java:37)
> [jasper2] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> [jasper2] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> [jasper2] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
> :275)
> [jasper2] at org.apache.tools.ant.Task.perform(Task.java:364)
> [jasper2] at org.apache.tools.ant.Target.execute(Target.java:341)
> [jasper2] at org.apache.tools.ant.Target.performTasks(Target.java:369)
> [jasper2] at org.apache.tools.ant.Project.executeSortedTargets(Project.java
> :1216)
> [jasper2] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> [jasper2] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(
> DefaultExecutor.java:40)
> [jasper2] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> [jasper2] at org.apache.tools.ant.Main.runBuild(Main.java:668)
> [jasper2] at org.apache.tools.ant.Main.startAnt(Main.java:187)
> [jasper2] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> [jasper2] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>
> BUILD FAILED
> /home/qbit/harmony/workspace/tomcat2/build.xml:39: The following error
> occurred while executing this line:
> /home/qbit/harmony/workspace/tomcat2/build/build.xml:830: The following
> error occurred while executing this line:
> /home/qbit/harmony/workspace/tomcat2/build/build.xml:446:
> java.lang.NoSuchMethodError:
> org.eclipse.jdt.internal.compiler.CompilationResult.getProblems
> ()[Lorg/eclipse/jdt/core/compiler/IProblem;
>
>
> --
> Sean Qiu
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message