From 6e079939b51e4f60070fe3e34232f4d49bc67c43 Mon Sep 17 00:00:00 2001 From: Patrick Linskey Date: Wed, 24 Jan 2007 08:55:26 +0000 Subject: [PATCH] improved error message. Yes, this message discusses concrete means for configuration that are not really in the purview of openjpa-kernel. But the benefit of directly mentioning the causes of the problem outweigh the coupling to the underlying configuration mechanisms, at least until we decide to move the error message generation to spec-dependent subtypes. git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@499317 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/openjpa/meta/localizer.properties | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/openjpa-kernel/src/main/resources/org/apache/openjpa/meta/localizer.properties b/openjpa-kernel/src/main/resources/org/apache/openjpa/meta/localizer.properties index a347c6ca5..3d072460a 100644 --- a/openjpa-kernel/src/main/resources/org/apache/openjpa/meta/localizer.properties +++ b/openjpa-kernel/src/main/resources/org/apache/openjpa/meta/localizer.properties @@ -276,10 +276,12 @@ not-non-mapped: Type "{0}" cannot be a non-mapped interface as the class is \ non-mapped-pc: A non-mapped interface cannot also be mapped. no-metadatafactory: MetaDataFactory could not be configured \ (conf.newMetaDataFactoryInstance() returned null). This might mean that \ - no configuration properties were found. If you are \ - using Ant, please see the or attributes \ - of the task''s nested element. This can also occur if your \ - OpenJPA distribution jars are corrupt, or if your security policy is \ + no configuration properties were found. Ensure that you have a \ + META-INF/persistence.xml file, that it is available in your classpath, or \ + that the properties file you are using for configuration is available. \ + If you are using Ant, please see the or \ + attributes of the task''s nested element. This can also occur if \ + your OpenJPA distribution jars are corrupt, or if your security policy is \ overly strict. scanning-directory: Scanning directory "{0}" for persistent types. scanning-jar: Scanning jar "{0}" for persistent types.