Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Circular View Path Exception #4

@myungsunscott

Description

@myungsunscott

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):

compile 'com.vaadin:vaadin-spring-boot-starter:1.2.0'
compile 'org.springframework.boot:spring-boot-starter-security:1.3.3.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-velocity:1.3.3.RELEASE'

I've also tried using newer versions of the dependencies above, but no luck.

compile 'com.vaadin:vaadin-spring-boot-starter:3.0.0'
compile 'org.springframework.boot:spring-boot-starter-security:1.5.10.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-velocity:1.4.7.RELEASE'

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions