OK. I found the problem. I once used HTTP-Builder which comes with a asm-2.2.3.jar. Grails does not clear its stage directory. So this lib remained in the stage directory even after I removed http-builder and conflicted with asm 3 that is required by DataNucleus. Manually deleting the stage directory solved the problem.
Regards, Chris On 20 Sep., 18:24, naeger <[email protected]> wrote: > Hi all, > > I tried to follow the the instructions and screencast > onhttp://grails.org/plugin/app-engine. However, I seem to have a problem > with the DataNucleus Enhancer that I cannot resolve: > > An error occured for ClassEnhancer "ASM" when trying to call the > method "org.datanucleus.enhancer.asm.ASMClassEnhancer" on class "get > ClassNameForFileName" : org.objectweb.asm.ClassReader.accept(Lorg/ > objectweb/asm/ClassVisitor;I)V > [enhance] java.lang.NoSuchMethodError: > org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;I) > V > > I just followed the instructions on the above page and chose jpa > (although the error message below mentions JDO???), I did not do > anything with ASM. Any ideas what's going wrong? > > Thanks, Chris > > $ grails app-engine run > Welcome to Grails 1.1.1 -http://grails.org/ > Licensed under Apache Standard License 2.0 > Grails home is set to: c:/Programme/Java/grails-1.1.1 > > Base Directory: C:\dev\mbserver > Running script C:\Dokumente und Einstellungen\Naeger.XENIUM\.grails > \1.1.1\projects\mbserver\plugins\app-engine-0.8.5\scripts > \AppEngine.groovy > Environment set to development > Warning, target causing name overwriting of name startLogging > Warning, target causing name overwriting of name cleanUpAfterWar > [copy] Copied 1 empty directory to 1 empty directory under C: > \Dokumente und Einstellungen\Naeger.XENIUM\.grails\1.1.1\projects > \mbserver\resources > [mkdir] Created dir: C:\dev\mbserver\web-app\plugins\class- > diagram-0.3 > [copy] Copying 44 files to C:\dev\mbserver\web-app\plugins\class- > diagram-0.3 > [mkdir] Created dir: C:\Dokumente und Einstellungen\Naeger.XENIUM > \.grails\1.1.1\projects\mbserver\classes > [groovyc] Compiling 18 source files to C:\Dokumente und Einstellungen > \Naeger.XENIUM\.grails\1.1.1\projects\mbserver\classes > [groovyc] Compiling 27 source files to C:\Dokumente und Einstellungen > \Naeger.XENIUM\.grails\1.1.1\projects\mbserver\classes > [mkdir] Created dir: C:\Dokumente und Einstellungen\Naeger.XENIUM > \.grails\1.1.1\projects\mbserver\resources\grails-app\i18n > [native2ascii] Converting 11 files from C:\dev\mbserver\grails-app > \i18n to C:\Dokumente und Einstellungen\Naeger.XENIUM\.grails > \1.1.1\projects\mbserver\resource > s\grails-app\i18n > [copy] Copying 1 file to C:\Dokumente und Einstellungen > \Naeger.XENIUM\.grails\1.1.1\projects\mbserver\classes > [copy] Copying 2 files to C:\Dokumente und Einstellungen > \Naeger.XENIUM\.grails\1.1.1\projects\mbserver\resources > [copy] Copied 2 empty directories to 2 empty directories under C: > \Dokumente und Einstellungen\Naeger.XENIUM\.grails\1.1.1\projects > \mbserver\resources > [copy] Copied 3 empty directories to 1 empty directory under C: > \Dokumente und Einstellungen\Naeger.XENIUM\.grails\1.1.1\projects > \mbserver\resources > [copy] Copying 1 file to C:\Dokumente und Einstellungen > \Naeger.XENIUM\.grails\1.1.1\projects\mbserver > [copy] Copying 77 files to C:\Dokumente und Einstellungen > \Naeger.XENIUM\.grails\1.1.1\projects\mbserver\stage > [copy] Copying 47 files to C:\Dokumente und Einstellungen > \Naeger.XENIUM\.grails\1.1.1\projects\mbserver\stage\WEB-INF\grails- > app > [copy] Copying 269 files to C:\Dokumente und Einstellungen > \Naeger.XENIUM\.grails\1.1.1\projects\mbserver\stage\WEB-INF\classes > [copy] Copying 5 files to C:\Dokumente und Einstellungen > \Naeger.XENIUM\.grails\1.1.1\projects\mbserver\stage\WEB-INF\templates > \scaffolding > [copy] Copying 1 file to C:\Dokumente und Einstellungen > \Naeger.XENIUM\.grails\1.1.1\projects\mbserver\stage\WEB-INF > [delete] Deleting: C:\Dokumente und Einstellungen\Naeger.XENIUM > \.grails\1.1.1\projects\mbserver\resources\web.xml > [propertyfile] Updating property file: C:\Dokumente und Einstellungen > \Naeger.XENIUM\.grails\1.1.1\projects\mbserver\stage\WEB-INF\classes > \application.properties > > Generating appengine-web.xml file for application [mobilebutler- > server] > Packaging AppEngine jar files > Configuring JDO for AppEngine > Enhancing JDO classes > [enhance] DataNucleus Enhancer (version 1.1.4) : Enhancement of > classes > [enhance] 20.09.2009 17:54:47 > org.datanucleus.enhancer.DataNucleusEnhancer addMessage > [enhance] SCHWERWIEGEND: An error occured for ClassEnhancer "ASM" > when trying to call the method > "org.datanucleus.enhancer.asm.ASMClassEnhancer" on class "get > ClassNameForFileName" : org.objectweb.asm.ClassReader.accept(Lorg/ > objectweb/asm/ClassVisitor;I)V > [enhance] java.lang.NoSuchMethodError: > org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;I) > V > [enhance] at > org.datanucleus.enhancer.asm.ASMClassEnhancer.getClassNameForFileName > (ASMClassEnhancer.java:155) > [enhance] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [enhance] at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > [enhance] at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---
