Package org.jboss.web

Examples of org.jboss.web.WebClassLoader


      // Create codebasePolicy containing the container's codebase string
      logger.debug("container classloader: " + container.getClassLoader()
                   + "\ncontainer parent classloader: "
                   + container.getClassLoader().getParent());
      WebClassLoader wcl = (WebClassLoader)container.getWebClassLoader();
      String codebaseString;
      if (wcl != null && (codebaseString = wcl.getCodebaseString()) != null)
      {
         Any codebase = orb.create_any();
         codebase.insert_string(codebaseString);
         codebasePolicy = orb.create_policy(CodebasePolicy.TYPE, codebase);
         logger.debug("codebasePolicy: " + codebasePolicy);
View Full Code Here


      ClassLoader unitCl = unit.getClassLoader();
      // Create the container's WebClassLoader
      // and register it with the web service.
      String webClassLoaderName = getWebClassLoader(conf, bean);
      log.debug("Creating WebClassLoader of class " + webClassLoaderName);
      WebClassLoader wcl = null;
      try
      {
         Class clazz = unitCl.loadClass(webClassLoaderName);
         wcl = WebClassLoaderFactory.createWebClassLoader(clazz, container.getJmxName(), (RealClassLoader) unitCl);
      }
      catch (Exception e)
      {
         throw new DeploymentException("Failed to create WebClassLoader of class " + webClassLoaderName + ": ", e);
      }

      if (webServiceName != null)
      {
         WebServiceMBean webServer = (WebServiceMBean) MBeanProxyExt.create(WebServiceMBean.class, webServiceName);
         URL[] codebase = {webServer.addClassLoader(wcl)};

         wcl.setWebURLs(codebase);
      } // end of if ()

      container.setWebClassLoader(wcl);
      // Create classloader for this container
      // Only used to unique the bean ENC and does not augment class loading
View Full Code Here

      // Create codebasePolicy containing the container's codebase string
      logger.debug("container classloader: " + container.getClassLoader()
                   + "\ncontainer parent classloader: "
                   + container.getClassLoader().getParent());
      WebClassLoader wcl = (WebClassLoader)container.getWebClassLoader();
      String codebaseString;
      if (wcl != null && (codebaseString = wcl.getCodebaseString()) != null)
      {
         Any codebase = orb.create_any();
         codebase.insert_string(codebaseString);
         codebasePolicy = orb.create_policy(CodebasePolicy.TYPE, codebase);
         logger.debug("codebasePolicy: " + codebasePolicy);
View Full Code Here

      ClassLoader unitCl = unit.getClassLoader();
      // Create the container's WebClassLoader
      // and register it with the web service.
      String webClassLoaderName = getWebClassLoader(conf, bean);
      log.debug("Creating WebClassLoader of class " + webClassLoaderName);
      WebClassLoader wcl = null;
      try
      {
         Class clazz = unitCl.loadClass(webClassLoaderName);
         wcl = WebClassLoaderFactory.createWebClassLoader(clazz, container.getJmxName(), (RealClassLoader) unitCl);
      }
      catch (Exception e)
      {
         throw new DeploymentException("Failed to create WebClassLoader of class " + webClassLoaderName + ": ", e);
      }

      if (webServiceName != null)
      {
         WebServiceMBean webServer = (WebServiceMBean) MBeanProxyExt.create(WebServiceMBean.class, webServiceName);
         URL[] codebase = {webServer.addClassLoader(wcl)};

         wcl.setWebURLs(codebase);
      } // end of if ()

      container.setWebClassLoader(wcl);
      // Create classloader for this container
      // Only used to unique the bean ENC and does not augment class loading
View Full Code Here

/*     */
/* 369 */     this.homeRepositoryIds = interfaceAnalysis.getAllTypeIds();
/*     */
/* 372 */     this.logger.debug("container classloader: " + this.container.getClassLoader() + "\ncontainer parent classloader: " + this.container.getClassLoader().getParent());
/*     */
/* 375 */     WebClassLoader wcl = (WebClassLoader)this.container.getWebClassLoader();
/*     */     String codebaseString;
/* 377 */     if ((wcl != null) && ((codebaseString = wcl.getCodebaseString()) != null))
/*     */     {
/* 379 */       Any codebase = this.orb.create_any();
/* 380 */       codebase.insert_string(codebaseString);
/* 381 */       this.codebasePolicy = this.orb.create_policy(305419896, codebase);
/* 382 */       this.logger.debug("codebasePolicy: " + this.codebasePolicy);
View Full Code Here

/*      */
/*  794 */     ClassLoader unitCl = unit.getClassLoader();
/*      */
/*  797 */     String webClassLoaderName = getWebClassLoader(conf, bean);
/*  798 */     log.debug("Creating WebClassLoader of class " + webClassLoaderName);
/*  799 */     WebClassLoader wcl = null;
/*      */     try
/*      */     {
/*  802 */       Class clazz = unitCl.loadClass(webClassLoaderName);
/*  803 */       wcl = WebClassLoaderFactory.createWebClassLoader(clazz, container.getJmxName(), (RealClassLoader)unitCl);
/*      */     }
/*      */     catch (Exception e)
/*      */     {
/*  807 */       throw new DeploymentException("Failed to create WebClassLoader of class " + webClassLoaderName + ": ", e);
/*      */     }
/*      */
/*  812 */     if (this.webServiceName != null)
/*      */     {
/*  814 */       WebServiceMBean webServer = (WebServiceMBean)MBeanProxyExt.create(WebServiceMBean.class, this.webServiceName);
/*      */
/*  817 */       URL[] codebase = { webServer.addClassLoader(wcl) };
/*      */
/*  820 */       wcl.setWebURLs(codebase);
/*      */     }
/*      */
/*  823 */     container.setWebClassLoader(wcl);
/*      */
/*  826 */     container.setClassLoader(new DelegatingClassLoader(wcl));
View Full Code Here

TOP

Related Classes of org.jboss.web.WebClassLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.