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

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


                if (arqVersion == null) {
                    arqVersion = System.getProperty("arquillian.osgi.version");
                }
                arqBundle = installBundle("org.jboss.arquillian.osgi", "arquillian-osgi-bundle", arqVersion, true);
            } catch (BundleException ex) {
                throw new LifecycleException("Cannot install arquillian-osgi-bundle", ex);
            }
        }
    }
View Full Code Here


            stopFramework();
            framework.waitForStop(3000);
        } catch (RuntimeException rte) {
            throw rte;
        } catch (Exception ex) {
            throw new LifecycleException("Cannot stop embedded OSGi Framework", ex);
        } finally {
            syscontext = null;
        }
    }
View Full Code Here

         }
         bindCommandRunner();
      }
      catch (Exception e)
      {
         throw new LifecycleException("Could not start GlassFish Embedded", e);
      }
      // Server needs to be started before we can deploy resources
      for(String resource : configuration.getResourcesXml())
      {
          try
View Full Code Here

         unbindCommandRunner();
         glassfish.stop();
      }
      catch (Exception e)
      {
         throw new LifecycleException("Could not stop GlassFish Embedded", e);
      }
   }
View Full Code Here

                // Obtain the value in the K=V pair
                result.add(kvPair[1]);
            }
            return result;
        } catch (Throwable ex) {
            throw new LifecycleException("Failed to read the HTTP listener configuration.", ex);
        }
    }
View Full Code Here

            String currentLine = lines[1];
            String[] kvPair = currentLine.split("=");
            // Obtain the value in the K=V pair
            return kvPair[1];
        } catch (Throwable ex) {
            throw new LifecycleException("Failed to read the HTTP listener configuration.", ex);
        }
    }
View Full Code Here

         glassfish.start();
         bindCommandRunner();
      }
      catch (Exception e)
      {
         throw new LifecycleException("Could not start GlassFish Embedded", e);
      }
      // Server needs to be started before we can deploy resources
      for(String resource : configuration.getSunResourcesXml())
      {
          try
View Full Code Here

         unbindCommandRunner();
         glassfish.stop();
      }
      catch (Exception e)
      {
         throw new LifecycleException("Could not stop GlassFish Embedded", e);
      }
   }
View Full Code Here

    @Override
    public void start() throws LifecycleException {
        try {
            initialContext = new InitialContext(properties);
        } catch (final NamingException e) {
            throw new LifecycleException("can't start the OpenEJB container", e);
        }

        assembler = SystemInstance.get().getComponent(Assembler.class);
        configurationFactory = (ConfigurationFactory) SystemInstance.get().getComponent(OpenEjbConfigurationFactory.class);
View Full Code Here

        try {
            if (initialContext != null) {
                initialContext.close();
            }
        } catch (final NamingException e) {
            throw new LifecycleException("can't close the OpenEJB container", e);
        } finally {
            OpenEJB.destroy();
        }
    }
View Full Code Here

TOP

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