You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
Hi Peter, thanks for the Spring Security Filtering Demo. It's exactly what I'm trying to include in a Vaadin spring boot project of my own, but I'm having trouble replicating your example.
I'm getting a "Circular View Path" exception.
I've included the following dependencies (plus all the other relevant stuff):
One thing I notice in the demo's startup logs is that Velocity starts up, a SpringResourceLoader becomes available for Velocity and the /templates/ folder is assigned as a resource path. See below:
o.s.w.s.v.velocity.VelocityConfigurer : ClasspathResourceLoader with name 'springMacro' added to configured VelocityEngine
o.s.ui.velocity.SpringResourceLoader : SpringResourceLoader for Velocity: using resource loader [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplication
Context@1d15d980: startup date [Thu Mar 15 14:22:56 GMT 2018]; root of context hierarchy] and resource loader paths [classpath:/templates/]
However, I never see these Velocity startup logs in my own application.
So, I'm guessing Velocity isn't configured correctly in my app, but I don't see where it's configured in the demo.
Can you help? Thanks!
The text was updated successfully, but these errors were encountered:
The first thing I would check in this case is to make sure you have not accidentally protected the views that you are redirecting to when access is denied, like requiring authentication to be able to access the login view.
I eventually found out that Apache Velocity was the issue (not supported in spring boot 1.4 and above. I replaced it with Freemarker, then adjusted the templates and it is now ALMOST working as expected.
I can access the login page and successfully authenticate with Spring Security. Then, the Vaadin UI loads up, but none of the views are available!
I've debugged and neither the navigator nor viewProvider are null. It's just the views aren't being added to the navigator.
java.lang.IllegalArgumentException: Trying to navigate to an unknown state
I've followed the examples you outlined in your filtering example for the views, navigator, view provider, UI etc.
@peholmst do you think it's a versioning issue yet again?
Hi Peter, thanks for the Spring Security Filtering Demo. It's exactly what I'm trying to include in a Vaadin spring boot project of my own, but I'm having trouble replicating your example.
I'm getting a "Circular View Path" exception.
I've included the following dependencies (plus all the other relevant stuff):
I've also tried using newer versions of the dependencies above, but no luck.
One thing I notice in the demo's startup logs is that Velocity starts up, a SpringResourceLoader becomes available for Velocity and the /templates/ folder is assigned as a resource path. See below:
However, I never see these Velocity startup logs in my own application.
So, I'm guessing Velocity isn't configured correctly in my app, but I don't see where it's configured in the demo.
Can you help? Thanks!
The text was updated successfully, but these errors were encountered: