3 Replies Latest reply on Nov 25, 2011 2:05 AM by Vivek Katta

    typed loggers are not working in AS 7

    Vivek Katta Newbie

      Hi, I am new to Jboss and Seam 3.

       

      I have been evaluating seam solder logging and jboss AS. I have a typed logger in my application

       

      <code>

      @MessageLogger

      public interface MyTypedLogger {

       

          @Log(level=Level.DEBUG) @Message("Entering method (%s)")

          void entering(Object methodName);

         

          @Log(level=Level.DEBUG) @Message("Entering method (%s) with inputs %s")

          void entering(Object methodName, Object input);

       

      }

       

      </code>

       

      The logger was working fine on AS 6 but when I moved to AS 7, I get the following exception when I access the application:

       

      Servlet.service() for servlet FacesServlet threw exception: java.lang.IllegalArgumentException: Invalid logger interface test.common.util.logging.typesafe.loggers.MyTypedLogger (implementation not found)

       

                at org.jboss.logging.Logger.getMessageLogger(Logger.java:2254) [jboss-logging-3.0.0.GA.jar:3.0.0.GA]

                at org.jboss.logging.Logger.getMessageLogger(Logger.java:2215) [jboss-logging-3.0.0.GA.jar:3.0.0.GA]

                at org.jboss.seam.solder.logging.TypedMessageLoggerProducer.produceTypedLogger(TypedMessageLoggerProducer.java:77) [seam-solder-3.0.0.Final.jar:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_27]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_27]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_27]

                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_27]

                at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

                at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

                at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

                at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

                at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

                at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstance(MethodInjectionPoint.java:169) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

                at org.jboss.weld.bean.ProducerMethod$1.produce(ProducerMethod.java:149) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

                at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:361) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

                at org.jboss.seam.solder.bean.ImmutableNarrowingBean.create(ImmutableNarrowingBean.java:103) [seam-solder-3.0.0.Final.jar:]

                at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:67) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

                at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:693) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

                at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:775) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

       

       

      Anyone else facing the same issue? would appreciate any help on this.

       

      Thanks