Package org.jboss.arquillian.spi

Examples of org.jboss.arquillian.spi.LifecycleException


               containerConfig.getDeploymentUsername(),
               containerConfig.getDeploymentPassword());
      }
      catch (Exception e)
      {
         throw new LifecycleException("Could not connect to container", e);
      }
   }
View Full Code Here


      {
         releaseDeploymentManager();
      }
      catch (Exception e)
      {
         throw new LifecycleException("Could not release deployment manager", e);
      }
   }
View Full Code Here

    protected void stopInternal(Context context) throws LifecycleException {
        try {
            if (server != null)
                server.stop();
        } catch (Exception e) {
            throw new LifecycleException("Could not stop container", e);
        }
    }
View Full Code Here

            throw handleStartThrowable(((InvocationTargetException) th).getTargetException());

        if (th instanceof RuntimeException)
            throw (RuntimeException) th;

        return new LifecycleException("Could not start container", th);
    }
View Full Code Here

         server.setConnectors(new Connector[] { connector });
         server.start();
      }
      catch (Exception e)
      {
         throw new LifecycleException("Could not start container", e);
      }
   }
View Full Code Here

      {
         server.stop();
      }
      catch (Exception e)
      {
         throw new LifecycleException("Could not stop container", e);
      }
   }
View Full Code Here

      {
         context.get(JBossASEmbeddedServer.class).start();
      }
      catch (Exception e)
      {
         throw new LifecycleException("Could not start container", e);
      }
   }
View Full Code Here

      {
         context.get(JBossASEmbeddedServer.class).stop();
      }
      catch (Exception e)
      {
         throw new LifecycleException("Could not stop container", e);
      }
   }
View Full Code Here

      {
         server.start();
      }
      catch (final Exception e)
      {
         throw new LifecycleException("Error in starting the Microcontainer server " + server, e);
      }

      // Install the ShrinkWrapDeployer
      final URL shrinkwrapDeployerJBossBeans = Thread.currentThread().getContextClassLoader()
            .getResource(FILENAME_SHRINKWRAP_DEPLOYER_XML);
      assert shrinkwrapDeployerJBossBeans != null : "ShrinkWrap Deployer beans XML not found";
      final MainDeployer mainDeployer = (MainDeployer) server.getKernel().getController()
            .getContextByClass(MainDeployer.class).getTarget();
      final VirtualFile file;
      try
      {
         file = VFS.getChild(shrinkwrapDeployerJBossBeans);
      }
      catch (final URISyntaxException e)
      {
         throw new LifecycleException("Could not create virtual file for " + shrinkwrapDeployerJBossBeans, e);
      }
      if (file == null)
      {
         throw new IllegalStateException();
      }
      final VFSDeployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(file);
      try
      {
         mainDeployer.addDeployment(deployment);
         mainDeployer.process();
         mainDeployer.checkComplete();
      }
      catch (final org.jboss.deployers.spi.DeploymentException de)
      {
         throw new LifecycleException("Could not install ShrinkWrapDeployer", de);
      }

      // Get the ShrinkWrapDeployer
      final ShrinkWrapDeployer deployer = (ShrinkWrapDeployer) server.getKernel().getController()
            .getInstalledContext(NAME_MC_SHRINKWRAP_DEPLOYER).getTarget();
View Full Code Here

         {
            server.stop();
         }
         catch (final Exception e)
         {
            throw new LifecycleException("Error in stopping the Microcontainer server " + server, e);
         }
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.spi.LifecycleException

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.