3 Replies Latest reply on May 3, 2010 3:15 PM by wiggy

    logger not expanding attribute data in output

    wiggy

      weird problem


      I am using works laptop and home pc some do some dev.


      i am using as5.1/seam 2.2.1 (or 2.2.0) and eclipse and jboss tools.


      at work latop my log.xx does not expand in the output but does at home


      heres a very simple example



      public class WilltestBean implements Willtest
      {
          @Logger private Log log;
      
          @In StatusMessages statusMessages;
      
          public void willtest()
          {
              // implement your business logic here
              log.info("willtest.willtest() action called #0", "extra text");
              statusMessages.add("willtest");
          }
      
          // add additional action methods
      
      }
      



      at work this produces


      18:04:23,769 WARN  [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
      18:04:23,769 WARN  [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
      18:04:23,769 INFO  [WilltestBean] willtest.willtest() action called #0
      



      where i just get #0 printed in the text - no expansion, but at work this works fine


      I have rebuilt my env at work with new eclipse/tools/jboss/seam and i still get same problem.


      only difference i can see is that at home i'm on windows 7 and work xp sp3.


      any idea whats going on its weird



        • 1. Re: logger not expanding attribute data in output
          sean.tozer

          This is a known bug in 2.2.1CR1 which I believe is fixed in the nightly builds. That's just a release candidate, not necessarily ready for production deployment yet.

          • 2. Re: logger not expanding attribute data in output
            thokuest
            • 3. Re: logger not expanding attribute data in output
              wiggy

              really weird -


              I have just had to build a new workspace, as my previous one went into a jBOSS AS deploy loop (another problem when you edit pages.xml in jboss tools - which generates xxx.spdia file - which seems to kill the AS


              by the way i tried jboss as6 but seemed to get loads of other probelems and gave up - back to 5.1 and seam 2.1.0 again )


              however having built my new workspace with 5.1 plus seam 2.1.0GA - i am getting these unexpanded attributes in the log output - whereas on the previous workspace i didnt


              this is very frustrating - why would it stop when i rebuild from 2.2.1 back to 2.1.0?


              i cant read the output now and will have to recode to do it as a string concat the hard way.


              is there a config line in the eclipse config in jboss tools messing this up - on just something in seam libraries somewhere -