tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1196109 - in /openejb/trunk/openejb: assembly/tomee/tomee-embedded/src/main/java/org/apache/tomee/embedded/Container.java container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentLoader.java
Date Tue, 01 Nov 2011 16:39:25 GMT
Author: rmannibucau
Date: Tue Nov  1 16:39:24 2011
New Revision: 1196109

URL: http://svn.apache.org/viewvc?rev=1196109&view=rev
Log:
faces config file can be null, it is not always an error

Modified:
    openejb/trunk/openejb/assembly/tomee/tomee-embedded/src/main/java/org/apache/tomee/embedded/Container.java
    openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentLoader.java

Modified: openejb/trunk/openejb/assembly/tomee/tomee-embedded/src/main/java/org/apache/tomee/embedded/Container.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/assembly/tomee/tomee-embedded/src/main/java/org/apache/tomee/embedded/Container.java?rev=1196109&r1=1196108&r2=1196109&view=diff
==============================================================================
--- openejb/trunk/openejb/assembly/tomee/tomee-embedded/src/main/java/org/apache/tomee/embedded/Container.java
(original)
+++ openejb/trunk/openejb/assembly/tomee/tomee-embedded/src/main/java/org/apache/tomee/embedded/Container.java
Tue Nov  1 16:39:24 2011
@@ -44,6 +44,7 @@ import org.apache.velocity.Template;
 import org.apache.velocity.VelocityContext;
 import org.apache.velocity.app.Velocity;
 import org.apache.velocity.runtime.log.Log4JLogChute;
+import org.apache.velocity.runtime.log.NullLogChute;
 import org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader;
 
 import javax.naming.Context;
@@ -287,7 +288,7 @@ public class Container {
     }
 
     private void copyTemplateTo(File targetDir, String filename) throws Exception {
-        Velocity.setProperty(Velocity.RUNTIME_LOG_LOGSYSTEM, new Log4JLogChute());
+        Velocity.setProperty(Velocity.RUNTIME_LOG_LOGSYSTEM, new NullLogChute());
         Velocity.setProperty(Velocity.RESOURCE_LOADER, "class");
         Velocity.setProperty("class.resource.loader.description", "Velocity Classpath Resource
Loader");
         Velocity.setProperty("class.resource.loader.class", ClasspathResourceLoader.class.getName());

Modified: openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentLoader.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentLoader.java?rev=1196109&r1=1196108&r2=1196109&view=diff
==============================================================================
--- openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentLoader.java
(original)
+++ openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentLoader.java
Tue Nov  1 16:39:24 2011
@@ -976,7 +976,7 @@ public class DeploymentLoader implements
                     }
                 }
             } else if (foundContextParam == null) {
-                logger.error("faces config file is null");
+                logger.info("faces config file is null");
             }
         }
 



Mime
View raw message