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

Jbang camel CLI "run" and "log" commands are not working on Windows environments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.4.0
    • 4.5.0
    • camel-jbang
    • None
    • Windows 2k19-x86-64-me

      openjdk 17

      jbang --version 0.114.0

      camel -V 4.0.0

    • Unknown

    Description

      Unfortunately, this is something that already happened before, and seems still unresolved.

      We basically, run :

      camel init test.yaml
      

      And then:

      camel run test
      

      We get this jbang-run-error.log

       

      It's something we already faced on CAMEL-19938

      and CAMEL-19067

      On the first issue, we were able to solve the "separator" (//) problem, but not the "${sys:pid}" one.

      Looking at the second issue, If we try to fix in the same way, building camel project replacing "${sys.pid}" with %pid, in those log4j config files, we are able to run the camel app:

      But this appears as no solved if we run with `--background` option.

      Moreover, `camel log` command is not working in any case:

      Attachments

        1. image-2024-03-06-16-14-25-190.png
          131 kB
          Salvatore Mongiardo
        2. image-2024-03-06-16-17-21-941.png
          59 kB
          Salvatore Mongiardo
        3. image-2024-03-29-14-41-56-037.png
          152 kB
          Salvatore Mongiardo
        4. image-2024-03-29-14-42-31-301.png
          152 kB
          Salvatore Mongiardo
        5. jbang-run-error.log
          13 kB
          Salvatore Mongiardo

        Issue Links

          Activity

            People

              Unassigned Unassigned
              smongiar Salvatore Mongiardo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: