Package org.apache.jackrabbit.test

Examples of org.apache.jackrabbit.test.RepositoryStubException


                        new ByteArrayInputStream(buffer.toByteArray()));
                LocalAdapterFactory laf = new ClientAdapterFactory();
                repository =
                    laf.getRepository((RemoteRepository) ois.readObject());
            } catch (Exception e) {
                throw new RepositoryStubException(e);
            }
        }
        return repository;
    }
View Full Code Here


                    public RepositoryService getRepositoryService() {
                        return service;
                    }
                });
            } catch (Exception e) {
                throw new RepositoryStubException(e);
            }
        }
        return repository;
    }
View Full Code Here

                RegistryHelper.registerRepository(ctx, repName, repConfig, repHome, true);

                repository = (Repository) ctx.lookup(repName);
            } catch (Exception e) {
                e.printStackTrace();
                throw new RepositoryStubException(e.toString());
            }
        }
        return repository;
    }
View Full Code Here

                InitialContext ctx = new InitialContext(env);
                RegistryHelper.registerRepository(ctx, repName, repConfig, repHome, true);

                repository = (Repository) ctx.lookup(repName);
            } catch (Exception e) {
                throw new RepositoryStubException(e.toString());
            }
        }
        return repository;
    }
View Full Code Here

                        new ByteArrayInputStream(buffer.toByteArray()));
                LocalAdapterFactory laf = new ClientAdapterFactory();
                repository =
                    laf.getRepository((RemoteRepository) ois.readObject());
            } catch (Exception e) {
                throw new RepositoryStubException(e.getMessage());
            }
        }
        return repository;
    }
View Full Code Here

            }

            return getOrCreateRepository(dir, xml);

        } catch (Exception e) {
            RepositoryStubException exception =
                    new RepositoryStubException("Failed to start repository");
            exception.initCause(e);
            throw exception;
        }
    }
View Full Code Here

            try {
                server.start();
            } catch (Exception e) {
                e.printStackTrace();
                throw new RepositoryStubException(e.getMessage());
            }
        }

        if (client == null) {
            try {
                client = JcrUtils.getRepository(
                        "http://localhost:" + connector.getLocalPort() + "/");
            } catch (Exception e) {
                e.printStackTrace();
                throw new RepositoryStubException(e.getMessage());
            }
        }

        return client;
    }
View Full Code Here

                    public RepositoryService getRepositoryService() {
                        return service;
                    }
                });
            } catch (Exception e) {
                throw new RepositoryStubException(e.toString());
            }
        }
        return repository;
    }
View Full Code Here

                    public RepositoryService getRepositoryService() {
                        return service;
                    }
                });
            } catch (RepositoryException e) {
                RepositoryStubException ex = new RepositoryStubException(e.getMessage());
                ex.initCause(e);
                throw ex;
            }
        }
        return repo;
    }
View Full Code Here

            Repository r = cfd.getRepository(repositoryURI);
            //log.info("Acquired repository via RMI.");
            return r;
        } catch (Exception e) {
            //log.error("Error while retrieving repository using RMI: " + e);
            throw new RepositoryStubException(e.getMessage());
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.test.RepositoryStubException

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.