Examples of DeploymentException


Examples of org.jboss.deployers.spi.DeploymentException

      return clazz.getMethod(setter, method.getReturnType());
    } catch (NoSuchMethodException e) {
      try {
        return clazz.getMethod(method.getName(), method.getReturnType());
      } catch (NoSuchMethodException e1) {
        throw new DeploymentException(RuntimePlugin.Util.getString("no_set_method", setter, method.getName())); //$NON-NLS-1$
      }
    }
  }
View Full Code Here

Examples of org.jboss.deployers.spi.DeploymentException

    for (Object anObj : group) {
      if (anObj instanceof TranslatorMetaData) {
        TranslatorMetaData data = (TranslatorMetaData)anObj;
        String translatorName = data.getName();
        if (translatorName == null) {
          throw new DeploymentException(RuntimePlugin.Util.getString("name_not_found", unit.getName())); //$NON-NLS-1$
        }
       
        // fill with default properties for the tooling to see the properties
        Properties props = TranslatorUtil.getTranslatorPropertiesAsProperties(data.getExecutionFactoryClass());
        data.setProperties(props);
View Full Code Here

Examples of org.jboss.deployers.spi.DeploymentException

      if (anObj instanceof TranslatorMetaData) {
        TranslatorMetaData data = (TranslatorMetaData)anObj;
       
        ManagedObject mo = this.mof.initManagedObject(data, TranslatorMetaData.class, data.getName(),data.getName());
        if (mo == null) {
          throw new DeploymentException("could not create managed object"); //$NON-NLS-1$
        }
        managedObjects.put(mo.getName(), mo);
       
      }
    }
View Full Code Here

Examples of org.jboss.deployers.spi.DeploymentException

        if (mp.getValue() != null) {
          dsProp.setValue(mp.getValue());
        }
       
        if(mp.isMandatory() && mp.getValue() == null && mp.getDefaultValue() == null) {
          throw new DeploymentException(RuntimePlugin.Util.getString("required_property_not_exists", mp.getName())); //$NON-NLS-1$
        }
      }
    } 
   
    group.addTranslator(translator);
View Full Code Here

Examples of org.jboss.deployers.spi.DeploymentException

        // Create the context for the deployment associated with
        // the deployment descriptor's parent container
        createContext(sc, new String[]{"."});
      }
    } catch (Exception e) {
      throw new DeploymentException(e);
    }
   
    return(ret);
  }
View Full Code Here

Examples of org.jboss.deployers.spi.DeploymentException

            }
          }
        }
 
      } catch (Exception e) {
        throw new DeploymentException("Failed to explode deployment unit '"+root+"'", e);
      }
    }
  }
View Full Code Here

Examples of org.jboss.deployers.spi.DeploymentException

            }
          }
        }

      } catch (Exception e) {
        throw new DeploymentException("Failed to explode deployment unit '"+root+"'", e);
      }     
    }
  }
View Full Code Here

Examples of org.jboss.deployers.spi.DeploymentException

        // Create the context for the deployment associated with
        // the deployment descriptor's parent container
        createContext(sc);               
      }
    } catch (Exception e) {
      throw new DeploymentException(e);
    }
   
    return(ret);
  }
View Full Code Here

Examples of org.jboss.deployers.spi.DeploymentException

                 deployment.addInjector(injector);
             }
         }
         catch (Throwable throwable)
         {
            throw new DeploymentException(throwable);
         }
      }
   }
View Full Code Here

Examples of org.jboss.deployers.spi.DeploymentException

   }

   public void deployInternal(DeploymentUnit unit, BootstrapInfo info) throws DeploymentException
   {
      if (info.getEjbServices() == null)
         throw new DeploymentException("Missing ejb services value: " + unit);

      if (isRelevant(unit) == false)
         return;

      BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(DeployersUtils.getDeploymentBeanName(unit), getDeploymentClass().getName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.