Package org.jboss.deployers.spi

Examples of org.jboss.deployers.spi.DeploymentException


         className = DUMMY_RA_CLASS;
     
      // Load the class
      Class raClass = Thread.currentThread().getContextClassLoader().loadClass(className);
      if (ResourceAdapter.class.isAssignableFrom(raClass) == false)
         throw new DeploymentException(raClass.getName() + " is not a resource adapter class");
      ResourceAdapter result = (ResourceAdapter) raClass.newInstance();
     
      // Apply the properties
      ConfigPropertyHandler configPropertyHandler = new ConfigPropertyHandler(result, raClass, "ResourceAdapter: ");
      for (Iterator i = cmd.getProperties().iterator(); i.hasNext();)
View Full Code Here


         {
            repositoryConfig.repositoryName = new ObjectName(name.trim());
         }
         catch (MalformedObjectNameException e)
         {
            throw new DeploymentException("Loader repository name is malformed: " + name, e);
         }
      }
     
      StringBuilder configData = new StringBuilder();
      Set<LoaderRepositoryConfigMetaData> children = loaderMetaData.getLoaderRepositoryConfig();
View Full Code Here

                        }
                     }
                  }
                  catch (Exception e)
                  {
                     throw new DeploymentException("Error processing TLDs for JAR: " + tldJar, e);
                  }
               }
            }
         }
      }
View Full Code Here

                  if (!file.exists() || !file.isAbsolute())
                  {
                     // Should be an relative to the top deployment
                     VFSDeploymentUnit topUnit = vfsUnit.getTopLevel();
                     if (topUnit == unit)
                        throw new DeploymentException("Unable to resolve " + altDDPath + " as WEB-INF path");
                     altDD = topUnit.getFile(altDDPath);
                     if (altDD == null)
                        throw new DeploymentException("Unable to resolve " + altDDPath + " as a deployment path");
                    
                     VirtualFile altDDFile = root.getChild("WEB-INF/" + altDD.getName());
                     log.debug("Copying the altDD to: " + altDDFile);
                     VFSUtils.writeFile(altDDFile, altDD.openStream());
                     metaData.setAlternativeDD(altDDFile.getPathName());
                  }
               }
            }
         }

         ClassLoadingMetaData classLoading = metaData.getClassLoading();
         if (classLoading == null)
            classLoading = new ClassLoadingMetaData();
         // pass in the java2ClassLoadingCompliance if it was not set at the war level
         if (classLoading.wasJava2ClassLoadingComplianceSet() == false)
            classLoading.setJava2ClassLoadingCompliance(this.java2ClassLoadingCompliance);
         metaData.setClassLoading(classLoading);

         // Build the context root if its not been set or is specified at the ear
         String webContext = metaData.getContextRoot();
         webContext = buildWebContext(webContext, warName, metaData, unit);
         metaData.setContextRoot(webContext);

         AbstractWarDeployment deployment = getDeployment(unit, metaData);
         deployment.setMainDeployer(mainDeployer);
         // TODO: until deployment is a MC bean
         deployment.setPersistenceUnitDependencyResolver(persistenceUnitDependencyResolver);
         deployWebModule(unit, metaData, deployment);
      }
      catch (Exception e)
      {
         throw new DeploymentException("Failed to create web module", e);
      }
   }
View Full Code Here

      if (meta == null)
         return;

      ManagedObject mo = ManagedObjectFactory.getInstance().createManagedObject(ContextMO.class);
      if (mo == null)
         throw new DeploymentException("could not create managed object");

      mo.getProperty("contextRoot").setValue(SimpleValueSupport.wrap(meta.getContextRoot()));
      managedObjects.put("ContextMO", mo);
   }
View Full Code Here

               {
                  sharedWebMetaData = (WebMetaData) unmarshaller.unmarshal(webXml, resolver);
               }
               catch (JBossXBException e)
               {
                  throw new DeploymentException("Error parsing shared web.xml", e);
               }
            }
            if (jbossWebXml != null)
            {
               try
               {
                  sharedJBossWebMetaData = (JBossWebMetaData) unmarshaller.unmarshal(jbossWebXml, resolver);
               }
               catch (JBossXBException e)
               {
                  throw new DeploymentException("Error parsing shared jboss-web.xml", e);
               }
            }
         }
      }
View Full Code Here

            log.debug("Failed to find deployer/deployment for war: " + warURL);
         }
      }
      catch (Exception e)
      {
         throw new DeploymentException("Error during stop", e);
      }
   }
View Full Code Here

            final ObjectName objName = new ObjectName(ejbMD.determineContainerName());
            return (EJBContainer) ejb3Deployment.getContainer(objName);
         }
         catch (MalformedObjectNameException e)
         {
            throw new DeploymentException(e);
         }
      }

      return null;
   }
View Full Code Here

         for (OrderingElementMetaData orderingElementMetaData : absoluteOrderingMetaData.getOrdering())
         {
            if (orderingElementMetaData.isOthers())
            {
               if (otherPos >= 0) {
                  throw new DeploymentException("Duplicate others in absolute ordering");
               }
               otherPos = i;
            }
            else
            {
View Full Code Here

            unit.addAttachment(name, createJMSBasicBean(unit, HornetQConnectionFactoryDeployment.class.getName(), name, config));
         }
      }
      catch (Exception e)
      {
         throw new DeploymentException (e.getMessage(), e);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.spi.DeploymentException

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.