diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java index a56bf9553..bd5f16473 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java @@ -201,9 +201,7 @@ public class PersistenceProductDerivation // unexpected, but validation is optional, // so just log it as a warning conf.getConfigurationLog().warn( - _loc.get("vlem-creation-warn")); - // if tracing, log the exception details - conf.getConfigurationLog().trace(e); + _loc.get("vlem-creation-warn", e.getMessage())); } } } else { diff --git a/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/localizer.properties b/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/localizer.properties index c2aef7d06..68a7363d6 100644 --- a/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/localizer.properties +++ b/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/localizer.properties @@ -196,7 +196,8 @@ invalid-orderBy: This is not a valid OrderBy annotation. The property or \ dynamic-agent: OpenJPA dynamically loaded the class enhancer. Any classes \ that were not enhanced at build time will be enhanced when the are \ loaded by the JVM. -vlem-creation-warn: Failed to create the optional Validation Provider. +vlem-creation-warn: Could not create the optional validation provider. \ + Reason returned: "{0}" vlem-creation-error: A fatal error occurred while trying to \ - create the required Validation Provider. + create the required validation provider.