geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r1151595 - /geronimo/server/trunk/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java
Date Wed, 27 Jul 2011 19:10:32 GMT
Author: gawor
Date: Wed Jul 27 19:10:31 2011
New Revision: 1151595

URL: http://svn.apache.org/viewvc?rev=1151595&view=rev
Log:
log full exception is bundle fails to start

Modified:
    geronimo/server/trunk/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java

Modified: geronimo/server/trunk/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java?rev=1151595&r1=1151594&r2=1151595&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java
(original)
+++ geronimo/server/trunk/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java
Wed Jul 27 19:10:31 2011
@@ -22,6 +22,7 @@ import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.net.URI;
+import java.text.MessageFormat;
 import java.util.ArrayList;
 import java.util.Enumeration;
 import java.util.HashSet;
@@ -494,8 +495,10 @@ public class ApplicationGBean implements
             if (getFailOnStartError()) {
                 throw be;
             } else {
-                LOG.error("Error starting {} application. Bundle {} failed to start: {}",

-                           new Object[] { application.getApplicationMetadata().getApplicationScope(),
currentBundle, be });
+                String message = MessageFormat.format("Error starting {0} application. Bundle
{1} failed to start.", 
+                                                      application.getApplicationMetadata().getApplicationScope(),

+                                                      currentBundle);
+                LOG.error(message, be);
             }
         }        
     }    



Mime
View raw message