Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2417

Logging doesn't work in cloned instances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.3, 2.4.0, 3.0.0
    • 2.3.3, 2.4.0, 3.0.0
    • None
    • None

    Description

      I'm getting no logs in a cloned instance on start:

      [janstey@bender apache-karaf-2.4.0-SNAPSHOT]$ ./bin/karaf 
              __ __                  ____      
             / //_/____ __________ _/ __/      
            / ,<  / __ `/ ___/ __ `/ /_        
           / /| |/ /_/ / /  / /_/ / __/        
          /_/ |_|\__,_/_/   \__,_/_/         
      
        Apache Karaf (2.4.0-SNAPSHOT)
      
      Hit '<tab>' for a list of available commands
      and '[cmd] --help' for help on a specific command.
      Hit '<ctrl-d>' or type 'osgi:shutdown' or 'logout' to shutdown Karaf.
      
      karaf@root> admin:clone --ssh-port 8102 --rmi-server-port 44445 --rmi-registry-port 1100 root myClone
      karaf@root> admin:list 
        SSH Port   RMI Ports         State       Pid  Name
      [    8101] [1099/44444     ] [Started ] [23654] root
      [    8102] [1100/44445     ] [Stopped ] [    0] myClone
      karaf@root> admin:start myClone 
      karaf@root> admin:connect myClone log:display
      Connecting to host localhost on port 8102
      Connected
      
      karaf@root> 
      

      The log4j config is getting messed up by the filtering stuff in admin:clone. Will attach patch soon.

      Attachments

        1. KARAF-2417-trunk.patch
          1 kB
          Jonathan Anstey
        2. fix_clone_logging.patch
          1.0 kB
          Jonathan Anstey

        Activity

          People

            ffang Freeman Yue Fang
            janstey Jonathan Anstey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: