You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by pc...@apache.org on 2007/01/24 09:55:27 UTC

svn commit: r499317 - /incubator/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/meta/localizer.properties

Author: pcl
Date: Wed Jan 24 00:55:26 2007
New Revision: 499317

URL: http://svn.apache.org/viewvc?view=rev&rev=499317
Log:
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.

Modified:
    incubator/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/meta/localizer.properties

Modified: incubator/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/meta/localizer.properties
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/meta/localizer.properties?view=diff&rev=499317&r1=499316&r2=499317
==============================================================================
--- incubator/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/meta/localizer.properties (original)
+++ incubator/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/meta/localizer.properties Wed Jan 24 00:55:26 2007
@@ -276,10 +276,12 @@
 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 <properties> or <propertiesFile> attributes \
-    of the task''s nested <config> 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 <properties> or <propertiesFile> \
+    attributes of the task''s nested <config> 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.