Hi,

I think the issue is:
* I use org.apereo.cas:cas-server-support-jdbc which pulls in  
support-jpa-util
* support-jpa-util contains  JpaBeanFactory
* OidcJwksJpaConfiguration has @ConditionalOnClass(JpaBeanFactory.class)
* Fails as there is no instance of JpaBeanFactory

I've hacked it locally for now but will try and come up with a pull 
request. Seems dubious that support-jdbc depends on something about JPA. 
JPA a higher level than JDBC? I've not use @ConditionalOnClass so maybe it 
could be tweaked to whatever is the factory for instances of JpaBeanFactory?

Any guidance welcome.

Cheers

Sam 

On Tuesday, 26 July 2022 at 14:58:51 UTC+1 Sam Hough wrote:

> Hi,
>
> Anyone else hit a problem using "org.apereo.cas:cas-server-support-oidc" 
> in the 6.6.0 branch?
>
> At first I was getting a problem with:
> [org/apereo/cas/oidc/config/OidcJwksJpaConfiguration.class]: Unsatisfied 
> dependency expressed through method 'jpaOidcJwksVendorAdapter' parameter 1; 
> nested exception is 
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No 
> qualifying bean of type 'org.apereo.cas.jpa.JpaBeanFactory' available: 
> expected at least 1 bean which qualifies as autowire candidate. Dependency 
> annotations: 
> {@org.springframework.beans.factory.annotation.Qualifier(value="jpaBeanFactory")}
> That was fixed by adding "org.apereo.cas:cas-server-support-jpa-hibernate"
>
> After upgrading to 6.6.0-RC4 I now get:
> [org/apereo/cas/oidc/config/OidcJwksJpaConfiguration.class]: Unsatisfied 
> dependency expressed through method 'transactionManagerOidcJwks' parameter 
> 1; nested exception is 
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No 
> qualifying bean of type 'javax.persistence.EntityManagerFactory' available: 
> expected at least 1 bean which qualifies as autowire candidate. Dependency 
> annotations: 
> {@org.springframework.beans.factory.annotation.Qualifier(value="oidcJwksEntityManagerFactory")}
>
> Anyone else hit this? I can't see how the same fix/kludge would work. I 
> don't want to use JPA anyway as I'm happy with config in the file system.
>
> Any suggestions if somebody has hit something similar would be greatly 
> appreciated.
>
> Cheers
>
> Sam
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/a59fa2db-d366-47bc-a3f2-5b7a80de16ccn%40apereo.org.

Reply via email to