I finally managed to do the load-time weaving. Everything else was OK, but in jboss-service.xml in jboss-aop-jdk50.deployer I hadn't changed
<mbean code="org.jboss.aop.deployment.AspectManagerService" ...>" to <mbean code="org.jboss.aop.deployment.AspectManagerServiceJDK5" ...>" as I was using the -javaagent:pluggable-instrumentor.jar. This should have been obvious thing to do (if you read the comment in the beginning of jboss-service.xml), but somehow I managed to miss it when changing the LoadtimeWeaving to true. One reason for missing might be the fact that instructions are fragmented around your web-site quite badly (some are in AOP documentation, some in JBossCache documentation etc.). So when I changed the LoadtimeWeaving to true, I just did that, nothing else (so I actually missed the comment in the beginning of the 'jboss-service.xml'). When I later found out that the command line switch '-javaagent:pluggable-instrumentor.jar' should be added, there was no explicit mentioning about the MBean settings at that place (see http://docs.jboss.com/aop/1.3/aspect-framework/reference/en/html/running.html, 10.3.3). If you just copy the 'jboss-aop-jdk50.deployer' to deploy and change the LoadtimeWeaving to true, ofcourse nothing happens... So, I suggest you add to the documentation in "http://docs.jboss.com/aop/1.3/aspect-framework/reference/en/html/running.html", section "10.3.3. JBoss 4.x and JDK 5" an explicit mentioning that "AspectManagerService" must be also changed to "AspectManagerServiceJDK5" (it is already in the example XML snippet, but it's extremely easy to miss that). I know, this is more like an AOP-issue, but I just have to unburden my mind somewhere, as I spent tens of hours on this issue... :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913756#3913756 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913756 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
