Comments (21)
Even worse - on 2.0.2 the shedule is taken from one job, whereas performing another.... )))
from grails-quartz.
salex772: Hooray, I'm not crazy!!
from grails-quartz.
I cannot make it work at all.
from grails-quartz.
Hello
I tired install quartz plugin in grails 3.0.9 and I update plugin:
compile "org.grails.plugins:quartz:2.0.3"
I had error:
Warning:<i><b>root project 'project': Web Facets/Artifacts will not be configured properly</b>
Details: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':runtime'.
Caused by: org.gradle.internal.resolve.ArtifactNotFoundException: Could not find quartz.zip (org.grails.plugins:quartz:2.0.0).
Searched in the following locations:
https://repo.grails.org/grails/core/org/grails/plugins/quartz/2.0.0/quartz-2.0.0.zip</i>
Can you tell me where am I doing wrong?
Help me...
from grails-quartz.
Did you run "gradle lean" before it?
from grails-quartz.
Yes, nothing helps
from grails-quartz.
What is in your "build.gradle"? Try to use 2.0.4
repositories {
mavenLocal()
maven {
url = "http://dl.bintray.com/grails/plugins"
}
maven {
url = "http://jcenter.bintray.com"
}
maven {
url = "https://repo.grails.org/grails/core"
}
mavenCentral()
jcenter()
}
dependencies {
compile 'org.grails.plugins:quartz:2.0.4'
}
from grails-quartz.
@AlexKovynev Alex, if you are familiar with that issue and as I see you are contributing to this plugin why it is not tested enough and nowhere is it specified as broken?
or I do smth wrong?
from grails-quartz.
I'm not seeing these errors, can someone post a small example app to
demonstrate the issue?
On Mon, Jan 11, 2016 at 10:01 AM, Alexander Shamshurin <
[email protected]> wrote:
@AlexKovynev https://github.com/AlexKovynev Alex, if you are familiar
with that issue and as I see you are contributing to this plugin why it is
not tested enough and nowhere is it specified as broken?or I do smth wrong?
—
Reply to this email directly or view it on GitHub
#46 (comment)
.
from grails-quartz.
@salex772 Next is the same, I do not know what but grails looking for in the repo zip file and did not see him there.
In you, does it work?
from grails-quartz.
My problem that plugin itself does not work as expected - only one job can fire. Other jobs sheduler doesn't see and also mess them in shedule. But I installed it without any problems. Any versions I have tried were installed wothout any trouble.
Please install new fresh grails application and then add example I posted above to your build.config. I'm sure that it is problem with your gradle or some libs or IDE.
from grails-quartz.
@rvanderwerf this is a simple default project with three jobs. Nothing happens! (jobs must print and log)
- grails create-app cronTest
- copy files over default project
groovy 2.4.5 grails 3.0.11 gradle 2.9
cronTest.tar.gz
from grails-quartz.
- I am not a contributor.
- In your test you have identically "cron name". That's why the first task is performed only.
- 2.0.4 is broken, pluginEnabled is disabled by default, if i set is to true i catch exception in
if (grailsApplication?.config?.quartz?.purgeQuartzTablesOnStartup?.toBoolean()==true) {
Exception in thread "main" groovy.lang.MissingMethodException: No signature of method: static org.grails.config.NavigableMap.toBoolean() is applicable for argument types: () values: []
Possible solutions: asBoolean(), asBoolean(), toSorted()
from grails-quartz.
What you mean by identically "cron name"? I thought this is the name of sheduling type, like "simple".
I get the error too if set pluginEnabled option. But on my real app with 2.0.4 this works as I described above - only one job task is sheduled though pluginEnabled is false by default.
from grails-quartz.
static triggers = {
cron name: 'cronTrigger', startDelay: 5000, cronExpression: '10 * * * * ?'
}
cronTrigger is the name in all three jobs, if you set something different you get to work all three,
but it works on 2.0.1. In 2.0.4 are waiting for a response from a rvanderwerf I hope.
from grails-quartz.
Hmm, I really supposed that is not just a name but a trigger type and it should be set to 'cronTrigger', Perhaps some update to docs is needed. Спасибо.
from grails-quartz.
Exception in thread "main" groovy.lang.MissingMethodException is something
I'm going to try and get fixed tonight, if not tomorrow, someone else
reported this as well. Alexender I'll check out your project example thanks
for sending that in.
On Mon, Jan 11, 2016 at 7:20 PM, AlexKovynev [email protected]
wrote:
- I am not a contributor.
- In your test you have identically "cron name". That's why the first
task is performed only.- 2.0.4 is broken, pluginEnabled is disabled by default, if i set is
to true i catch exception inif
(grailsApplication?.config?.quartz?.purgeQuartzTablesOnStartup?.toBoolean()==true)
{Exception in thread "main" groovy.lang.MissingMethodException: No
signature of method: static org.grails.config.NavigableMap.toBoolean() is
applicable for argument types: () values: []
Possible solutions: asBoolean(), asBoolean(), toSorted()—
Reply to this email directly or view it on GitHub
#46 (comment)
.
from grails-quartz.
ok fixed the config values. As you guys were saying the default values turned the plugin off (my bad). Updated the readme as well to tell you to use unique trigger names. You can't have duplicate names triggers. I took your example @salex772 once I fixed the config issues (you can work around by setting the new config values in the config) and renamed the trigger and all 3 ran. So give 2.0.5 a spin I tested it in several apps without issues tonight.
from grails-quartz.
Hello,
@salex772 was right. I built a new project and it runs very well.
I can not figure what I'm doing wrong in my project.
My build.gradle:
buildscript {
ext {
grailsVersion = project.grailsVersion
}
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.5.0'
classpath "org.grails.plugins:hibernate4:4.3.5.4"
}
}
plugins {
id "io.spring.dependency-management" version "0.5.2.RELEASE"
id 'org.hidetake.ssh' version '1.1.4'
}
version "0.1"
group "project"
apply plugin: "spring-boot"
apply plugin: "war"
apply plugin: "asset-pipeline"
apply plugin: 'idea'
apply plugin: "org.grails.grails-web"
apply plugin: "org.grails.grails-gsp"
ext {
grailsVersion = project.grailsVersion
gradleWrapperVersion = project.gradleWrapperVersion
}
assets {
minifyJs = true
minifyCss = true
}
repositories {
mavenLocal()
maven {
url = "http://dl.bintray.com/grails/plugins"
}
maven {
url = "http://jcenter.bintray.com"
}
maven {
url = "https://repo.grails.org/grails/core"
}
mavenCentral()
jcenter()
}
dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}
dependencies {
compile "org.springframework.boot:spring-boot-starter-logging"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.boot:spring-boot-autoconfigure"
provided "org.springframework.boot:spring-boot-starter-tomcat"
compile "org.grails:grails-dependencies"
compile "org.grails:grails-web-boot"
compile "org.grails.plugins:hibernate"
compile "org.grails.plugins:cache"
compile "org.hibernate:hibernate-ehcache"
compile "org.grails.plugins:scaffolding"
compile "org.jadira.usertype:usertype.jodatime:2.0"
compile 'joda-time:joda-time:2.9.1'
compile 'org.grails.plugins:spring-security-core:3.0.1'
compile 'org.springframework.security:spring-security-core:3.2.9.RELEASE'
compile 'org.springframework.security:spring-security-web:3.2.9.RELEASE'
compile 'org.grails:grails-datastore-rest-client:5.0.0.RC2'
compile 'org.flywaydb:flyway-core:3.0'
compile 'org.grails.plugins:asynchronous-mail:1.2'
compile "javax.mail:mail:1.4.1"
runtime 'org.postgresql:postgresql:9.4-1200-jdbc41'
runtime "org.grails.plugins:asset-pipeline"
runtime 'org.grails.plugins:database-migration:2.0.0.RC1'
testCompile "org.grails:grails-plugin-testing"
testCompile "org.grails.plugins:geb"
testRuntime 'org.seleniumhq.selenium:selenium-htmlunit-driver:2.44.0'
console "org.grails:grails-console"
compile 'org.grails.plugins:quartz:2.0.4'
}
And I had error:
Warning:<i><b>root project 'project': Web Facets/Artifacts will not be configured properly</b>
Details: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':runtime'.
Caused by: org.gradle.internal.resolve.ArtifactNotFoundException: Could not find quartz.zip (org.grails.plugins:quartz:2.0.4).
Searched in the following locations:
http://dl.bintray.com/grails/plugins/org/grails/plugins/quartz/2.0.4/quartz-2.0.4.zip</i>
Warning:<i><b>root project 'project': Web Facets/Artifacts will not be configured properly</b>
Details: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':runtime'.
Caused by: org.gradle.internal.resolve.ArtifactNotFoundException: Could not find quartz.zip (org.grails.plugins:quartz:2.0.4).
Searched in the following locations:
http://dl.bintray.com/grails/plugins/org/grails/plugins/quartz/2.0.4/quartz-2.0.4.zip</i>
Do you know someone depending on what's going on here?
from grails-quartz.
Its working now. The problem turned out to be in temporary files. I deleted a folder .m2 from home and downloaded the have a new everything.
from grails-quartz.
Yep, It's obvious.
from grails-quartz.
Related Issues (20)
- "No Session found for current thread" for job listener
- Conflicting bean HOT 1
- Race condition with dataSource on startup HOT 1
- Broken links in Grails plugin page
- How to configure multiple schedulers to have more than one thread pool?
- version 2.0.13 is not working with Grails 4.0.0.M2 HOT 6
- java -jar run xxx.jar not working HOT 1
- Version 2.0.13 not compatible with Groovy 3 HOT 1
- The trigger configuration stored in the database is reset after application restart
- Plugin Prevents application to startup with a job in past date
- Timezone parameter is ignored
- Long time running jobs
- Plugin is not working with Grails 5 HOT 7
- How to disable quartz in unit tests ?
- 'grails create-job' command does not exist in grails 6
- When I set autoStartup to false the job does not work HOT 1
- Set-up GitHub Workflows HOT 1
- Verify all the tests are up-to-date and green (passing) HOT 1
- Review Documentation and update accordingly
- Could not instantiate custom Metaclass for class: grails.plugins.quartz.QuartzJob$Trait$Helper HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grails-quartz.