Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-10711

Cargo Log4j2 configuration does not work on Windows

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 5.0.0
    • 5.0.0, 12.0.0
    • None
    • None
    • Pulsar
    • Platform Sprint 154

    Description

      Starting Cargo on Windows results in an error loading log4j2.xml [2]

      Testing it looks like  file:${project.basedir} [1] might be the problem, this must be  file://${project.basedir} [3].

      Looks like log4j2 handles the url a bit differently
       
      [1]
      <log4j.configurationFile>file:$\{project.basedir}/conf/log4j2.xml</log4j.configurationFile>
       
       
      [2]

       [INFO] [talledLocalContainer] INFO: Command line argument: -Dlog4j.configurationFile=[file:C:\dev\projects\hippo-testsuite/conf/log4j2.xml|file:///C:/devprojectshippo-testsuite/conf/log4j2.xml]
       [INFO] [talledLocalContainer] Apr 23, 2017 6:30:50 PM org.apache.catalina.startup.VersionLoggerListener log
       [INFO] [talledLocalContainer] INFO: Command line argument: -DLog4jContextSelector=org.apache.logging.log4j.core.selector.BasicContextSelector
        
        
       [WARNING] [talledLocalContainer] ERROR StatusLogger Unable to access [file:/C:/dev/projects/hippo-testsuite/target/tomcat8x/file:C:/dev/projects/hippo-testsuite/conf/log4j2.xml|file:///C:/dev/projects/hippo-testsuite/target/tomcat8x/file:C:/dev/projects/hippo-testsuite/conf/log4j2.xml]
       [INFO] [talledLocalContainer]  java.io.FileNotFoundException: C:\dev\projects\hippo-testsuite\target\tomcat8x[file:C:\dev\projects\hippo-testsuite\conf\log4j2.xml|file:///C:/devprojectshippo-testsuiteconflog4j2.xml] (The filename, directory name, or volume label syntax is incorrect)
       [INFO] [talledLocalContainer]   at java.io.FileInputStream.open0(Native Method)
      

       
      [3] https://en.wikipedia.org/wiki/File_URI_scheme

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              abanck Arent-Jan Banck (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: