wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r915976 - in /incubator/wink/trunk/wink-common/src/main: java/org/apache/wink/common/internal/application/ApplicationFileLoader.java resources/org/apache/wink/common/internal/i18n/resource.properties
Date Wed, 24 Feb 2010 20:58:00 GMT
Author: rott
Date: Wed Feb 24 20:58:00 2010
New Revision: 915976

URL: http://svn.apache.org/viewvc?rev=915976&view=rev
Log:
reduce logger noise

Modified:
    incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/application/ApplicationFileLoader.java
    incubator/wink/trunk/wink-common/src/main/resources/org/apache/wink/common/internal/i18n/resource.properties

Modified: incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/application/ApplicationFileLoader.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/application/ApplicationFileLoader.java?rev=915976&r1=915975&r2=915976&view=diff
==============================================================================
--- incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/application/ApplicationFileLoader.java
(original)
+++ incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/application/ApplicationFileLoader.java
Wed Feb 24 20:58:00 2010
@@ -88,7 +88,7 @@
      * @throws FileNotFoundException - if file is not found
      */
     public ApplicationFileLoader(String appConfigFile) throws FileNotFoundException {
-        logger.info(Messages.getMessage("loadingApplication"), appConfigFile);
+        logger.debug(Messages.getMessage("loadingApplication"), appConfigFile); //$NON-NLS-1$
         loadClasses(FileLoader.loadFileAsStream(appConfigFile));
     }
 
@@ -120,7 +120,9 @@
 
                 Class<?> cls = null;
                 try {
-                    // use ClassUtils.loadClass instead of Class.forName so we have classloader
visibility into the Web module in J2EE environments
+                    // use ClassUtils.loadClass instead of Class.forName so we
+                    // have classloader visibility into the Web module in J2EE
+                    // environments
                     cls = ClassUtils.loadClass(line);
                     if (ResourceMetadataCollector.isStaticResource(cls) || ProviderMetadataCollector
                         .isProvider(cls)) {
@@ -130,7 +132,9 @@
                         logger.warn(Messages.getMessage("classNotAResourceNorProvider"),
cls);
                     }
                 } catch (ClassNotFoundException e) {
-                    logger.error(Messages.getMessage("isNotAClass"), line);
+                    logger.debug("ClassNotFoundException while loading class", e); //$NON-NLS-1$
+                } catch (NoClassDefFoundError e) {
+                    logger.debug(Messages.getMessage("classInstantiationExceptionWithMsgFormat",
e), e); //$NON-NLS-1$
                 }
             }
         } catch (IOException e) {

Modified: incubator/wink/trunk/wink-common/src/main/resources/org/apache/wink/common/internal/i18n/resource.properties
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-common/src/main/resources/org/apache/wink/common/internal/i18n/resource.properties?rev=915976&r1=915975&r2=915976&view=diff
==============================================================================
--- incubator/wink/trunk/wink-common/src/main/resources/org/apache/wink/common/internal/i18n/resource.properties
(original)
+++ incubator/wink/trunk/wink-common/src/main/resources/org/apache/wink/common/internal/i18n/resource.properties
Wed Feb 24 20:58:00 2010
@@ -22,8 +22,8 @@
 classAlreadyAdded=The class {} was already added. Ignored.
 classNotValid=The class {} may only have one of the following declarations: {}, {}, {}
 classIsUnknownProvider=Annotated @Provider class does not implement a recognized Provider
interface: {}
-isNotAClass={} is not a class. Ignoring.
-isNotAClassWithMsgFormat={0} is not a class. Ignoring.
+isNotAClass={} is not a class or the class has unresolved dependencies. Ignoring.
+isNotAClassWithMsgFormat={0} is not a class or the class has unresolved dependencies. Ignoring.
 resourceClassNotValid=The resource class {} is not a valid resource. Ignoring.
 classInstantiationException=Failed to instantiate class {}.
 classInstantiationExceptionWithMsgFormat=Failed to instantiate class {0}.



Mime
View raw message