Package org.jboss.deployment

Examples of org.jboss.deployment.DeploymentException


            destroy(di);
         }
         catch (DeploymentException ignore)
         {
         }
         throw new DeploymentException("Error during start of ESB Module: "
                 + di.url, e);
      }

      super.start(di);
   }
View Full Code Here


         {
            serviceController.stop(di.deployedObject);
         }
         catch (Exception e)
         {
            throw new DeploymentException("Error during stop of ESB Module: "
                    + di.url, e);
         }
      }
      super.stop(di);
   }
View Full Code Here

        // Setup the third constructor argument (vfs deployment unit).
        bmdBuilder.addConstructorParameter(VFSDeploymentUnit.class.getName(), deploymentUnit);
        if (warFilesDir == null)
        {
            final String errorMsg = String.format("No property named '%s' was configured in jbossesb.sar/META-INF/jboss-service.xml for %s", "warFilesDir", getClass().getName());
            throw new DeploymentException(errorMsg);
        }
       
        final File tmpDir = new File(warFilesDir);
        if (!tmpDir.exists())
        {
            final String errorMsg = String.format("The directory configured for %s='%s' does not exist.", "warFilesDir", tmpDir);
            throw new DeploymentException(errorMsg);
        }
        // Setup the fourth constructor argument (temp war directory).
        File esbWarFiles = JBossDeployerUtil.createDir(tmpDir, "esbwarfiles");
        bmdBuilder.addConstructorParameter(File.class.getName(), esbWarFiles);
        // Add management annotation.
View Full Code Here

        {
            esbConfigFiles = file.getChildrenRecursively(configFileFilter);
        }
        catch (final IOException e)
        {
            throw new DeploymentException(e.getMessage(), e);
        }

        if (esbConfigFiles.size() == 0)
        {
            throw new DeploymentException("No JBossESB configuration could be located the archive '" + file + "'");
        }
        else if (esbConfigFiles.size() > 1)
        {
            throw new DeploymentException("Only one JBossESB configuration can exist in an archive. Please check '" + file + "'");
        }
        else
        {
            return esbConfigFiles.get(0);
        }
View Full Code Here

                }
            }
        }
        catch (final IOException e)
        {
            throw new DeploymentException(e.getMessage(), e);
        }
        return dependencies;
    }
View Full Code Here

                    ObjectName on = ObjectNameConverter.convert(canonicalName);
                    deps.add(on) ;
                }
                catch (MalformedObjectNameException e)
                {
                    throw new DeploymentException(e.getMessage(), e);
                }
            }
        }
        return deps;
    }
View Full Code Here

            serviceController.destroy(di.deployedObject);
            server.unregisterMBean(di.deployedObject);
         }
         catch (Exception e)
         {
            throw new DeploymentException("Error during stop of ESB Module: "
                    + di.url, e);
         }
      }
      super.destroy(di);
   }
View Full Code Here

                        publishers.add(publisher);
                    }
                }
                catch (final Exception ex)
                {
                    throw new DeploymentException("Failed to create webservice artifact", ex);
                }
            }
        }
    }
View Full Code Here

         //This model is used only to add the action dependecies, later the model is recreated after every destroy/create cycle.
         this.model = JBossDeployerUtil.getJbossEsbModel(this.jbossEsbXml);
      }
      catch (Exception e)
      {
         throw new DeploymentException("Error during create of ESB Module: "
                 + url, e);
      }
   }
View Full Code Here

         this.jbossEsbXml = JBossDeployerUtil.readEsbConfig(document.openStream());
         this.model = JBossDeployerUtil.getJbossEsbModel(jbossEsbXml);
      }
      catch (Exception e)
      {
         throw new DeploymentException("Error during create of ESB Module: "
                 + url, e);
      }
      ClassLoader old = Thread.currentThread().getContextClassLoader();
      try
      {
View Full Code Here

TOP

Related Classes of org.jboss.deployment.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.