Author: midon
Date: Mon Dec 22 16:36:11 2008
New Revision: 728832

URL: http://svn.apache.org/viewvc?rev=728832&view=rev
Log:
ODE-397: set explicitly the log4j file to be used to avoid loading Rampart file

Added:
    
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/test-log4j.properties
Modified:
    ode/branches/APACHE_ODE_1.X/Rakefile

Modified: ode/branches/APACHE_ODE_1.X/Rakefile
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/Rakefile?rev=728832&r1=728831&r2=728832&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/Rakefile (original)
+++ ode/branches/APACHE_ODE_1.X/Rakefile Mon Dec 22 16:36:11 2008
@@ -194,7 +194,7 @@
       end
     end
     
-    test.using :testng
+    test.using :testng, :properties=>{ "log4j.debug" => true,  
"log4j.configuration"=>"test-log4j.properties" }
     test.with projects("tools"), libs, AXIS2_TEST, AXIOM, JAVAX.servlet, 
Buildr::Jetty::REQUIRES, HIBERNATE, DOM4J
     test.setup task(:prepare_webapp) do |task|
       webapp_dir = "target/test-classes/webapp"

Added: 
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/test-log4j.properties
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/test-log4j.properties?rev=728832&view=auto
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/test-log4j.properties 
(added)
+++ 
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/test-log4j.properties 
Mon Dec 22 16:36:11 2008
@@ -0,0 +1,34 @@
+#
+#    Licensed to the Apache Software Foundation (ASF) under one or more
+#    contributor license agreements.  See the NOTICE file distributed with
+#    this work for additional information regarding copyright ownership.
+#    The ASF licenses this file to You under the Apache License, Version 2.0
+#    (the "License"); you may not use this file except in compliance with
+#    the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+#
+
+# Set root logger level to WARN and its only appender to CONSOLE
+log4j.rootLogger=WARN, CONSOLE
+
+# log4j properties to work with commandline tools.
+log4j.category.org.mortbay=ERROR
+log4j.category.org.hibernate.type=WARN
+log4j.category.org.objectweb=ERROR
+log4j.category.org.apache.ode.axis2=DEBUG
+log4j.category.org.apache.ode.axis2.hooks.SessionInHandler=INFO
+log4j.category.org.apache.ode.bpel.engine=INFO
+log4j.category.org.apache.ode.daohib.bpel.CorrelatorDaoImpl=DEBUG
+log4j.category.org.apache.ode.bpel.epr=INFO
+
+# Console appender
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=%p - %C{1}.%M(%L) | %m%n


Reply via email to