Thanks for the tips, but i'm still struggling with this. Here's what I've done so far.
I've added the module name under -Djboss.modules.system.pkgs and added it as a cp argument as :
-Djboss.modules.system.pkgs=org.jboss.byteman,org.aspectj,org.jboss.logmanager
-classpath "D:\jboss-eap-7.0\modules\system\layers\base\org\aspectj\main\aspectj-0.0.1-SNAPSHOT.jar"
My org.aspectj module is defined as:
<module xmlns="urn:jboss:module:1.3" name="org.aspectj">
<resources>
<resource-root path="aspectjweaver-1.8.10.jar"/>
<resource-root path="aspectj-0.0.1-SNAPSHOT.jar"/>
</resources>
</module>
Now when I start Wildfly, I still don't see it trying to weave any of the base Wildfly/undertow modules. If I define the org.aspectj as a global module in the standalone.xml, the I see the weaver attempting to weave my application deployment but none of the base WF classes.
Does the jboss.modules.system.pkgs argument relate to the module name or to the package naming of the libraries? ie: do my aspects in aspectj-0.0.1-SNAPSHOT.jar also have to be in an 'org.aspectj' java package or am I free to use any package naming structure I want as long as they are part of the org.aspectj WF module definition? My aspect is actually in a test package called "aspectj". I even tried added "aspectj" to the jboss.modules.system.pkgs variable, but to no avail.
How does WF know where to find classes/packages defined in 'jboss.modules.system.pkgs'?
Thanks,
Eric