2 Replies Latest reply on Jul 20, 2011 5:03 AM by r.reimann

    Cool: In JbossAS6, component versions in stacktrace.  How?

    John Franey Novice

      JBoss developers, how did you do this?  In the logging output, version numbers of components appear in stacktrace, here is sample:

       

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

              at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.0.GA]

              at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.GA]

             ...

              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.getManagedDeployment(MainDeployerPlugin.java:96) [:6.0.0.Final]

              at org.jboss.profileservice.dependency.ProfileControllerContext.getManagedDeployment(ProfileControllerContext.java:92) [:0.2.2]

       

       

      Excellent and cool.

       

      I want to do that for my components.

       

      I guess java does this for you, probably from metadata.  Google for 'java stacktrace versions' and such just gives too many results.

       

      Thaks,

      John