-
1. Re: Adding packages to JBoss 7 boot delegation
nahsra Feb 9, 2012 3:47 PM (in response to nahsra)Adding the desired packages to the OSGi subsystem properties in domain.xml like this does not work. I added it to both profiles on a fresh JBoss 7 download.
<property name="org.osgi.framework.bootdelegation">com.myprofiler.pkg.*</property>
The ControllerBootThread still can't see the classes and throws NoClassDefFoundErrors.
-
2. Re: Adding packages to JBoss 7 boot delegation
thomas.diesler Feb 10, 2012 5:42 AM (in response to nahsra)Thanks. Please monitor https://issues.jboss.org/browse/AS7-3710
-
3. Re: Adding packages to JBoss 7 boot delegation
thomas.diesler Mar 20, 2012 8:20 AM (in response to thomas.diesler)Here is a tutorial on using byteman with AS7
All system packes are initialized when the jboss module system bootstraps. This is much before OSGi subsystem configuration is even read.
Therefore we have this code In standalone.conf
if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman" fi
It adds the byteman packages to the jboss-modules system packages. It is likely that whatever you define in org.osgi.framework.bootdelegation must also be defined there.
Lets meet on #jbosgi @ irc.freenode.net in case you need more help.