mirror of
https://github.com/apache/openjpa.git
synced 2025-02-20 17:05:15 +00:00
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:
parent
037a45d7e4
commit
978bc40091
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user