Grails 2.0.2 run-app loader constraint violation

157 views
Skip to first unread message

Chris

unread,
Apr 1, 2012, 12:21:45 PM4/1/12
to DFW Groovy Grails Users Group
Hi,
I downloaded Grails 2.0.2 onto MAC (Lion). I did grails create-app
someapp, and this works ok. I cd to someapp and try to run using
grails run-app, but if fails with this:

| Downloading: plugins-list.xml.
| Error Error executing script RunApp: loader constraint violation:
loader (instance of <bootloader>) previously initiated loading for a
different type with name "org/w3c/dom/NamedNodeMap" (Use --stacktrace
to see the full trace)

If you have seen this or have a suggestion, please let me know.

Thanks.
Chris

Sunny Thandassery

unread,
Apr 3, 2012, 1:50:35 PM4/3/12
to dfw...@googlegroups.com
I can't speak for Grails 2.x, but generally speaking this error is either caused by dependency conflicts (esp plugins that bring in a bunch of jars), or due to stale ivy caches.

"grails clean" helps, but I've often had to remove the directories manually. Check this thread for some good pointers:

http://stackoverflow.com/questions/6097279/java-lang-linkageerror-loader-constraint-violation-in-grails-project
--
Sunny Thandassery

Billing and payment solutions for recurring and transactional revenue models 

2650 Valley View Ln, Bldg 1 Suite 200, Dallas, TX 75234

Steve Good

unread,
Apr 3, 2012, 12:31:37 PM4/3/12
to dfw...@googlegroups.com
You might consider updating to 2.0.3 to see if that fixes the problem.
I had a number of problems when running 2.0.2 that were fixed by
2.0.3.

__
Steve Good

Reply all
Reply to author
Forward
0 new messages