Salvatore Mongiardo created CAMEL-19938:
-------------------------------------------

             Summary: JBang camel CLI not working when using "run" option on 
Windows environments
                 Key: CAMEL-19938
                 URL: https://issues.apache.org/jira/browse/CAMEL-19938
             Project: Camel
          Issue Type: Bug
          Components: camel-jbang
    Affects Versions: 4.0.0
         Environment: +_Steps to reproduce:_+

jbang app uninstall camel && jbang app install camel@apache/camel

camel config set 
deps=org.apache.camel.springboot:camel-timer-starter,camel:management,camel:cli-connector
camel config set runtime=spring-boot
camel config set gav=com.foo:acme:1.0-SNAPSHOT

camel init test.yaml
camel run test.yaml
            Reporter: Salvatore Mongiardo
         Attachments: camel-jbang-logger-exception.log

 

During the execution of `{_}camel run ...{_} ` in Windows environments (e.g. 
tested on Win 2019) we get the exception reported in the attached file, 
basically:

 
{code:java}
ERROR StatusConsoleListener FileManager (C:\Users\hudson/.camel/${sys:pid}.log) 
java.io.IOException: The filename, directory name, or volume label syntax is 
incorrect {code}
It sounds like a logging configuration issue in resolving *${sys:pid}* 
placeholder coded in log4j properties 
[file|https://github.com/apache/camel/blob/main/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2.properties#L28]

 

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to