Package org.jboss.deployment

Examples of org.jboss.deployment.DeploymentException


            final StringWriter sw = new StringWriter();
            XMLHelper.replaceSystemProperties(XMLHelper.getXMLStreamReader(in), XMLHelper.getXMLStreamWriter(sw));
            return sw.toString();
        } catch (XMLStreamException e)
        {
            throw new DeploymentException(e.getMessage(), e);
        } finally
        {
            try
            {
                in.close();
View Full Code Here


        {
            final StringReader sr = new StringReader(configuration);
            return ModelParser.getParser().parse(sr);
        } catch (final Exception ex)
        {
            throw new DeploymentException("Failed to parse jboss-esb.xml", ex);
        }
    }
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

            final File metaInf = file.getParentFile();
            final File deploymentRoot = metaInf.getParentFile();
            return getSchemasFromDirectory(deploymentRoot);
        }
       
        throw new DeploymentException("Unrecognized deployment : " + file + ".");
    }
View Full Code Here

                            final String filename = relativeURI.getPath();
                            schemasMap.put(filename, FileUtil.readTextFile(file));
                        }
                        catch (final IOException e)
                        {
                            throw new DeploymentException("IOException while trying to read xsd '" + file.getName() + "'", e);
                        }
                    }
                    else if (file.getName().endsWith(".jar"))
                    {
                        Map<String, String> schemasFromArchive = getSchemasFromArchive(file);
View Full Code Here

            zipInputStream = new ZipInputStream(new FileInputStream(archive));
            return JarUtil.extractStringContents(".xsd", zipInputStream);
        }
        catch (FileNotFoundException e)
        {
            throw new DeploymentException(e.getMessage(), e);
        }
        catch (IOException e)
        {
            throw new DeploymentException(e.getMessage(), e);
        }
        finally
        {
            closeStream(zipInputStream);
        }
View Full Code Here

  public void create(DeploymentInfo di) throws DeploymentException {
    try {
      String urlStr = di.url.getFile();
     
      if (jbiContainerMBean == null) {
        throw new DeploymentException(
            "The ServiceMix JBI container is not defined in Deployer");
      }
      log
          .info("ServiceMix deployer passing deployment to JBI container ["
              + di.url.toExternalForm() + "]");
      if (urlStr.endsWith(".jar") || urlStr.endsWith(".zip")) {
        getServer().invoke(jbiContainerMBean, "installArchive",
            new Object[] { di.url.toExternalForm() },
            new String[] { "java.lang.String" });
      } else {
        getServer().invoke(jbiContainerMBean, "installServiceMixXml",
            new Object[] { di.url.toExternalForm() },
            new String[] { "java.lang.String" });
      }
     
    } catch (Exception e) {
      throw new DeploymentException(
          "ServiceMix deployer unable to deploy: " + di, e);
    }
  }
View Full Code Here

      } else {
        // just watch the original URL
        di.watch = di.url;
      }
    } catch (Exception e) {
      throw new DeploymentException(e);
    }

    // invoke super-class initialization
    super.init(di);
  }
View Full Code Here

        {
            String err = JipletContainer.getInstance().createJ2eeContext(
                    di.url.getPath(), di.ucl);
            if (err.length() > 0)
            {
                throw new DeploymentException(err);
            }
        }
        catch (Exception ex)
        {
            throw new DeploymentException(ex);
        }

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

        {
            String err = JipletContainer.getInstance().deleteJ2eeContext(
                    di.url.getPath());
            if (err.length() > 0)
            {
                throw new DeploymentException(err);
            }

        }
        catch (Exception ex)
        {
            throw new DeploymentException(ex);
        }

        super.stop(di);
    }
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.