ClassNotFoundException and GPars 0.11 (Grails Integration)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ClassNotFoundException and GPars 0.11 (Grails Integration)

dixtort
This post has NOT been accepted by the mailing list yet.
Hello.  As an FYI I also posted this in the Grails mailing list as I am pretty sure it is a Grails issue (or possibly just a user issue).  I am having difficulties using any of the new classes in the latest stable release of GPars.  No matter what I try, or what the logs say, I can only access classes in the 0.9 release that is packaged with Grails 1.3.7.  I've attempted a couple changes such as excluding GPars from the global inherit and changing the dependency scope without any success.  Does anyone have any points of where to go from here?

I've attached my BuildConfig.groovy and two test Controllers to https://gist.github.com/938650.  The first test controller works while the second one fails with the error below.  This was done with a fresh app I just created on the command line.

2011-04-23 10:24:34,083 [http-8080-1] ERROR errors.GrailsExceptionResolver  - Exception occurred when processing request: [GET] /my-project/test/index
Stacktrace follows:
java.lang.ClassNotFoundException: groovyx.gpars.actor.DefaultActor
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
        at java.lang.Class.getDeclaredMethods(Class.java:1791)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
        at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
        at my.project.TestController$_closure1.doCall(TestController.groovy:9)
        at my.project.TestController$_closure1.doCall(TestController.groovy)
        at java.lang.Thread.run(Thread.java:662)


Here are the relevant portions of the verbose output from run-app:


== resolving dependencies org.grails.internal#my-project;0.1->org.codehaus.gpars#gpars;0.9 [build->default]

...

== resolving dependencies org.grails.internal#my-project;0.1->org.codehaus.gpars#gpars;0.11 [build->default]
default: Checking cache for: dependency: org.codehaus.gpars#gpars;0.11 {build=[default]}
default: module revision found in cache: org.codehaus.gpars#gpars;0.11
        found org.codehaus.gpars#gpars;0.11 in default
== resolving dependencies org.grails.internal#my-project;0.1->org.codehaus.gpars#gpars;0.11 [build->runtime]
== resolving dependencies org.grails.internal#my-project;0.1->org.codehaus.gpars#gpars;0.11 [build->compile]
== resolving dependencies org.codehaus.gpars#gpars;0.11->org.coconut.forkjoin#jsr166y;070108 [compile->master(*)]
default: Checking cache for: dependency: org.coconut.forkjoin#jsr166y;070108 {compile=[compile(*), master(*)], runtime=[runtime(*)]}
default: module revision found in cache: org.coconut.forkjoin#jsr166y;070108
        found org.coconut.forkjoin#jsr166y;070108 in default
== resolving dependencies org.codehaus.gpars#gpars;0.11->org.coconut.forkjoin#jsr166y;070108 [compile->compile(*)]
== resolving dependencies org.codehaus.gpars#gpars;0.11->org.coconut.forkjoin#jsr166y;070108 [runtime->runtime(*)]
== resolving dependencies org.grails.internal#my-project;0.1->org.codehaus.gpars#gpars;0.11 [build->master]
        resolved ivy file produced in /home/dixtort/.ivy2/cache/resolved-org.grails.internal-my-project-0.1.xml

...

:: resolution report :: resolve 672ms :: artifacts dl 35ms
        :: evicted modules:
        org.codehaus.gpars#gpars;0.9 by [org.codehaus.gpars#gpars;0.11] in [build]
          in org.grails.internal#my-project;0.1 with latest-revision