Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

views-jte: when dynamic == true, but fails to find source files, loading templates from classpath fails #511

Open
edward3h opened this issue Apr 18, 2023 · 2 comments

Comments

@edward3h
Copy link
Contributor

Expected Behavior

My jte files are in a separate submodule from my Micronaut application. Micronaut was configured with "micronaut.views.jte.dynamic: true"

Since the jte files are not in a location which matches the conventions JteViewsRenderer looks for, it should fall back to using the precompiled classes from the classpath.

Actual Behaviour

When I make a request, a log message says "Dynamic view path not found, using views from classpath.", however it is followed by "Unexpected error occurred: View [home] does not exist"

Steps To Reproduce

No response

Environment Information

No response

Example Application

No response

Version

3.8.6

@edward3h
Copy link
Contributor Author

I wrote the JteViewRenderer, so I'm working on a fix myself. Just thought it would be good to report the bug in case the fix takes a while.

@edward3h
Copy link
Contributor Author

Workaround - don't configure the dynamic setting when it doesn't work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant