gg.jte.TemplateNotFoundException: Failed to load index.jte #391
Replies: 4 comments 1 reply
-
Hi @kenduraghav, this should work within a servlet. I think the problem is that you use During development it is recommended to have hot-reloaded templates that are compiled on the fly, and to precompile the templates for production builds in the build process. You can find some docs about it here: https://jte.gg/pre-compiling/ |
Beta Was this translation helpful? Give feedback.
-
Hi Casid/Jte
Thanks for the reply.
I have tried both incase of development , it’s trying to load from my
eclipse installation location but not under the project src/main/jte
Here I am sharing the screenshot and I hope you might be busy in your work
and if you got a time to look my repository it would be helpful
I am attaching my repo link as well . Kindly visit at your convenience if
possible
https://github.com/kenduraghav/jte-demo/blob/main/error-log.md
Thanks & Regards,
Raghav
…On Tue, 8 Oct 2024 at 12:30, Andreas Hager ***@***.***> wrote:
Hi @kenduraghav <https://github.com/kenduraghav>,
this should work within a servlet. I think the problem is that you use
createPrecompiled, but haven't precompiled the templates.
During development it is recommended to have hot-reloaded templates that
are compiled on the fly, and to precompile the templates for production
builds in the build process. You can find some docs about it here:
https://jte.gg/pre-compiling/
—
Reply to this email directly, view it on GitHub
<#391 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKZJPXSBULPLPULZUVOUMPLZ2NNURAVCNFSM6AAAAABPPGEC36VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOBXGUZTGMI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Here is the error while using code resolver syntax for the development
CodeResolver codeResolver = new DirectoryCodeResolver(Path.of("src/main/jte"));
|
Beta Was this translation helpful? Give feedback.
-
Same problem here. There is a file For context I'm using Javalin and I'm running the app from Idea. |
Beta Was this translation helpful? Give feedback.
-
I am just started to explore JTE. I have been trying to work with Servlet as backend and rendering the output in JTE. I am using maven based project.
However, I am getting the below error.
Here is my Github repository
My Query Is this workable using servlets.? Because i have some legacy application which i wanted to migrate to jte if this works with servlet.
Kindly advise me.
Beta Was this translation helpful? Give feedback.
All reactions