Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17114

camel-jslt cannot load files from classpath in quarkus dev-mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.11.2
    • 3.13.0, 3.11.4
    • None
    • None
    • Unknown

    Description

      See https://github.com/quarkusio/quarkus/issues/2531 ; essentially quarkus dev mode classpath resource loading only works properly if

      Thread.currentThread().getContextClassLoader().getResourceAsStream(uri);

      is used. Currently, JsltEndpoint uses

       JsltEndpoint.class.getClassLoader().getResourceAsStream(getResourceUri());

      I've tested locally that quarkus dev mode loads the file properly w/ this change.

      A simple route/jslt file are all that are needed to test this (locally, I'm simply using jslt like {"foo":"bar"}).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              khowell Kevin Howell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: