Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Using the CUBA module breaks integration test for empty addon #80

Closed
mariodavid opened this issue Sep 13, 2021 · 1 comment
Closed

Using the CUBA module breaks integration test for empty addon #80

mariodavid opened this issue Sep 13, 2021 · 1 comment
Assignees
Milestone

Comments

@mariodavid
Copy link

Hi,

When creating an empty addon and add the CUBA module into it in order to use some legacy APIs, it causes the integration tests to fail:

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'io.jmix.securityui.constraint.UiPolicyStore' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1790)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1346)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:657)
	... 198 more

See also attached example:
empty-addon.zip

@knstvk knstvk added this to the 1.1.0 milestone Sep 13, 2021
@knstvk knstvk self-assigned this Oct 4, 2021
@knstvk
Copy link
Contributor

knstvk commented Oct 6, 2021

You also need to include jmix-security and jmix-security-ui starters to the add-on's build.gradle:

    implementation 'io.jmix.cuba:jmix-cuba-starter'
    implementation 'io.jmix.security:jmix-security-starter'
    implementation 'io.jmix.security:jmix-security-ui-starter'

@knstvk knstvk closed this as completed Oct 6, 2021
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

2 participants