Announcement Announcement Module
Collapse
No announcement yet.
grails run-app doesn't work Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • grails run-app doesn't work

    Hi there?

    I am trying to start a sample test app using 'grails run-app' and i ran into below error.

    C:\Soft\WORK\quotd>grails -Dserver.port=8088 run-app
    Welcome to Grails 1.3.7 - http://grails.org/
    Licensed under Apache Standard License 2.0
    Grails home is set to: C:\grails-1.3.7

    Base Directory: C:\Soft\WORK\quotd
    Resolving dependencies...
    Dependencies resolved in 1172ms.
    Running script C:\grails-1.3.7\scripts\RunApp.groovy
    Environment set to development
    [groovyc] Compiling 1 source file to C:\Soft\WORK\quotd\target\classes
    [delete] Deleting directory C:\Documents and Settings\sg0214233\.grails\1.3.7
    \projects\quotd\tomcat
    Running Grails application..
    2011-06-13 15:36:13,661 [main] ERROR context.GrailsContextLoader - Error execut
    ing bootstraps: java.lang.LinkageError: Class org/w3c/dom/NamedNodeMap violates
    loader constraints
    org.codehaus.groovy.runtime.InvokerInvocationExcep tion: java.lang.LinkageError:
    Class org/w3c/dom/NamedNodeMap violates loader constraints

    at grails.spring.BeanBuilder.invokeBeanDefiningClosur e(BeanBuilder.java:
    723)
    at grails.spring.BeanBuilder.beans(BeanBuilder.java:5 73)
    at grails.spring.BeanBuilder.invokeMethod(BeanBuilder .java:519)
    at org.grails.tomcat.TomcatServer.start(TomcatServer. groovy:212)
    at grails.web.container.EmbeddableServer$start.call(U nknown Source)
    at _GrailsRun_groovy$_run_closure5_closure12.doCall(_ GrailsRun_groovy:15
    8)
    at _GrailsRun_groovy$_run_closure5_closure12.doCall(_ GrailsRun_groovy)
    at _GrailsSettings_groovy$_run_closure10.doCall(_Grai lsSettings_groovy:2
    80)
    at _GrailsSettings_groovy$_run_closure10.call(_Grails Settings_groovy)
    at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_ groovy:149)
    at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_gr oovy)
    at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
    at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groo vy)
    at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_ groovy:59)
    at RunApp$_run_closure1.doCall(RunApp.groovy:33)
    at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:38 1)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:41 5)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
    at gant.Gant.withBuildListeners(Gant.groovy:427)
    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
    at gant.Gant$this$2$withBuildListeners.callCurrent(Un known Source)
    at gant.Gant.dispatch(Gant.groovy:415)
    at gant.Gant.this$2$dispatch(Gant.groovy)
    at gant.Gant.invokeMethod(Gant.groovy)
    at gant.Gant.executeTargets(Gant.groovy:590)
    at gant.Gant.executeTargets(Gant.groovy:589)
    Caused by: java.lang.LinkageError: Class org/w3c/dom/NamedNodeMap violates loade
    r constraints

    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.ja va:2365)
    at java.lang.Class.getDeclaredMethods(Class.java:1763 )
    at java.security.AccessController.doPrivileged(Native Method)
    at org.codehaus.groovy.util.LazyReference.getLocked(L azyReference.java:4
    6)
    at org.codehaus.groovy.util.LazyReference.get(LazyRef erence.java:33)
    at grails.spring.DynamicElementReader.invokeMethod(Dy namicElementReader.
    groovy:121)
    ... 26 more

    Pls share ur findings..

    Thanks!

  • #2
    This is a problem with one of your dependencies. Run
    Code:
    grails dependency-report
    and then open the file 'target/dependency-report/org.grails.internal-<something>-compile.html', where the <something> comes from the application name. The report has 4 tabs, so search on each of them for 'xml-apis' or 'xmlParser'. Once you have identified which dependency is including this XML library, exclude it.

    Let me know if you need any more info.

    Comment

    Working...
    X