typo
2014-06-05 16:21:25 UTC
Hi there
I use Quartz for background cronjobs and trigger my service to create a
file.
In this service, I wanted to use some own written TagLibs as well as the
default ones from Grails (formatNumber, formatDate).
I'm getting the following error: *No thread-bound request found: Are you
referring to request attributes outside of an actual web request, or
processing a request outside of the originally receiving thread? If you are
actually operating within a web request and still receive this message, your
code is probably running outside of DispatcherServlet/DispatcherPortlet: In
this case, use RequestContextListener or RequestContextFilter to expose the
current request.*
If I invoke the service directly via controller, it works.
I've tried to use
def g =
grailsApplication.mainContext.getBean('org.codehaus.groovy.grails.plugins.web.taglib.ApplicationTagLib')
but it doesn't work for Quartz-invoked jobs.
What can I do?
Thanks for helping.
--
View this message in context: http://grails.1312388.n4.nabble.com/Use-TagLib-from-Service-via-Quartz-tp4657078.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
I use Quartz for background cronjobs and trigger my service to create a
file.
In this service, I wanted to use some own written TagLibs as well as the
default ones from Grails (formatNumber, formatDate).
I'm getting the following error: *No thread-bound request found: Are you
referring to request attributes outside of an actual web request, or
processing a request outside of the originally receiving thread? If you are
actually operating within a web request and still receive this message, your
code is probably running outside of DispatcherServlet/DispatcherPortlet: In
this case, use RequestContextListener or RequestContextFilter to expose the
current request.*
If I invoke the service directly via controller, it works.
I've tried to use
def g =
grailsApplication.mainContext.getBean('org.codehaus.groovy.grails.plugins.web.taglib.ApplicationTagLib')
but it doesn't work for Quartz-invoked jobs.
What can I do?
Thanks for helping.
--
View this message in context: http://grails.1312388.n4.nabble.com/Use-TagLib-from-Service-via-Quartz-tp4657078.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