Why is the Grails Quartz plugin failing?
After making a few changes to my already-deployed Grails app, I attempted to recompile the WAR file, and started receiving this error (obviously shorted a bit):
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'pluginManager' defined in ServeletContext resource
[/W开发者_Python百科EB-INF/applicationContext.xml]: Invocation of init method failed;
nested exception is java.lang.NoClassDefFoundError: Lorg/quartz/Scheduler;
...
Caused by: java.lang.NoClassDefFoundError: Lorg/quartz/Scheduler;
...
Caused by: java.lang.ClassNotFoundException: org.quartz.Scheduler
I haven't had any problems with Quartz before this with this app. grails clean
and deleting every part of my cache (including the .ivy2
folder) hasn't helped. Googling hasn't returned anything useful. Help?
Ugh. I finally figured out the cause of the problem. My app is using the Grails Webflow plugin, which is not included by default with 1.3.3 and higher. So, I had to find it from other sources. Namely, other Maven repositories.
Even though I only needed the Webflow plugin, each time I would download all of the resources, I would pull in an extremely large amount. I can only assume that the jar were overwriting the jars I already had in place. After some digging, I was able to find the repository that was causing the problems, and deleted it from my BuildConfig.groovy file.
Now that's a headache.
精彩评论