JIRA: OPENJPA-14

Applied patch (with some minor corrections).  



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@433281 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
A. Abram White 2006-08-21 16:53:51 +00:00
parent 037a45d7e4
commit 978bc40091
3 changed files with 13 additions and 3 deletions

View File

@ -1285,8 +1285,12 @@ public class MetaDataRepository
}
public void endConfiguration() {
if (_factory == null)
setMetaDataFactory(_conf.newMetaDataFactoryInstance());
if (_factory == null) {
MetaDataFactory mdf = _conf.newMetaDataFactoryInstance();
if (mdf == null)
throw new MetaDataException(_loc.get("no-metadatafactory"));
setMetaDataFactory(mdf);
}
}
//////////////////

View File

@ -541,4 +541,7 @@ no-product-derivations: Your system is missing product derivations. Product \
specifications. You must have a META-INF/services/{0} file in your \
classpath listing the available derivation classes, and some listed class \
must be instantiable. Typically this file is bundled as part of the \
distribution. Have you unbundled it, or unbundled its listed classes?
distribution. Have you unbundled it, or unbundled its listed classes? \
If you are using ant, a common solution to this problem is to place \
the jar libraries of the OpenJPA distribution in the \
${user.home}/.ant/lib directory.

View File

@ -257,3 +257,6 @@ bad-fg-inclue: Attempt to include non-existent fetch group "{1}" in fetch \
group "{0}".
unknown-fg: Attempt to add fetch group "{0}" to type field "{1}" failed. \
This fetch group has not been defined.
no-metadatafactory: No configuration properties were found. If you are \
using Ant, please see the <properties> or <propertiesFile> attributes \
of the task''s nested <config> element.