Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Support usage without any persistence dependencies #7

Open
jameskleeh opened this issue Nov 17, 2016 · 4 comments
Open

Support usage without any persistence dependencies #7

jameskleeh opened this issue Nov 17, 2016 · 4 comments

Comments

@jameskleeh
Copy link

Adding the plugin to an app with no database support fails because the persistenceInterceptor bean could not be found

@sheehan
Copy link

sheehan commented May 19, 2017

Same issue here. After adding hibernate it says:

Field dataSource in com.agileorbit.schwartz.QuartzService required a bean of type 'javax.sql.DataSource' that could not be found.

After adding a data source config it works.

sdelamo added a commit to grails-samples/grails-forge that referenced this issue Nov 27, 2017
@pangeaos
Copy link

Same error. I'm not using hibernate instead I'm using mongodb.

Any idea?

@pangeaos
Copy link

21:57:07 ERROR LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:
A component required a bean named 'persistenceInterceptor' that could not be found.

Action:
Consider defining a bean named 'persistenceInterceptor' in your configuration.
FAILURE: Build failed with an exception.

@erichelgeson
Copy link
Member

I'm inclined to just remove SessionBinderJobListener - it feels like an antipattern for jobs - you either want a hibernate session/transaction and will annotate the job with @Transactional (or @ReadOnly) or dont - no need for us to open a session for you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants