Description:
I’m currently facing an issue with a custom login view in Jmix (FlowUI).
At application startup, the following error occurs:
io.jmix.flowui.exception.NoSuchViewException: View 'system_LoginView' is not defined
This happens during security configuration (inside FlowuiVaadinWebSecurity).
What I have verified so far:
- The
LoginViewclass exists - It is correctly annotated:
@Route("login")
@ViewController(id = "system_LoginView")
@ViewDescriptor("login-view.xml")
public class LoginView extends StandardView {
}
- The XML descriptor (
login-view.xml) exists and is valid - The package structure is consistent
- The view ID matches exactly (
system_LoginView) - The application compiles without errors
Debugging results:
I inspected the ViewRegistry during startup and printed all registered views.
Result:
system_LoginView is not present in the registry at all.
So the issue seems to be that the view is not being registered, rather than a wrong reference.
Additional observations:
- No explicit error is logged regarding the XML descriptor
- The application fails early due to the missing login view
- Other views are correctly registered and listed
My assumption:
It seems that Jmix silently ignores the view if the XML descriptor cannot be resolved (e.g. wrong location or path mismatch), but without logging an explicit error.
Question:
- Is there a way to enable logging for failed view registrations?
- Are there other conditions under which a view is silently ignored?
Goal:
Understand why a correctly annotated LoginView is not registered in ViewRegistry and how to reliably debug such issues.
Thanks in advance!
