Error Fatal Error During Compilation Org.apache.tools.ant.buildexception
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Compile error trying to use Grails' Quartz plugin up vote 0 down vote favorite I am trying to install and use Grails' Quartz plugin. My grails' version is 2.3.7 I added compile ":quartz:1.0.1" to my Build.config; and downloaded quartz-2.2.1.jar and quartz-jobs-2.2.1.jar; and then added these .jar files to my /lib folder. When I try grails run-app, the following error appears: Compile error during compilation with javac. C:\Users\username\Documents\NetBeansProjects\Siscoserv-web\target\work\plugins\quartz-1.0-RC11\src\java\grails\plugins\quartz\CustomTriggerFactoryBean.java:51: error: inconvertible types if(customTrigger instanceof AbstractTrigger){ ^ required: AbstractTrigger found: Trigger C:\Users\username\Documents\NetBeansProjects\Siscoserv-web\target\work\plugins\quartz-1.0-RC11\src\java\grails\plugins\quartz\CustomTriggerFactoryBean.java:52: error: inconvertible types AbstractTrigger at =(AbstractTrigger) customTrigger; ^ required: AbstractTrigger found: Trigger C:\Users\username\Documents\NetBeansProjects\Siscoserv-web\target\work\plugins\quartz-1.0-RC11\src\java\grails\plugins\quartz\CustomTriggerFactoryBean.java:56: error: no suitable method found for setJobKey(Key) at.setJobKey(jobDetail.getKey()); ^ method AbstractTrigger.setJobKey(JobKey) is not applicable (actual argument Key cannot be converted to JobKey by method
Sign in Pricing Blog Support Search GitHub This repository Watch 33 Star 157 Fork 91 alvarosanchez/grails-spring-security-rest Code Issues 15 Pull requests 0 Projects 0 Pulse Graphs New issue Compilation error with Grails 2.2.x #46 Closed BGordts opened this Issue Mar 8, 2014 · 10 comments Projects None yet Labels bug implemented Milestone 1.4.0.M1 Assignees alvarosanchez 7 participants BGordts commented Mar 8, 2014 Can't compile this plugin. http://stackoverflow.com/questions/22481702/compile-error-trying-to-use-grails-quartz-plugin First had the other pac4j problem (#14), but now I get this error: | Compiling 212 source files. | Error Fatal error during compilation org.apache.tools.ant.BuildException: java .lang.NoClassDefFoundError: org/pac4j/core/client/BaseClient (Use --stacktrace t o see the full trace) Using grails 2.2.3. Tried cleaning .grails folder. Started with empty project. Adding compile 'org.pac4j:pac4j-core:1.5.0-SNAPSHOT' in the buildconfig https://github.com/alvarosanchez/grails-spring-security-rest/issues/46 dependency block resolves the problem. Owner alvarosanchez commented Mar 18, 2014 Which version of the plugin are you using? Can I see BuildConfig.groovy? alvarosanchez self-assigned this Mar 18, 2014 alvarosanchez added the question label Mar 18, 2014 hgarfer commented Mar 19, 2014 same problem here, thanks for your solution @BGordts @alvarosanchez, here is my BuildConfig, I am using Grails 2.2.5 repositories { inherits true // Whether to inherit repository definitions from plugins grailsPlugins() grailsHome() grailsCentral() mavenLocal() mavenCentral() mavenRepo "http://repo.spring.io/milestone/" mavenRepo "https://oss.sonatype.org/content/repositories/snapshots" } dependencies { // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g. runtime 'mysql:mysql-connector-java:5.1.22' } plugins { runtime ":hibernate:$grailsVersion" runtime ":database-migration:1.3.8" runtime ":jquery:1.8.3" runtime ":resources:1.2.6" compile ':lesscss-resources:1.3.0.3' compile ':cache:1.1.1' compile ':kickstart-with-bootstrap:0.8.9' // Uncomment these (or add new ones) to enable additional resources capabilities //runtime ":zipped-resources:1.0" //runtime ":cached-resources:1.0" //runtime ":yui-minify-resources:0.1.5" compile ":spring-security-core:2.0-RC2" compile ":spring-security-rest:1.3.1", { excludes: 'spring-security-core' } build ":tomcat:$grailsVersion" compile ":gson:1.1.4" } } mugdho commented Mar 20, 2014 I added pac4j-c
♦ Locked 3 messages deadman Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as http://grails.1312388.n4.nabble.com/Error-Fatal-error-during-compilation-org-apache-tools-ant-BuildException-td4629152.html Inappropriate ♦ ♦ Error Fatal error during compilation org.apache.tools.ant.BuildException: This http://forum.spring.io/forum/spring-projects/springsource-tool-suite/743611-grails-dependencies-uninitialized-when-upgrading-to-2-3-5 post was updated on . Hi, Suddenly, my intellij idea shows this error while compiling my project. does anyone know about it? Error Fatal error during compilation org.apache.tools.ant.BuildException: java.lang.NoSuchMethodError: org.apache.commons.collections.CollectionUtils.exists(Ljava/util/Collection;Lorg/apache/commons/collections/Predicate;)Z (Use --stacktrace to see the full trace) Antoine Roux Reply error fatal | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Error Fatal error during compilation org.apache.tools.ant.BuildException: There are several possible explanations that come to my mind:Check whether the class CollectionUtils exists on your classpath and has the given method (with exactly the error fatal error same argument).Check that you don't have two different versions of this JAR on your classpath, or that the version is correct if you have a single one. Check that the JAR is included at compile time, and not at runtime.Antoine On Tue, May 29, 2012 at 7:08 PM, deadman <[hidden email]> wrote: Hi, Suddenly, my intellij idea shows this error while compiling my project. Can anyone know about it? Error Fatal error during compilation org.apache.tools.ant.BuildException: java.lang.NoSuchMethodError: org.apache.commons.collections.CollectionUtils.exists(Ljava/util/Collection;Lorg/apache/commons/collections/Predicate;)Z (Use --stacktrace to see the full trace) -- View this message in context: http://grails.1312388.n4.nabble.com/Error-Fatal-error-during-compilation-org-apache-tools-ant-BuildException-tp4629152.html Sent from the Grails - user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email deadman Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Error Fatal error during compilation org.apache.tools.ant.BuildException: Thanks alot for your reply. After removing commons-collections-2.1.1-1.0 from my lib folder.
the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor. Announcement Announcement Module Collapse No announcement yet. Grails Dependencies uninitialized when upgrading to 2.3.5 Page Title Module Move Remove Collapse X Conversation Detail Module Collapse Posts Latest Activity Search Forums Page of 1 Filter Time All Time Today Last Week Last Month Show All Discussions only Photos only Videos only Links only Polls only Filtered by: Clear All new posts lili5058 Junior Member Join Date: Apr 2006 Posts: 31 #1 Grails Dependencies uninitialized when upgrading to 2.3.5 Jan 18th, 2014, 04:25 PM I want to upgrade a Grails 2.2.3 app to version 2.3.5. I am using STS 3.5.0 with Grails plugin. I downloaded Grails 2.3.5 from the Grails site and told STS where it was by going to Preferences -> Groovy -> Grails and pointing to the root directory of the installation When I 'Refresh Dependencies' on the project (Right-click on project, Grails Tools -> Refresh Dependencies), I get this in the console: Loading Grails 2.3.5 |Configuring classpath |Environment set to development .......... |Compiling 172 source files .Error | Fatal error during compilation org.apache.tools.ant.BuildException: java.lang.NoClassDefFoundError: org/hibernate/event/internal/DefaultFlushEventListener (Use --stacktrace to see the full trace) Error | org.codehaus.groovy.grails.cli.ScriptExitException .... In the Project Explorer I can see that the Grails Dependencies are uninitialized, but I don't know how I can fix that. How can I fix the dependencies. Thank you. (note: edited this post to remove images and indenting that seemed not to work properly) Last edited by lili5058; Jan 20th, 2014, 08:43 AM. Tags: None Kris De Volder Senior Member Spring Team Join Date: May 2010 Posts: 546 Kris De Volder -- SpringSource #2 Jan 20th, 2014, 10:24 AM The grails 'upgrade' command may be able to help a little with migrating basic project structure. If you import the project