quarkus: Qute can't resolve any templates

I’m having trouble getting templates to resolve in Quarkus version 1.2.0.FINAL. I’m following the guides, and as far as I can tell I have everything set up correctly. I really would like to have more to put for this but there doesn’t seem to be much to try here (it seems like it should be super straight forward). I’m using Gradle to run my builds, if that matters.

Qute dependencies:

    implementation 'io.quarkus:quarkus-qute'
    implementation 'io.quarkus:quarkus-resteasy-qute'

Code:

@ApplicationScoped
public class LifecycleBean {
    private static final Logger LOGGER = LoggerFactory.getLogger(LifecycleBean.class);

    private ZonedDateTime startDateTime;
    private ZonedDateTime endDateTime;

//    @Inject
    @ResourcePath("startTemplate")
    Template startTemplate;

    ...
}

I have a template file located at: src/main/resources/templates/startTemplate.txt

Error:

Caused by: java.lang.IllegalStateException: No template found for com.gjs.taskTimekeeper.webServer.server.LifecycleBean#startTemplate

I have this issue outlined in this SO question as well: https://stackoverflow.com/questions/60131253/quarkus-qute-cant-resolve-template

Travis: https://travis-ci.com/github/GregJohnStewart/task-timekeeper/branches Git: https://github.com/GregJohnStewart/task-timekeeper/tree/webserver-work-template/WebServer/Server

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 52 (50 by maintainers)

Most upvoted comments

I’ll fix it.

@daggerok Yes I see the same behavior… looks like something isn’t properly moving resources around in test?

Also tested in 1.3.2, no change

@gastaldi Yeah I updated to 1.3.1.Final around when it was released, same issues unfortunately. I updated the OP to include travis and git urls to hopefully make it easier to see