当前位置: 代码迷 >> Web前端 >> 当webservice axis2遭遇log4j.xml悲剧产生了
  详细解决方案

当webservice axis2遭遇log4j.xml悲剧产生了

热度:186   发布时间:2012-10-10 13:58:11.0
当webservice axis2遭遇log4j.xml悲剧发生了

引言:

?

??? 以axis2发布webservice时,如果用log4j.properties,一切正常。如果使用log4j.xml则控制台没完没了地打出大量的信息,这些信息片断如下:

?

警告: Could not get url for /javax/servlet/resources/web-app_2_5.xsd
2011-6-23 18:10:09 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor ccxe.xml
10:09,718:[<init>]setting web location string: E:\tomcat-6.0.24_1\webapps\ccxe
10:09,968:[<init>]trying to load axis2.xml from module: /WEB-INF/conf/axis2.xml
10: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@187aeca

10:10,015:[getXMLInputFactory_perClassLoader]Size of XMLInputFactory map =1
10:10,062:[createXMLStreamReader]XMLStreamReader is com.ctc.wstx.sr.ValidatingS
reamReader
10:10,109:[debugParameterAdd]==================
10:10,109:[debugParameterAdd] Parameter add on object org.apache.axis2.descript
on.ParameterIncludeImpl@8de462
10:10,109:[debugParameterAdd]  Key =hotdeployment
10:10,109:[debugParameterAdd]  Value =true
10:10,109:[debugParameterAdd]  Value Class = java.lang.String
10:10,109:[debugParameterAdd]  Value Classloader = null
10:10,125:[debugParameterAdd]Call Stack = DEBUG_FRAME = org.apache.axis2.util.J
vaUtils.callStackToString(JavaUtils.java:564)
        DEBUG_FRAME = org.apache.axis2.description.ParameterIncludeImpl.debugPa
ameterAdd(ParameterIncludeImpl.java:316)

?

正文:

?

??? axis2的xml太疯狂了,还是axis2日志与引用者串门了?

?

??? 先用log4j.properties吧。回头再找原因吧。

?

?

  相关解决方案