openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r885955 - in /openjpa/trunk: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/meta/ openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ openjpa-kernel/src/main/resources/o...
Date Tue, 01 Dec 2009 21:46:29 GMT
Author: ppoddar
Date: Tue Dec  1 21:46:29 2009
New Revision: 885955

URL: http://svn.apache.org/viewvc?rev=885955&view=rev
Log:
Print class loader when metadata processing fails.

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java
    openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/meta/localizer.properties
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java
    openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/enhance/localizer.properties

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java?rev=885955&r1=885954&r2=885955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java
Tue Dec  1 21:46:29 2009
@@ -679,7 +679,7 @@
         if (!validate || cls.isInterface() 
             || repos.getPersistenceAware(cls) != null)
             return null;
-        throw new MetaDataException(_loc.get("no-meta", cls));
+        throw new MetaDataException(_loc.get("no-meta", cls, cls.getClassLoader()));
     }
 
     /**

Modified: openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/meta/localizer.properties
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/meta/localizer.properties?rev=885955&r1=885954&r2=885955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/meta/localizer.properties
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/meta/localizer.properties
Tue Dec  1 21:46:29 2009
@@ -305,7 +305,7 @@
 	Undropped mappings will not affect the system.
 no-drop-meta: The schema for type "{0}" may not be dropped, because its \
 	mapping could not be parsed.
-no-meta: Type "{0}" does not have persistence metadata.
+no-meta: Type "{0}" loaded by {1} does not have persistence metadata.
 bad-bk-file: Could not create a backup file for "{0}".
 running-all-classes: No targets were given.  Running on all classes listed in \
 	your configuration, or all persistent classes in the classpath if no \

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java?rev=885955&r1=885954&r2=885955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java
Tue Dec  1 21:46:29 2009
@@ -503,12 +503,12 @@
             for (int i = 0; i < interfaces.length; i++) {
                 if (interfaces[i].getName().equals(PCTYPE.getName())) {
                     if (_log.isInfoEnabled())
-                        _log.info(_loc.get("pc-type", _managedType.getType()));
+                        _log.info(_loc.get("pc-type", _managedType.getType(), _managedType.getType().getClassLoader()));
                     return ENHANCE_NONE;
                 }
             }
             if (_log.isInfoEnabled())
-                _log.info(_loc.get("enhance-start", _managedType.getType()));
+                _log.info(_loc.get("enhance-start", _managedType.getType(), _managedType.getType().getClassLoader()));
 
 
             configureBCs();
@@ -537,7 +537,7 @@
             }
 
             if (_log.isWarnEnabled())
-                _log.warn(_loc.get("pers-aware", _managedType.getType()));
+                _log.warn(_loc.get("pers-aware", _managedType.getType(), _managedType.getType().getClassLoader()));
             return ENHANCE_AWARE;
         } catch (OpenJPAException ke) {
             throw ke;

Modified: openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/enhance/localizer.properties
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/enhance/localizer.properties?rev=885955&r1=885954&r2=885955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/enhance/localizer.properties
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/enhance/localizer.properties
Tue Dec  1 21:46:29 2009
@@ -39,7 +39,7 @@
 detach-custom-extern: Type "{0}" is set to detach on serialize, but implements \
 	a custom readExternal and/or writeExternal method.  You cannot use custom \
 	serialization with detachment. 
-enhance-start: Enhancing type "{0}".
+enhance-start: Enhancing type "{0}" loaded by {1}.
 runtime-optimization-disabled: This configuration disallows runtime \
     optimization, but the following listed types were not enhanced at build \
     time or at class load time with a javaagent: "{0}".
@@ -54,8 +54,8 @@
     eagerly instead.
 redefine-types: Redefining {0} using Java 5 type redefinition.
 retransform-types: Redefining {0} using Java 6 type retransformation.
-pc-type: Type "{0}" is already persistence capable; skipping.
-pers-aware: Type "{0}" has no metadata; enhancing as persistence aware. \
+pc-type: Type "{0}" loaded by {1} is already persistence capable; skipping.
+pers-aware: Type "{0}" loaded by {1} has no metadata; enhancing as persistence aware. \
 	If you intended for "{0}" to be persistence-capable, then this means that \
 	OpenJPA could not find any metadata for "{0}". This can happen if the \
 	directory containing your metadata is not in your CLASSPATH, or if your \



Mime
View raw message