portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r927004 - in /portals/jetspeed-2/portal/trunk: applications/jetspeed/src/main/webapp/WEB-INF/classes/META-INF/ applications/jetspeed/src/main/webapp/WEB-INF/classes/META-INF/cxf/ jetspeed-portal-resources/src/main/resources/assembly/
Date Wed, 24 Mar 2010 10:38:13 GMT
Author: woonsan
Date: Wed Mar 24 10:38:13 2010
New Revision: 927004

URL: http://svn.apache.org/viewvc?rev=927004&view=rev
Log:
JS2-1148: Adding Apache CXF logging logger configuration file instead of invoking System.setProperty()
because CXF's org.apache.cxf.common.logging.LogUtils initializes logger class statically.

Added:
    portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/classes/META-INF/
    portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/classes/META-INF/cxf/
    portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/classes/META-INF/cxf/org.apache.cxf.Logger
Modified:
    portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/resources/assembly/jetspeed-restful-services.xml

Added: portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/classes/META-INF/cxf/org.apache.cxf.Logger
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/classes/META-INF/cxf/org.apache.cxf.Logger?rev=927004&view=auto
==============================================================================
--- portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/classes/META-INF/cxf/org.apache.cxf.Logger
(added)
+++ portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/classes/META-INF/cxf/org.apache.cxf.Logger
Wed Mar 24 10:38:13 2010
@@ -0,0 +1,31 @@
+org.apache.cxf.common.logging.Log4jLogger
+
+#
+# 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.
+
+# ------------------------------------------------------------------------
+#
+# Apache CXF Logging Logger Configuration
+# 
+# Apache CXF uses the java.util.logging package by default.
+# To switch Apache CXF to instead use Log4J, the bootstrapping Apache CXF
+# logging logger configuration must be in the first line as above.
+# For details, refer to the official Apache CXF documentation or the javadoc
+# of org.apache.cxf.common.logging.LogUtils
+# 
+# $Id$
+#
+# ------------------------------------------------------------------------

Modified: portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/resources/assembly/jetspeed-restful-services.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/resources/assembly/jetspeed-restful-services.xml?rev=927004&r1=927003&r2=927004&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/resources/assembly/jetspeed-restful-services.xml
(original)
+++ portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/resources/assembly/jetspeed-restful-services.xml
Wed Mar 24 10:38:13 2010
@@ -19,19 +19,6 @@
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
   
-  <!-- To enable log4j logging instead of the default java logging of cxf. -->
-  <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
-    <meta key="j2:cat" value="default" />
-    <property name="targetClass" value="java.lang.System"/>
-    <property name="targetMethod" value="setProperty"/>
-    <property name="arguments">
-      <list>
-        <value>org.apache.cxf.Logger</value>
-        <value>org.apache.cxf.common.logging.Log4jLogger</value>
-      </list>
-    </property>
-  </bean>
-  
   <bean id="jacksonObjectMapper" class="org.codehaus.jackson.map.ObjectMapper">
     <meta key="j2:cat" value="default" />
   </bean>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message