I'm using AspectJ 1.6 with JBoss 4.2.1 configured with LoadTimeWeaving.

I have added the aspectjweaver.jar to the startup parameters:
 -javaagent:c:/dev/Java/aspectj1.6/lib/aspectjweaver.jar

AspectJ is properly loaded and indeed is weaving my classes as
desired/expected.  However, any weaveinfo data that it is producing is
being logged as an "Error" as it appears in the stderr stream instead of
the stdout:

2016-10-06 13:31:40,310 ERROR [STDERR] [UnifiedClassLoader3@333cf5e3]
weaveinfo Join point 'method-call(business.impl.BusinessContext
business.ejb3.ManagerBean.getBusinessContext(izone.business.BusinessContextInfo))'
in Type 'business.ejb3.ManagerBean' (ManagerBean.java:112) advised by
afterThrowing advice from 'common.security.logger.AccessDeniedLoggerAspect'
(AccessDeniedLoggerAspect.java)


According to the JBoss documentation, System.err stream is redirected into
a category called STDERR, which is what I see above.

Is there a way to configure the weaver to output on stdout instead?  Or is
it working this way by design?

Thanks,

Eric
_______________________________________________
aspectj-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to