[jboss-dev-forums] [JBoss AS Development] - Re: JBAS-7469, move bootstrap class loading into profile

ALRubinger do-not-reply at jboss.com
Wed Nov 18 15:17:26 EST 2009


EmbeddedAS is a bit of a different beast.  Currently it has a mega-JAR of all AS dependencies bundled for users to put on the ClassPath.  Looking forward I need to intelligently trim this down so that user tests can still use the APIs without leaking internals and resulting in NoClassDefFoundError when AS comes up.  So in effect, when AS starts up in Embedded mode, all classes are loaded from the application CL.

>From the perspective of the bootstrap project, ClassLoading is removed from scope entirely except for this bit which Adrian has wanted to move out for some time:

http://anonsvn.jboss.org/repos/jbossas/projects/bootstrap/trunk/impl-base/src/main/java/org/jboss/bootstrap/impl/base/server/AbstractServer.java @startBootstraps()

...where we rely upon the CL which loaded the bootstrap to start processing its referents.  Everything else is set up by Main in phases (appCL slim run.jar, then we add a custom URLCL with a bunch of things necessary to start the server).

ShrinkWrap won't be at all affected.

But let me know if you run into more specific issues.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266395#4266395

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266395



More information about the jboss-dev-forums mailing list