当webservice axis2遭遇log4j.xml悲剧发生了
引言:
?
??? 以axis2发布webservice时,如果用log4j.properties,一切正常。如果使用log4j.xml则控制台没完没了地打出大量的信息,这些信息片断如下:
?
警告: Could not get url for /javax/servlet/resources/web-app_2_5.xsd2011-6-23 18:10:09 org.apache.catalina.startup.HostConfig deployDescriptor信息: Deploying configuration descriptor ccxe.xml10:09,718:[<init>]setting web location string: E:\tomcat-6.0.24_1\webapps\ccxe10:09,968:[<init>]trying to load axis2.xml from module: /WEB-INF/conf/axis2.xml10:10,015:[getXMLInputFactory_perClassLoader]Created XMLInputFactory = class co.ctc.wstx.stax.WstxInputFactory for classloader=WebappClassLoader delegate: false repositories: /WEB-INF/classes/----------> Parent Classloader:org.apache.catalina.loader.StandardClassLoader@187aeca10:10,015:[getXMLInputFactory_perClassLoader]Size of XMLInputFactory map =110:10,062:[createXMLStreamReader]XMLStreamReader is com.ctc.wstx.sr.ValidatingSreamReader10:10,109:[debugParameterAdd]==================10:10,109:[debugParameterAdd] Parameter add on object org.apache.axis2.descripton.ParameterIncludeImpl@8de46210:10,109:[debugParameterAdd] Key =hotdeployment10:10,109:[debugParameterAdd] Value =true10:10,109:[debugParameterAdd] Value Class = java.lang.String10:10,109:[debugParameterAdd] Value Classloader = null10:10,125:[debugParameterAdd]Call Stack = DEBUG_FRAME = org.apache.axis2.util.JvaUtils.callStackToString(JavaUtils.java:564) DEBUG_FRAME = org.apache.axis2.description.ParameterIncludeImpl.debugPaameterAdd(ParameterIncludeImpl.java:316)
?
正文:
?
??? axis2的xml太疯狂了,还是axis2日志与引用者串门了?
?
??? 先用log4j.properties吧。回头再找原因吧。
?
?