Hi,

In case anyone else hits this. mmoayyed suggested a workaround 
here https://github.com/apereo/cas/pull/5538#issuecomment-1303193825 that 
seems to be based on code added in this 
commit 
https://github.com/apereo/cas/commit/94b32c39bf76e261484c9bbb7106bb2834c4dc21 
?

I'd not heard of the CasFeatureModule stuff before and googling didn't help 
me very much. Anyway, 
adding --CasFeatureModule.OpenIDConnect.jpa.enabled=false as a command line 
option seemed to fix it.

Cheers

Sam

On Friday, 5 August 2022 at 16:06:37 UTC+1 Sam Hough wrote:

> 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/a628e707-aa50-4862-ab4a-55ba1e1e63d5n%40apereo.org.

Reply via email to