Examples of PersistenceDescriptorParserException


Examples of org.apache.aries.jpa.container.parsing.PersistenceDescriptorParserException

          parser.parse(is, handler);
          persistenceUnits.addAll(handler.getPersistenceUnits());
        }
      }
    } catch (Exception e) {
      throw new PersistenceDescriptorParserException("There was an error parsing " + descriptor.getLocation()
          + " in bundle " + b.getSymbolicName() + "_" + b.getVersion(), e);
    } finally {
      if(is != null) try {
        is.close();
      } catch (IOException e) {
        //No logging necessary, just consume
      }
    }
    if(!!!schemaFound) {
    throw new PersistenceDescriptorParserException("No Schema could be located for the" +
        "persistence descriptor " + descriptor.getLocation()
        + " in bundle " + b.getSymbolicName() + "_" + b.getVersion());
    }
    return persistenceUnits;
  }
View Full Code Here

Examples of org.apache.aries.jpa.container.parsing.PersistenceDescriptorParserException

          parser.parse(is, handler);
          persistenceUnits.addAll(handler.getPersistenceUnits());
        }
      }
    } catch (Exception e) {
      throw new PersistenceDescriptorParserException("There was an error parsing " + descriptor.getLocation()
          + " in bundle " + b.getSymbolicName() + "_" + b.getVersion(), e);
    } finally {
      if(is != null) try {
        is.close();
      } catch (IOException e) {
        //No logging necessary, just consume
      }
    }
    if(!!!schemaFound) {
    throw new PersistenceDescriptorParserException("No Schema could be located for the" +
        "persistence descriptor " + descriptor.getLocation()
        + " in bundle " + b.getSymbolicName() + "_" + b.getVersion());
    }
    return persistenceUnits;
  }
View Full Code Here

Examples of org.apache.aries.jpa.container.parsing.PersistenceDescriptorParserException

          parser.parse(is, handler);
          persistenceUnits.addAll(handler.getPersistenceUnits());
        }
      }
    } catch (Exception e) {
      throw new PersistenceDescriptorParserException(NLS.MESSAGES.getMessage("persistence.description.parse.error", descriptor.getLocation(), b.getSymbolicName(), b.getVersion()), e);
    } finally {
      if(is != null) try {
        is.closeUnderlying();
      } catch (IOException e) {
        //No logging necessary, just consume
      }
    }
    if(!!!schemaFound) {
      throw new PersistenceDescriptorParserException(NLS.MESSAGES.getMessage("persistence.descriptor.schema.not.found", descriptor.getLocation(), b.getSymbolicName(), b.getVersion()));
    }
    return persistenceUnits;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.