Package org.jboss.arquillian.spi.client.container

Examples of org.jboss.arquillian.spi.client.container.LifecycleException


      {
         releaseDeploymentManager();
      }
      catch (Exception e)
      {
         throw new LifecycleException("Could not release deployment manager", e);
      }
   }
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

         if (getInstalledBundle(bundles, "arquillian-protocol-jmx-osgi-bundle") == null)
            installBundle("arquillian-protocol-jmx-osgi-bundle", true);
      }
      catch (BundleException ex)
      {
         throw new LifecycleException("Cannot start embedded OSGi Framework", ex);
      }
   }
View Full Code Here

      {
         throw rte;
      }
      catch (Exception ex)
      {
         throw new LifecycleException("Cannot stop embedded OSGi Framework", ex);
      }
   }
View Full Code Here

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

      {
         removeFailedUnDeployments();
      }
      catch (Exception e)
      {
         throw new LifecycleException("Could not clean up", e);
      }
   }
View Full Code Here

         assembler = (OpenEJBAssembler) SystemInstance.get().getComponent(Assembler.class);
         config = (ShrinkWrapConfigurationFactory) assembler.getConfigurationFactory();
      }
      catch (final Exception e)
      {
         throw new LifecycleException("Could not configure the OpenEJB Container", e);
      }

      // Set
      this.assembler = assembler;
      this.config = config;
View Full Code Here

      try
      {
         Server server = manager.getServer(configuration.getProfileName());
         if(ServerController.isServerStarted(server))
         {
            throw new LifecycleException(
                  "The server is already running! " +
                  "Managed containers does not support connecting to running server instances due to the " +
                  "possible harmfull effect of connecting to the wrong server. Please stop server before running or " +
                  "change to another type of container.");
         }
        
         manager.startServer(server.getName());
         initProfileService(server);
      }
      catch (Exception e)
      {
         throw new LifecycleException("Could not start remote container", e);
      }
   }
View Full Code Here

   public void stop() throws LifecycleException
   {
      Server server = manager.getServer(configuration.getProfileName());
      if(!server.isRunning())
      {
         throw new LifecycleException("Can not stop server. Server is not started");
      }
      try
      {
         removeFailedUnDeployments();
      }
      catch (Exception e)
      {
         throw new LifecycleException("Could not clean up failed undeployments", e);
      }
     
      try
      {
         manager.stopServer(server.getName());
      }
      catch (Exception e)
      {
         throw new LifecycleException("Could not stop server", e);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.spi.client.container.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.