Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » 3.0.1 failed to build
3.0.1 failed to build [message #770755] Sun, 25 December 2011 08:01 Go to next message
malik  is currently offline malik Friend
Messages: 13
Registered: November 2011
Junior Member
i try to build virgo 3.0.1 (org.eclipse.virgo.kernel.userregion)

and get this error:

java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;I)V

at com.springsource.bundlor.support.asm.AsmTypeArtefactAnalyser.analyse(AsmTypeArtefactAnalyser.java:43)
at com.springsource.bundlor.support.StandardManifestGenerator.analyzeEntry(StandardManifestGenerator.java:116)
at com.springsource.bundlor.support.StandardManifestGenerator.analyzeEntries(StandardManifestGenerator.java:101)
at com.springsource.bundlor.support.StandardManifestGenerator.generate(StandardManifestGenerator.java:66)
at com.springsource.bundlor.ant.internal.AntBundlorExecutor.execute(AntBundlorExecutor.java:73)
at com.springsource.bundlor.ant.Bundlor.execute(Bundlor.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)


i guess there is some version problem..

[Updated on: Sun, 25 December 2011 08:21]

Report message to a moderator

Re: 3.0.1 failed to build [message #770795 is a reply to message #770755] Sun, 25 December 2011 11:03 Go to previous messageGo to next message
karthik elavan is currently offline karthik elavanFriend
Messages: 70
Registered: August 2011
Location: Chennai
Member
Hi,

you have to export java (Packages) to jar file and put it into web project lib folder under WEB-INF then config the meta manifest file.

Then restart your server.

Note : for every change did in java project you must change jar into web project.

Happy coding..
Re: 3.0.1 failed to build [message #770849 is a reply to message #770755] Sun, 25 December 2011 14:55 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo IlievFriend
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

The missing class (or method in this case) is most probably a sign that you already have asm in your class-path.

For Linux based distributions that provide modularized ANT tasks you may need to remove the package that provides asm task, so that Virgo build can use a different version. Example for this approach is Gentoo Linux that provides asm-ant that is older version than the required by Virgo.

If you are using Windows or Mac please check you classpath and remove asm. It is worth checking ANT's directories for older version of ASM tasks as well.
Re: 3.0.1 failed to build [message #770856 is a reply to message #770795] Sun, 25 December 2011 15:20 Go to previous messageGo to next message
malik  is currently offline malik Friend
Messages: 13
Registered: November 2011
Junior Member
this is the problem.
when i try to export this java files (after insert my chenges in the code) to jar it throw this exception.

hear what i do step by step

get virgo kernal ZIP (org.eclipse.virgo.kernel-3.0.1.RELEASE.zip) from:

http://git.eclipse.org/c/virgo/org.eclipse.virgo.kernel.git/


get virgo build ZIP (org.eclipse.virgo.virgo-build-2.18.zip) from:

http://git.eclipse.org/c/virgo/org.eclipse.virgo.virgo-build.git/

and run:
ant clean clean-integration jar


in org.eclipse.virgo.kernel-3.0.1.RELEASE/org.eclipse.virgo.kernel.userregion

and it start build just fine until it's throw this exception.






[Updated on: Sun, 25 December 2011 15:21]

Report message to a moderator

Re: 3.0.1 failed to build [message #771144 is a reply to message #770856] Mon, 26 December 2011 12:59 Go to previous message
malik  is currently offline malik Friend
Messages: 13
Registered: November 2011
Junior Member
thank you
you were right i found 3 asm file in ant\lib and after i remove them it work just fine.
Previous Topic:Console in virgo 3.0.2
Next Topic:Spring/Rest and OSGi HttpService
Goto Forum:
  


Current Time: Wed Nov 26 23:27:50 GMT 2014

Powered by FUDForum. Page generated in 0.02798 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software