[jboss-dev-forums] [Design of JBoss Deployment Framework] - Re: SAR Deployment Deployers Ordering

adrian@jboss.org do-not-reply at jboss.com
Tue Nov 4 09:40:11 EST 2008


"richard.opalka at jboss.com" wrote : "richard.opalka at jboss.com" wrote : 
  |   | Thus we're getting null for JBossWebMetaData ctx loader which isn't true in case we're deploying such .sar archive using hot deploy feature (JBossAS is already running). The problem is on JBossAS bootstrap when we have such .sar archive in the deploy directory.
  | 
  | I don't see a ctx loader on JBossWebMetaData?
  | That doesn't make any sense.
  | 
  | But it sounds like your real problem is that you just want the classloader for the webapp?
  | That's obtainable just by doing DeploymentUnit.getClassLoader()
  | 
  | From AbstractWarDeployment::start()
  | which obviously doesn't get invoked until the MBean has its dependencies satisfied
  | (i.e. jbossweb is running)
  | 
  |   |          ClassLoader warLoader = unit.getClassLoader();
  |   |          thread.setContextClassLoader(warLoader);
  |   | 
  |   | <snip/>
  |   | 
  |   |          webApp = new WebApplication(metaData);
  |   |          webApp.setClassLoader(warLoader);
  |   | 

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

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



More information about the jboss-dev-forums mailing list