You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by gd...@apache.org on 2001/09/05 14:11:25 UTC

cvs commit: xml-axis/java/src/org/apache/axis/utils Admin.java

gdaniels    01/09/05 05:11:25

  Modified:    java/samples/transport/tcp TCPSender.java
               java/src/org/apache/axis AxisEngine.java
                        FaultableHandler.java Message.java SimpleChain.java
                        SimpleTargetedChain.java
               java/src/org/apache/axis/client AxisClient.java
                        ServiceClient.java
               java/src/org/apache/axis/encoding BeanSerializer.java
               java/src/org/apache/axis/handlers BasicHandler.java
                        DebugHandler.java EchoHandler.java
                        ErrorHandler.java JWSHandler.java JWSProcessor.java
                        LogHandler.java LogMessage.java
                        SimpleAuthenticationHandler.java
                        SimpleAuthorizationHandler.java
               java/src/org/apache/axis/handlers/http
                        HTTPActionHandler.java HTTPAuthHandler.java
                        URLMapper.java
               java/src/org/apache/axis/handlers/soap SOAPService.java
               java/src/org/apache/axis/providers/java JavaProvider.java
                        MsgProvider.java RPCProvider.java
               java/src/org/apache/axis/registries SupplierRegistry.java
               java/src/org/apache/axis/server AxisServer.java
                        Transport.java
               java/src/org/apache/axis/suppliers FactorySupplier.java
                        SimpleChainSupplier.java TargetedChainSupplier.java
               java/src/org/apache/axis/transport/http HTTPSender.java
               java/src/org/apache/axis/transport/local LocalResponder.java
                        LocalSender.java
               java/src/org/apache/axis/utils Admin.java
  Log:
  1st half of switchover to log4j.
  
  For now, I made a guess as to which Debug.Print()s should be
  info(), debug(), and error() calls in log4j.  We should take a look at
  these and make sure they're about accurate.  I'll finish converting
  later today, and then get rid of the trusty Debug class.
  
  One thing we really need to figure out is how best to initialize the
  log4j package.  Right now I'm calling the BasicConfigurator and then
  manually setting the root-level priority to FATAL so we don't see
  any messags by default.  We need to be using the property based
  configurator, but I want to make sure we do it right.
  
  I tagged the tree before this change, so its easy to roll back if we have
  problems with it.
  
  Revision  Changes    Path
  1.5       +125 -121  xml-axis/java/samples/transport/tcp/TCPSender.java
  
  Index: TCPSender.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/transport/tcp/TCPSender.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TCPSender.java	2001/08/29 14:17:14	1.4
  +++ TCPSender.java	2001/09/05 12:11:23	1.5
  @@ -1,57 +1,57 @@
   /*
  - * The Apache Software License, Version 1.1
  - *
  - *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  - * reserved.
  - *
  - * Redistribution and use in source and binary forms, with or without
  - * modification, are permitted provided that the following conditions
  - * are met:
  - *
  - * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer.
  - *
  - * 2. Redistributions in binary form must reproduce the above copyright
  - *    notice, this list of conditions and the following disclaimer in
  - *    the documentation and/or other materials provided with the
  - *    distribution.
  - *
  - * 3. The end-user documentation included with the redistribution,
  - *    if any, must include the following acknowledgment:
  - *       "This product includes software developed by the
  - *        Apache Software Foundation (http://www.apache.org/)."
  - *    Alternately, this acknowledgment may appear in the software itself,
  - *    if and wherever such third-party acknowledgments normally appear.
  - *
  - * 4. The names "Axis" and "Apache Software Foundation" must
  - *    not be used to endorse or promote products derived from this
  - *    software without prior written permission. For written
  - *    permission, please contact apache@apache.org.
  - *
  - * 5. Products derived from this software may not be called "Apache",
  - *    nor may "Apache" appear in their name, without prior written
  - *    permission of the Apache Software Foundation.
  - *
  - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  - * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  - * SUCH DAMAGE.
  - * ====================================================================
  - *
  - * This software consists of voluntary contributions made by many
  - * individuals on behalf of the Apache Software Foundation.  For more
  - * information on the Apache Software Foundation, please see
  - * <http://www.apache.org/>.
  - */
  +* The Apache Software License, Version 1.1
  +*
  +*
  +* Copyright (c) 2001 The Apache Software Foundation.  All rights
  +* reserved.
  +*
  +* Redistribution and use in source and binary forms, with or without
  +* modification, are permitted provided that the following conditions
  +* are met:
  +*
  +* 1. Redistributions of source code must retain the above copyright
  +*    notice, this list of conditions and the following disclaimer.
  +*
  +* 2. Redistributions in binary form must reproduce the above copyright
  +*    notice, this list of conditions and the following disclaimer in
  +*    the documentation and/or other materials provided with the
  +*    distribution.
  +*
  +* 3. The end-user documentation included with the redistribution,
  +*    if any, must include the following acknowledgment:
  +*       "This product includes software developed by the
  +*        Apache Software Foundation (http://www.apache.org/)."
  +*    Alternately, this acknowledgment may appear in the software itself,
  +*    if and wherever such third-party acknowledgments normally appear.
  +*
  +* 4. The names "Axis" and "Apache Software Foundation" must
  +*    not be used to endorse or promote products derived from this
  +*    software without prior written permission. For written
  +*    permission, please contact apache@apache.org.
  +*
  +* 5. Products derived from this software may not be called "Apache",
  +*    nor may "Apache" appear in their name, without prior written
  +*    permission of the Apache Software Foundation.
  +*
  +* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  +* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  +* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  +* DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  +* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  +* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  +* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  +* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  +* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  +* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  +* SUCH DAMAGE.
  +* ====================================================================
  +*
  +* This software consists of voluntary contributions made by many
  +* individuals on behalf of the Apache Software Foundation.  For more
  +* information on the Apache Software Foundation, please see
  +* <http://www.apache.org/>.
  +*/
   
   package samples.transport.tcp;
   
  @@ -67,6 +67,7 @@
   import org.apache.axis.handlers.BasicHandler;
   import org.apache.axis.transport.http.NonBlockingBufferedInputStream;
   import org.apache.axis.encoding.Base64 ;
  +import org.apache.log4j.Category;
   
   import org.w3c.dom.* ;
   
  @@ -77,74 +78,77 @@
    * @author Doug Davis (dug@us.ibm.com)
    */
   public class TCPSender extends BasicHandler {
  -  public void invoke(MessageContext msgContext) throws AxisFault {
  -    Debug.Print( 0, "Enter: TCPSender::invoke" );
  -    /* Find the service we're invoking so we can grab it's options */
  -    /***************************************************************/
  -    String   targetURL = null ;
  -    Message  outMsg    = null ;
  -    String   reqEnv    = null ;
  -
  -    targetURL = msgContext.getStrProp( MessageContext.TRANS_URL);
  -    try {
  -      String   host   = msgContext.getStrProp(TCPTransport.HOST);
  -      int      port   = Integer.parseInt(msgContext.getStrProp(TCPTransport.PORT));
  -      byte[]   buf    = new byte[4097];
  -      int      rc     = 0 ;
  -
  -      Socket             sock = null ;
  -
  -      sock    = new Socket( host, port );
  -      Debug.Print( 1, "Created an insecure HTTP connection");
  -
  -      reqEnv  = (String) msgContext.getRequestMessage().getAsString();
  -      
  -      //System.out.println("Msg: " + reqEnv);
  -
  -      BufferedInputStream inp = new BufferedInputStream(sock.getInputStream());
  -      OutputStream  out  = sock.getOutputStream();
  -      
  -      byte[] bytes = reqEnv.getBytes();
  -      String length = "" + bytes.length + "\r\n";
  -      out.write(length.getBytes());
  -      out.write( bytes );
  -      out.flush();
  -
  -      Debug.Print( 1, "XML sent:" );
  -      Debug.Print( 1, "---------------------------------------------------");
  -      Debug.Print( 1, reqEnv );
  -
  -      if ( Debug.getDebugLevel() > 8 ) {
  -        // Special case - if the debug level is this high then something
  -        // really bad must be going on - so just dump the input stream
  -        // to stdout.
  -        byte b;
  -        while ( (b = (byte) inp.read()) != -1 )
  -          System.err.print((char)b);
  -        System.err.println("");
  -      }
  -
  -      outMsg = new Message( inp );
  -      if (Debug.getDebugLevel() > 0) {
  -        Debug.Print( 1, "\nNo Content-Length" );
  -        Debug.Print( 1, "\nXML received:" );
  -        Debug.Print( 1, "-----------------------------------------------");
  -        Debug.Print( 1, (String) outMsg.getAsString() );
  -      }
  -      
  -      msgContext.setResponseMessage( outMsg );
  -    }
  -    catch( Exception e ) {
  -      Debug.Print( 1, e );
  -      e.printStackTrace();
  -      if ( !(e instanceof AxisFault) ) e = new AxisFault(e);
  -      throw (AxisFault) e ;
  +    static Category category =
  +            Category.getInstance(TCPSender.class.getName());
  +
  +    public void invoke(MessageContext msgContext) throws AxisFault {
  +        Debug.Print( 0, "Enter: TCPSender::invoke" );
  +        /* Find the service we're invoking so we can grab it's options */
  +        /***************************************************************/
  +        String   targetURL = null ;
  +        Message  outMsg    = null ;
  +        String   reqEnv    = null ;
  +
  +        targetURL = msgContext.getStrProp( MessageContext.TRANS_URL);
  +        try {
  +            String   host   = msgContext.getStrProp(TCPTransport.HOST);
  +            int      port   = Integer.parseInt(msgContext.getStrProp(TCPTransport.PORT));
  +            byte[]   buf    = new byte[4097];
  +            int      rc     = 0 ;
  +
  +            Socket             sock = null ;
  +
  +            sock    = new Socket( host, port );
  +            Debug.Print( 1, "Created an insecure HTTP connection");
  +
  +            reqEnv  = (String) msgContext.getRequestMessage().getAsString();
  +
  +            //System.out.println("Msg: " + reqEnv);
  +
  +            BufferedInputStream inp = new BufferedInputStream(sock.getInputStream());
  +            OutputStream  out  = sock.getOutputStream();
  +
  +            byte[] bytes = reqEnv.getBytes();
  +            String length = "" + bytes.length + "\r\n";
  +            out.write(length.getBytes());
  +            out.write( bytes );
  +            out.flush();
  +
  +            Debug.Print( 1, "XML sent:" );
  +            Debug.Print( 1, "---------------------------------------------------");
  +            Debug.Print( 1, reqEnv );
  +
  +            if ( Debug.getDebugLevel() > 8 ) {
  +                // Special case - if the debug level is this high then something
  +                // really bad must be going on - so just dump the input stream
  +                // to stdout.
  +                byte b;
  +                while ( (b = (byte) inp.read()) != -1 )
  +                    System.err.print((char)b);
  +                System.err.println("");
  +            }
  +
  +            outMsg = new Message( inp );
  +            if (Debug.getDebugLevel() > 0) {
  +                Debug.Print( 1, "\nNo Content-Length" );
  +                Debug.Print( 1, "\nXML received:" );
  +                Debug.Print( 1, "-----------------------------------------------");
  +                Debug.Print( 1, (String) outMsg.getAsString() );
  +            }
  +
  +            msgContext.setResponseMessage( outMsg );
  +        }
  +        catch( Exception e ) {
  +            Debug.Print( 1, e );
  +            e.printStackTrace();
  +            if ( !(e instanceof AxisFault) ) e = new AxisFault(e);
  +            throw (AxisFault) e ;
  +        }
  +        Debug.Print( 0, "Exit: TCPSender::invoke" );
       }
  -    Debug.Print( 0, "Exit: TCPSender::invoke" );
  -  }
   
  -  public void undo(MessageContext msgContext) {
  -    Debug.Print( 1, "Enter: TCPSender::undo" );
  -    Debug.Print( 1, "Exit: TCPSender::undo" );
  -  }
  +    public void undo(MessageContext msgContext) {
  +        category.debug("Enter: TCPSender::undo" );
  +        category.debug("Exit: TCPSender::undo" );
  +    }
   };
  
  
  
  1.30      +14 -3     xml-axis/java/src/org/apache/axis/AxisEngine.java
  
  Index: AxisEngine.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/AxisEngine.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- AxisEngine.java	2001/08/15 21:30:16	1.29
  +++ AxisEngine.java	2001/09/05 12:11:24	1.30
  @@ -67,6 +67,9 @@
   import org.apache.axis.session.Session;
   import org.apache.axis.session.SimpleSession;
   import org.apache.axis.encoding.*;
  +import org.apache.log4j.Category;
  +import org.apache.log4j.BasicConfigurator;
  +import org.apache.log4j.Priority;
   
   import org.w3c.dom.*;
   
  @@ -79,6 +82,14 @@
    */
   public abstract class AxisEngine extends BasicHandler
   {
  +    static Category category =
  +            Category.getInstance(AxisEngine.class.getName());
  +
  +    static {
  +        BasicConfigurator.configure();
  +        Category.getRoot().setPriority(Priority.FATAL);
  +    }
  +
       // Engine property names
       public static final String PROP_XML_DECL = "sendXMLDeclaration";
       public static final String PROP_DEBUG_LEVEL = "debugLevel";
  @@ -123,7 +134,7 @@
           // !!! Set up default configuration?
           init();
   
  -        Debug.Print( 1, "Exit: AxisEngine no-arg constructor");
  +        category.debug("Exit: AxisEngine no-arg constructor");
       }
   
       public AxisEngine(ConfigurationProvider configProvider)
  @@ -136,7 +147,7 @@
        * (re)initialize - What should really go in here???
        */
       public void init() {
  -        Debug.Print( 1, "Enter: AxisEngine::init" );
  +        category.debug("Enter: AxisEngine::init" );
   
           _typeMappingRegistry.setParent(SOAPTypeMappingRegistry.getSingleton());
   
  @@ -146,7 +157,7 @@
               // !!! throw new EngineConfigException();
           }
   
  -        Debug.Print( 1, "Exit: AxisEngine::init" );
  +        category.debug("Exit: AxisEngine::init" );
       }
   
       /**
  
  
  
  1.17      +8 -4      xml-axis/java/src/org/apache/axis/FaultableHandler.java
  
  Index: FaultableHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/FaultableHandler.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- FaultableHandler.java	2001/08/29 14:18:47	1.16
  +++ FaultableHandler.java	2001/09/05 12:11:24	1.17
  @@ -61,6 +61,7 @@
   import org.apache.axis.handlers.BasicHandler;
   import org.apache.axis.registries.HandlerRegistry;
   import org.apache.axis.utils.* ;
  +import org.apache.log4j.Category;
   
   import javax.xml.parsers.* ;
   import org.w3c.dom.* ;
  @@ -74,6 +75,9 @@
    * @author Glen Daniels (gdaniels@macromedia.com)
    */
   public class FaultableHandler extends BasicHandler {
  +    static Category category =
  +            Category.getInstance(FaultableHandler.class.getName());
  +
       protected Handler    workHandler ;
   
       /** Constructor
  @@ -100,7 +104,7 @@
        * and already processed it's undo logic - as needed.
        */
       public void invoke(MessageContext msgContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: FaultableHandler::invoke" );
  +        category.debug("Enter: FaultableHandler::invoke" );
           try {
               workHandler.invoke( msgContext );
           }
  @@ -149,16 +153,16 @@
                   throw (AxisFault) e ;
               }
           }
  -        Debug.Print( 1, "Exit: FaultableHandler::invoke" );
  +        category.debug("Exit: FaultableHandler::invoke" );
       }
   
       /**
        * Some handler later on has faulted so we need to undo our work.
        */
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: FaultableHandler::undo" );
  +        category.debug("Enter: FaultableHandler::undo" );
           workHandler.undo( msgContext );
  -        Debug.Print( 1, "Exit: FaultableHandler::undo" );
  +        category.debug("Exit: FaultableHandler::undo" );
       };
   
       public boolean canHandleBlock(QName qname) {
  
  
  
  1.43      +21 -17    xml-axis/java/src/org/apache/axis/Message.java
  
  Index: Message.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/Message.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- Message.java	2001/08/14 03:49:18	1.42
  +++ Message.java	2001/09/05 12:11:24	1.43
  @@ -66,6 +66,7 @@
   import org.apache.axis.message.* ;
   import org.apache.axis.utils.Debug ;
   import org.apache.axis.utils.XMLUtils ;
  +import org.apache.log4j.Category;
   
   /**
    *
  @@ -73,6 +74,9 @@
    * @author Glen Daniels (gdaniels@allaire.com)
    */
   public class Message {
  +    static Category category =
  +            Category.getInstance(Message.class.getName());
  +
       /**
        * Just a placeholder until we figure out what the actual Message
        * object is.
  @@ -99,25 +103,25 @@
        * Just something to us working...
        */
       public Message(String stringForm) {
  -        Debug.Print( 2, "Enter Message ctor (String)" );
  +        category.debug( "Enter Message ctor (String)" );
           originalMessage = stringForm;
           setCurrentMessage(stringForm, FORM_STRING);
       }
       
       public Message(SOAPEnvelope env) {
  -        Debug.Print( 2, "Enter Message ctor (SOAPEnvelope)" );
  +        category.debug( "Enter Message ctor (SOAPEnvelope)" );
           originalMessage = env;
           setCurrentMessage(env, FORM_SOAPENVELOPE);
       }
       
       public Message(InputStream inputStream) {
  -        Debug.Print( 2, "Enter Message ctor (InputStream)" );
  +        category.debug( "Enter Message ctor (InputStream)" );
           originalMessage = inputStream;
           setCurrentMessage(inputStream, FORM_INPUTSTREAM);
       }
       
       public Message(InputStream inputStream, boolean isBody) {
  -        Debug.Print( 2, "Enter Message ctor (BodyInputStream)" );
  +        category.debug( "Enter Message ctor (BodyInputStream)" );
           originalMessage = inputStream;
           setCurrentMessage(inputStream, isBody ? FORM_BODYINSTREAM :
                                                   FORM_INPUTSTREAM);
  @@ -167,7 +171,7 @@
       }
   
       private void setCurrentMessage(Object currMsg, int form) {
  -        Debug.Print( 2, "Setting current message form to: " +
  +        category.debug( "Setting current message form to: " +
                           formNames[form] +" (currentMessage is now " +
                           currMsg + ")" );
           currentMessage = currMsg ;
  @@ -175,9 +179,9 @@
       }
   
       public byte[] getAsBytes() {
  -        Debug.Print( 2, "Enter: Message::getAsBytes" );
  +        category.debug( "Enter: Message::getAsBytes" );
           if ( currentForm == FORM_BYTES ) {
  -            Debug.Print( 2, "Exit: Message::getAsBytes" );
  +            category.debug( "Exit: Message::getAsBytes" );
               return( (byte[]) currentMessage );
           }
           
  @@ -203,13 +207,13 @@
                   // byte[]  buf = new byte[ len ];
                   // inp.read( buf );
                   setCurrentMessage( buf, FORM_BYTES );
  -                Debug.Print( 2, "Exit: Message::getAsByes" );
  +                category.debug( "Exit: Message::getAsByes" );
                   return( (byte[]) currentMessage );
               }
               catch( Exception e ) {
                   e.printStackTrace( System.err );
               }
  -            Debug.Print( 2, "Exit: Message::getAsByes" );
  +            category.debug( "Exit: Message::getAsByes" );
               return( null );
           }
   
  @@ -220,19 +224,19 @@
           if ( currentForm == FORM_STRING ) {
               setCurrentMessage( ((String)currentMessage).getBytes(), 
                                  FORM_BYTES );
  -            Debug.Print( 2, "Exit: Message::getAsBytes" );
  +            category.debug( "Exit: Message::getAsBytes" );
               return( (byte[]) currentMessage );
           }
   
           System.err.println("Can't convert " + currentForm + " to Bytes" );
  -        Debug.Print( 2, "Exit: Message::getAsBytes" );
  +        category.debug( "Exit: Message::getAsBytes" );
           return( null );
       }
   
       public String getAsString() {
  -        Debug.Print( 2, "Enter: Message::getAsString" );
  +        category.debug( "Enter: Message::getAsString" );
           if ( currentForm == FORM_STRING ) {
  -            Debug.Print( 2, "Exit: Message::getAsString, currentMessage is "+
  +            category.debug( "Exit: Message::getAsString, currentMessage is "+
                               currentMessage );
               return( (String) currentMessage );
           }
  @@ -246,7 +250,7 @@
           if ( currentForm == FORM_BYTES ) {
               setCurrentMessage( new String((byte[]) currentMessage), 
                                  FORM_STRING );
  -            Debug.Print( 2, "Exit: Message::getAsString, currentMessage is "+
  +            category.debug( "Exit: Message::getAsString, currentMessage is "+
                               currentMessage );
               return( (String) currentMessage );
           }
  @@ -279,14 +283,14 @@
   
           System.err.println("Can't convert form " + currentForm +
                              " to String" );
  -        Debug.Print( 2, "Exit: Message::getAsString" );
  +        category.debug( "Exit: Message::getAsString" );
           return( null );
       }
   
       public SOAPEnvelope getAsSOAPEnvelope()
           throws AxisFault
       {
  -        Debug.Print( 2, "Enter: Message::getAsSOAPEnvelope; currentForm is "+
  +        category.debug( "Enter: Message::getAsSOAPEnvelope; currentForm is "+
                           formNames[currentForm] );
           if ( currentForm == FORM_SOAPENVELOPE )
               return( (SOAPEnvelope) currentMessage );
  @@ -321,7 +325,7 @@
           }
   
           setCurrentMessage(dser.getEnvelope(), FORM_SOAPENVELOPE);
  -        Debug.Print( 2, "Exit: Message::getAsSOAPEnvelope" );
  +        category.debug( "Exit: Message::getAsSOAPEnvelope" );
           return( (SOAPEnvelope) currentMessage );
       }
   
  
  
  
  1.23      +11 -7     xml-axis/java/src/org/apache/axis/SimpleChain.java
  
  Index: SimpleChain.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/SimpleChain.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- SimpleChain.java	2001/08/29 16:02:22	1.22
  +++ SimpleChain.java	2001/09/05 12:11:24	1.23
  @@ -61,6 +61,7 @@
   import org.apache.axis.strategies.WSDLGenStrategy;
   import org.apache.axis.utils.* ;
   import org.apache.axis.handlers.*;
  +import org.apache.log4j.Category;
   
   import org.w3c.dom.* ;
   
  @@ -69,6 +70,9 @@
    * @author Doug Davis (dug@us.ibm.com)
    */
   public class SimpleChain extends BasicHandler implements Chain {
  +    static Category category =
  +            Category.getInstance(SimpleChain.class.getName());
  +
       protected Vector     handlers ;
       protected Hashtable  options ;
   
  @@ -104,7 +108,7 @@
   
       private void doVisiting(MessageContext msgContext,
                               HandlerIterationStrategy visitor) throws AxisFault {
  -        Debug.Print( 1, "Enter: SimpleChain::invoke" );
  +        category.debug("Enter: SimpleChain::invoke" );
           int i = 0 ;
           try {
               Vector localHandlers;
  @@ -117,14 +121,14 @@
           }
           catch( Exception e ) {
               // undo in reverse order - rethrow
  -            Debug.Print( 1, e );
  +            category.error( e );
               if( !(e instanceof AxisFault ) )
                   e = new AxisFault( e );
               while( --i >= 0 )
                   ((Handler) handlers.elementAt( i )).undo( msgContext );
               throw (AxisFault) e ;
           }
  -        Debug.Print( 1, "Exit: SimpleChain::invoke" );
  +        category.debug("Exit: SimpleChain::invoke" );
       }
   
       /**
  @@ -132,10 +136,10 @@
        * later on has faulted - in reverse order.
        */
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: SimpleChain::undo" );
  +        category.debug("Enter: SimpleChain::undo" );
           for ( int i = handlers.size()-1 ; i >= 0 ; i-- )
               ((Handler) handlers.elementAt( i )).undo( msgContext );
  -        Debug.Print( 1, "Exit: SimpleChain::undo" );
  +        category.debug("Exit: SimpleChain::undo" );
       }
   
       public boolean canHandleBlock(QName qname) {
  @@ -176,7 +180,7 @@
       }
   
       public Element getDeploymentData(Document doc) {
  -        Debug.Print( 1, "Enter: SimpleChain::getDeploymentData" );
  +        category.debug("Enter: SimpleChain::getDeploymentData" );
   
           Element  root = doc.createElement( "chain" );
   
  @@ -204,7 +208,7 @@
               }
           }
   
  -        Debug.Print( 1, "Exit: SimpleChain::getDeploymentData" );
  +        category.debug("Exit: SimpleChain::getDeploymentData" );
           return( root );
       }
   };
  
  
  
  1.19      +12 -8     xml-axis/java/src/org/apache/axis/SimpleTargetedChain.java
  
  Index: SimpleTargetedChain.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/SimpleTargetedChain.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- SimpleTargetedChain.java	2001/08/21 05:15:35	1.18
  +++ SimpleTargetedChain.java	2001/09/05 12:11:24	1.19
  @@ -59,6 +59,7 @@
   import org.apache.axis.* ;
   import org.apache.axis.utils.* ;
   import org.apache.axis.handlers.* ;
  +import org.apache.log4j.Category;
   
   import org.w3c.dom.* ;
   
  @@ -68,6 +69,9 @@
    */
   public class SimpleTargetedChain extends BasicHandler implements TargetedChain
   {
  +    static Category category =
  +            Category.getInstance(SimpleTargetedChain.class.getName());
  +
       protected Handler    requestHandler ;
       protected Handler    pivotHandler ;
       protected Handler    responseHandler ;
  @@ -90,7 +94,7 @@
        * that has been successfully invoked and then rethrow the fault.
        */
       public void invoke(MessageContext msgContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: SimpleTargetedChain::invoke" );
  +        category.debug("Enter: SimpleTargetedChain::invoke" );
           if ( requestHandler != null ) requestHandler.invoke( msgContext );
           try {
               if ( pivotHandler != null ) pivotHandler.invoke( msgContext );
  @@ -117,11 +121,11 @@
                   requestHandler.undo( msgContext );
               throw (AxisFault) e ;
           }
  -        Debug.Print( 1, "Exit: SimpleTargetedChain::invoke" );
  +        category.debug("Exit: SimpleTargetedChain::invoke" );
       }
   
       public void generateWSDL(MessageContext msgContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: SimpleTargetedChain::editWSDL" );
  +        category.debug("Enter: SimpleTargetedChain::editWSDL" );
           if ( requestHandler != null ) requestHandler.generateWSDL( msgContext );
           try {
               if ( pivotHandler != null ) pivotHandler.generateWSDL( msgContext );
  @@ -145,18 +149,18 @@
                   e = new AxisFault( e );
               throw (AxisFault) e ;
           }
  -        Debug.Print( 1, "Exit: SimpleTargetedChain::editWSDL" );
  +        category.debug("Exit: SimpleTargetedChain::editWSDL" );
       }
   
       /**
        * Undo all of the work - in reverse order.
        */
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: SimpleTargetedChain::undo" );
  +        category.debug("Enter: SimpleTargetedChain::undo" );
           if ( responseHandler   != null )   responseHandler.undo( msgContext );
           if ( pivotHandler  != null )  pivotHandler.undo( msgContext );
           if ( requestHandler    != null )    requestHandler.undo( msgContext );
  -        Debug.Print( 1, "Exit: SimpleTargetedChain::undo" );
  +        category.debug("Exit: SimpleTargetedChain::undo" );
       }
   
       public boolean canHandleBlock(QName qname) {
  @@ -194,12 +198,12 @@
       }
   
       public Element getDeploymentData(Document doc) {
  -        Debug.Print( 1, "Enter: SimpleTargetedChain::getDeploymentData" );
  +        category.debug("Enter: SimpleTargetedChain::getDeploymentData" );
   
           Element   root = doc.createElement( "chain" );
           fillInDeploymentData(root);
   
  -        Debug.Print( 1, "Exit: SimpleTargetedChain::getDeploymentData" );
  +        category.debug("Exit: SimpleTargetedChain::getDeploymentData" );
           return( root );
       }
       
  
  
  
  1.23      +9 -5      xml-axis/java/src/org/apache/axis/client/AxisClient.java
  
  Index: AxisClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/AxisClient.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- AxisClient.java	2001/08/15 21:30:17	1.22
  +++ AxisClient.java	2001/09/05 12:11:24	1.23
  @@ -63,6 +63,7 @@
   import org.apache.axis.registries.* ;
   import org.apache.axis.transport.http.HTTPSender;
   import org.apache.axis.transport.local.LocalSender;
  +import org.apache.log4j.Category;
   
   /**
    * Provides the equivalent of an "Axis engine" on the client side.
  @@ -75,6 +76,9 @@
    */
   public class AxisClient extends AxisEngine
   {
  +    static Category category =
  +            Category.getInstance(AxisClient.class.getName());
  +
       public AxisClient(ConfigurationProvider provider)
       {
           super(provider);
  @@ -92,7 +96,7 @@
        * handler for the desired service and invoke() it.
        */
       public void invoke(MessageContext msgContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: AxisClient::invoke" );
  +        category.debug("Enter: AxisClient::invoke" );
           
           String  hName = null ;
           Handler h     = null ;
  @@ -102,7 +106,7 @@
           
           try {
               hName = msgContext.getStrProp( MessageContext.ENGINE_HANDLER );
  -            Debug.Print( 2, "EngineHandler: " + hName );
  +            category.debug( "EngineHandler: " + hName );
               
               if ( hName != null ) {
                   h = hr.find( hName );
  @@ -185,12 +189,12 @@
               if ( !(e instanceof AxisFault) ) e = new AxisFault( e );
               throw (AxisFault) e ;
           }
  -        Debug.Print( 1, "Exit: AxisClient::invoke" );
  +        category.debug("Exit: AxisClient::invoke" );
       };
       
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: AxisClient::undo" );
  -        Debug.Print( 1, "Exit: AxisClient::undo" );
  +        category.debug("Enter: AxisClient::undo" );
  +        category.debug("Exit: AxisClient::undo" );
       }
   }
   
  
  
  
  1.49      +11 -7     xml-axis/java/src/org/apache/axis/client/ServiceClient.java
  
  Index: ServiceClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/ServiceClient.java,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- ServiceClient.java	2001/09/02 04:04:22	1.48
  +++ ServiceClient.java	2001/09/05 12:11:24	1.49
  @@ -75,6 +75,7 @@
   
   import java.io.*;
   import org.apache.axis.encoding.SerializationContext;
  +import org.apache.log4j.Category;
   
   /**
    * Allows an Axis service to be invoked from the client side.
  @@ -92,6 +93,8 @@
   
   public class ServiceClient {
       private static final boolean DEBUG_LOG = false;
  +    static Category category =
  +            Category.getInstance(ServiceClient.class.getName());
   
       /***************************************************************
        * Static stuff
  @@ -255,7 +258,8 @@
        */
       public void setTransport(Transport transport) {
           this.transport = transport;
  -        Debug.Print(1, "Transport is " + transport);
  +        if (category.isInfoEnabled())
  +            category.info("Transport is " + transport);
       }
   
       /**
  @@ -472,10 +476,10 @@
        * @exception AxisFault
        */
       public Object invoke( String namespace, String method, Object[] args ) throws AxisFault {
  -        Debug.Print( 1, "Enter: ServiceClient::invoke(ns, meth, args)" );
  +        category.debug("Enter: ServiceClient::invoke(ns, meth, args)" );
           RPCElement  body = new RPCElement(namespace, method, args, serviceDesc);
           Object ret = invoke( body );
  -        Debug.Print( 1, "Exit: ServiceClient::invoke(ns, meth, args)" );
  +        category.debug("Exit: ServiceClient::invoke(ns, meth, args)" );
           return ret;
       }
   
  @@ -504,7 +508,7 @@
        * @exception AxisFault
        */
       public Object invoke( RPCElement body ) throws AxisFault {
  -        Debug.Print( 1, "Enter: ServiceClient::invoke(RPCElement)" );
  +        category.debug("Enter: ServiceClient::invoke(RPCElement)" );
           SOAPEnvelope         reqEnv = new SOAPEnvelope();
           SOAPEnvelope         resEnv = null ;
           Message              reqMsg = new Message( reqEnv );
  @@ -594,7 +598,7 @@
               }
           }
   
  -        Debug.Print( 1, "Exit: ServiceClient::invoke(RPCElement)" );
  +        category.debug("Exit: ServiceClient::invoke(RPCElement)" );
           return( result );
       }
   
  @@ -612,7 +616,7 @@
        * @exception AxisFault
        */
       public void invoke() throws AxisFault {
  -        Debug.Print( 1, "Enter: Service::invoke()" );
  +        category.debug("Enter: Service::invoke()" );
   
           msgContext.setServiceDescription(serviceDesc);
   
  @@ -631,7 +635,7 @@
               throw fault ;
           }
   
  -        Debug.Print( 1, "Exit: Service::invoke()" );
  +        category.debug("Exit: Service::invoke()" );
       }
   
   }
  
  
  
  1.12      +7 -2      xml-axis/java/src/org/apache/axis/encoding/BeanSerializer.java
  
  Index: BeanSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/BeanSerializer.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- BeanSerializer.java	2001/07/16 17:36:59	1.11
  +++ BeanSerializer.java	2001/09/05 12:11:24	1.12
  @@ -68,6 +68,7 @@
   import org.apache.axis.utils.Debug;
   import org.apache.axis.utils.QName;
   import org.apache.axis.utils.JavaUtils;
  +import org.apache.log4j.Category;
   
   import org.xml.sax.*;
   
  @@ -79,6 +80,8 @@
   public class BeanSerializer extends Deserializer 
       implements Serializer, Serializable 
   {
  +    static Category category =
  +            Category.getInstance(BeanSerializer.class.getName());
   
       /**
        * Class being serialized/deserialized
  @@ -204,8 +207,10 @@
                   try {
                       pd.getWriteMethod().invoke(object, new Object[] {value});
                   } catch (Exception ex) {
  -                    Debug.Print(1, "Couldn't convert " + value.getClass().getName() +
  -                                   " to bean field '" + pd.getName() + "', type " +
  +                    category.error("Couldn't convert " +
  +                                   value.getClass().getName() +
  +                                   " to bean field '" + pd.getName() +
  +                                   "', type " +
                                      pd.getPropertyType().getName());
                       throw new SAXException(ex);
                   }
  
  
  
  1.10      +6 -2      xml-axis/java/src/org/apache/axis/handlers/BasicHandler.java
  
  Index: BasicHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/BasicHandler.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- BasicHandler.java	2001/08/21 05:15:35	1.9
  +++ BasicHandler.java	2001/09/05 12:11:24	1.10
  @@ -60,6 +60,7 @@
   import org.apache.axis.utils.QName;
   import org.apache.axis.utils.Debug;
   import org.apache.axis.utils.XMLUtils ;
  +import org.apache.log4j.Category;
   
   import org.w3c.dom.* ;
   
  @@ -72,6 +73,9 @@
    * @author Doug Davis (dug@us.ibm.com
    */
   public abstract class BasicHandler implements Handler {
  +    static Category category =
  +            Category.getInstance(BasicHandler.class.getName());
  +
       protected Hashtable  options ;
       protected String name;
   
  @@ -144,7 +148,7 @@
       }
   
       public Element getDeploymentData(Document doc) {
  -        Debug.Print( 1, "Enter: BasicHandler::getDeploymentData" );
  +        category.debug("Enter: BasicHandler::getDeploymentData" );
   
           Element  root = doc.createElement( "handler" );
   
  @@ -161,7 +165,7 @@
                   root.appendChild( e1 );
               }
           }
  -        Debug.Print( 1, "Exit: BasicHandler::getDeploymentData" );
  +        category.debug("Exit: BasicHandler::getDeploymentData" );
           return( root );
       }
   
  
  
  
  1.19      +8 -5      xml-axis/java/src/org/apache/axis/handlers/DebugHandler.java
  
  Index: DebugHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/DebugHandler.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- DebugHandler.java	2001/07/22 05:57:22	1.18
  +++ DebugHandler.java	2001/09/05 12:11:24	1.19
  @@ -62,6 +62,7 @@
   import org.apache.axis.utils.* ;
   import org.apache.axis.message.SOAPEnvelope;
   import org.apache.axis.message.SOAPHeader;
  +import org.apache.log4j.Category;
   
   import org.w3c.dom.* ;
   
  @@ -70,9 +71,11 @@
    * @author Doug Davis (dug@us.ibm.com)
    */
   public class DebugHandler extends BasicHandler {
  -    
  +    static Category category =
  +            Category.getInstance(DebugHandler.class.getName());
  +
       public void invoke(MessageContext msgContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: DebugHandler::invoke" );
  +        category.debug("Enter: DebugHandler::invoke" );
           try {
               Message       msg = msgContext.getRequestMessage();
               
  @@ -96,12 +99,12 @@
               Debug.Print( 1, e );
               throw new AxisFault( e );
           }
  -        Debug.Print( 1, "Exit: DebugHandler::invoke" );
  +        category.debug("Exit: DebugHandler::invoke" );
       }
   
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: DebugHandler::undo" );
  -        Debug.Print( 1, "Exit: DebugHandler::undo" );
  +        category.debug("Enter: DebugHandler::undo" );
  +        category.debug("Exit: DebugHandler::undo" );
       }
       
   };
  
  
  
  1.17      +7 -4      xml-axis/java/src/org/apache/axis/handlers/EchoHandler.java
  
  Index: EchoHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/EchoHandler.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- EchoHandler.java	2001/08/29 14:17:17	1.16
  +++ EchoHandler.java	2001/09/05 12:11:24	1.17
  @@ -58,15 +58,18 @@
   import org.apache.axis.* ;
   import org.apache.axis.utils.* ;
   import org.apache.axis.message.SOAPEnvelope;
  +import org.apache.log4j.Category;
   
   /**
    *
    * @author Doug Davis (dug@us.ibm.com)
    */
   public class EchoHandler extends BasicHandler {
  +    static Category category =
  +            Category.getInstance(EchoHandler.class.getName());
   
       public void invoke(MessageContext msgContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: EchoHandler::invoke" );
  +        category.debug("Enter: EchoHandler::invoke" );
           try {
               Message  msg = msgContext.getRequestMessage();
               SOAPEnvelope env = (SOAPEnvelope) msg.getAsSOAPEnvelope();
  @@ -76,12 +79,12 @@
               Debug.Print( 1, e );
               throw new AxisFault( e );
           }
  -        Debug.Print( 1, "Exit: EchoHandler::invoke" );
  +        category.debug("Exit: EchoHandler::invoke" );
       }
   
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: EchoHandler::undo" );
  -        Debug.Print( 1, "Exit: EchoHandler::undo" );
  +        category.debug("Enter: EchoHandler::undo" );
  +        category.debug("Exit: EchoHandler::undo" );
       }
   
   };
  
  
  
  1.11      +6 -3      xml-axis/java/src/org/apache/axis/handlers/ErrorHandler.java
  
  Index: ErrorHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/ErrorHandler.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ErrorHandler.java	2001/08/29 14:17:17	1.10
  +++ ErrorHandler.java	2001/09/05 12:11:24	1.11
  @@ -57,6 +57,7 @@
   
   import org.apache.axis.* ;
   import org.apache.axis.utils.* ;
  +import org.apache.log4j.Category;
   
   /**
    *
  @@ -64,15 +65,17 @@
    * @author Glen Daniels (gdaniels@allaire.com)
    */
   public class ErrorHandler extends BasicHandler {
  +    static Category category =
  +            Category.getInstance(ErrorHandler.class.getName());
   
       public void invoke(MessageContext msgContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: ErrorHandler::invoke" );
  +        category.debug("Enter: ErrorHandler::invoke" );
           throw new AxisFault( "Server.Whatever", "ERROR", null, null );
       }
   
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: ErrorHandler::undo" );
  -        Debug.Print( 1, "Exit: ErrorHandler::undo" );
  +        category.debug("Enter: ErrorHandler::undo" );
  +        category.debug("Exit: ErrorHandler::undo" );
       }
   
   };
  
  
  
  1.4       +8 -4      xml-axis/java/src/org/apache/axis/handlers/JWSHandler.java
  
  Index: JWSHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/JWSHandler.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JWSHandler.java	2001/08/21 05:15:35	1.3
  +++ JWSHandler.java	2001/09/05 12:11:24	1.4
  @@ -59,6 +59,7 @@
   import org.apache.axis.handlers.BasicHandler;
   import org.apache.axis.MessageContext;
   import org.apache.axis.utils.Debug;
  +import org.apache.log4j.Category;
   
   /** A <code>JWSHandler</code> sets the target service and JWS filename
    * in the context depending on the JWS configuration and the target URL.
  @@ -69,9 +70,12 @@
    */
   public class JWSHandler extends BasicHandler
   {
  +    static Category category =
  +            Category.getInstance(JWSHandler.class.getName());
  +
       public void invoke(MessageContext msgContext) throws AxisFault
       {
  -        Debug.Print( 1, "Enter: JWSHandler::invoke" );
  +        category.debug("Enter: JWSHandler::invoke" );
   
           // FORCE the targetService to be JWS if the URL is right.
           String realpath = msgContext.getStrProp(Constants.MC_REALPATH);
  @@ -80,7 +84,7 @@
               msgContext.setTargetService(Constants.JWSPROCESSOR_TARGET) ;
           }
   
  -        Debug.Print( 1, "Exit : JWSHandler::invoke" );
  +        category.debug("Exit : JWSHandler::invoke" );
       }
   
       public void generateWSDL(MessageContext msgContext) throws AxisFault {
  @@ -89,7 +93,7 @@
   
       public void undo(MessageContext msgContext)
       {
  -        Debug.Print( 1, "Enter: JWSHandler::undo" );
  -        Debug.Print( 1, "Exit: JWSHandler::undo" );
  +        category.debug("Enter: JWSHandler::undo" );
  +        category.debug("Exit: JWSHandler::undo" );
       }
   }
  
  
  
  1.18      +25 -12    xml-axis/java/src/org/apache/axis/handlers/JWSProcessor.java
  
  Index: JWSProcessor.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/JWSProcessor.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- JWSProcessor.java	2001/09/01 15:23:05	1.17
  +++ JWSProcessor.java	2001/09/05 12:11:24	1.18
  @@ -68,6 +68,7 @@
   import org.apache.axis.utils.XMLUtils ;
   import org.apache.axis.utils.AxisClassLoader ;
   import org.apache.axis.providers.java.RPCProvider;
  +import org.apache.log4j.Category;
   
   import sun.tools.javac.Main;
   
  @@ -89,7 +90,10 @@
   public class JWSProcessor extends BasicHandler
   {
       static String errFile = "jws.err" ;
  +    static Category category =
  +            Category.getInstance(JWSProcessor.class.getName());
   
  +
       public void invoke(MessageContext msgContext) throws AxisFault
       {
           invokeImpl(msgContext, false);
  @@ -98,20 +102,25 @@
       public void invokeImpl(MessageContext msgContext, boolean doWsdl)
               throws AxisFault
       {
  -        Debug.Print( 1, "Enter: JWSProcessor::invoke" );
  +        if (category.isDebugEnabled())
  +            category.debug("Enter: JWSProcessor::invoke");
           try {
               /* Grab the *.jws filename from the context - should have been */
               /* placed there by another handler (ie. HTTPActionHandler)     */
               /***************************************************************/
               Runtime  rt      = Runtime.getRuntime();
               String   jwsFile = msgContext.getStrProp(Constants.MC_REALPATH);
  -            Debug.Print( 2, "jwsFile: " + jwsFile );
  +            if (category.isInfoEnabled())
  +                category.info("jwsFile: " + jwsFile );
               String   jFile   = jwsFile.substring(0, jwsFile.length()-3) +
                       "java" ;
               String   cFile   = jwsFile.substring(0, jwsFile.length()-3) +
                       "class" ;
  -            Debug.Print( 2, "jFile: " + jFile );
  -            Debug.Print( 2, "cFile: " + cFile );
  +
  +            if (category.isInfoEnabled()) {
  +                category.info("jFile: " + jFile );
  +                category.info("cFile: " + cFile );
  +            }
   
               File  f1 = new File( cFile );
               File  f2 = new File( jwsFile );
  @@ -120,8 +129,10 @@
               /*****************/
               String clsName = f2.getName();
               clsName = clsName.substring( 0, clsName.length()-4 );
  -            Debug.Print( 2, "ClsName: " + clsName );
   
  +            if (category.isInfoEnabled())
  +                category.info("ClsName: " + clsName );
  +
               /* Check to see if we need to recompile */
               /****************************************/
               if ( !f1.exists() || f2.lastModified() > f1.lastModified() ) {
  @@ -129,8 +140,8 @@
                   /* java file then recompile the java file.                 */
                   /* Start by copying the *.jws file to *.java               */
                   /***********************************************************/
  -                Debug.Print(1, "Compiling: " + jwsFile );
  -                Debug.Print(3, "copy " + jwsFile + " " + jFile );
  +                category.info("Compiling: " + jwsFile );
  +                category.debug("copy " + jwsFile + " " + jFile );
                   FileReader fr = new FileReader( jwsFile );
                   FileWriter fw = new FileWriter( jFile );
                   char[] buf = new char[4096];
  @@ -142,7 +153,7 @@
   
                   /* Now run javac on the *.java file */
                   /************************************/
  -                Debug.Print(2, "javac " + jFile );
  +                category.debug("javac " + jFile );
                   // Process proc = rt.exec( "javac " + jFile );
                   // proc.waitFor();
                   FileOutputStream  out      = new FileOutputStream( errFile );
  @@ -217,12 +228,13 @@
               rpc.cleanup();  // ??
           }
           catch( Exception e ) {
  -            Debug.Print( 1, e );
  +            category.error( "JWSProcessor fault", e );
               if ( !(e instanceof AxisFault) ) e = new AxisFault( e );
               throw (AxisFault) e ;
           }
   
  -        Debug.Print( 1, "Exit : JWSProcessor::invoke" );
  +        if (category.isDebugEnabled())
  +            category.debug("Exit : JWSProcessor::invoke" );
       }
   
       public void generateWSDL(MessageContext msgContext) throws AxisFault {
  @@ -231,8 +243,9 @@
   
       public void undo(MessageContext msgContext)
       {
  -        Debug.Print( 1, "Enter: JWSProcessor::undo" );
  -        Debug.Print( 1, "Exit: JWSProcessor::undo" );
  +        if (category.isDebugEnabled()) {
  +            category.debug("Enter/Exit : JWSProcessor::undo");
  +        }
       }
   
       private String getDefaultClasspath(MessageContext msgContext)
  
  
  
  1.16      +7 -4      xml-axis/java/src/org/apache/axis/handlers/LogHandler.java
  
  Index: LogHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/LogHandler.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- LogHandler.java	2001/08/29 14:17:17	1.15
  +++ LogHandler.java	2001/09/05 12:11:24	1.16
  @@ -61,17 +61,20 @@
   import org.apache.axis.* ;
   import org.apache.axis.utils.* ;
   import org.apache.axis.handlers.* ;
  +import org.apache.log4j.Category;
   
   /**
    *
    * @author Doug Davis (dug@us.ibm.com)
    */
   public class LogHandler extends BasicHandler {
  +    static Category category =
  +            Category.getInstance(LogHandler.class.getName());
   
       long start = 0;
   
       public void invoke(MessageContext msgContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: LogHandler::invoke" );
  +        category.debug("Enter: LogHandler::invoke" );
           if (msgContext.getPastPivot() == false) {
              start = System.currentTimeMillis();
           } else {
  @@ -94,11 +97,11 @@
                   throw new AxisFault( e );
               }
           }
  -        Debug.Print( 1, "Exit: LogHandler::invoke" );
  +        category.debug("Exit: LogHandler::invoke" );
       }
   
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Exit: LogHandler::undo" );
  +        category.debug("Exit: LogHandler::undo" );
           try {
               FileWriter  fw   = new FileWriter( "axis.log", true );
               PrintWriter pw   = new PrintWriter( fw );
  @@ -109,6 +112,6 @@
           } catch( Exception e ) {
               Debug.Print( 1, e );
           }
  -        Debug.Print( 1, "Exit: LogHandler::undo" );
  +        category.debug("Exit: LogHandler::undo" );
       }
   };
  
  
  
  1.3       +6 -2      xml-axis/java/src/org/apache/axis/handlers/LogMessage.java
  
  Index: LogMessage.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/LogMessage.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LogMessage.java	2001/07/12 15:03:46	1.2
  +++ LogMessage.java	2001/09/05 12:11:24	1.3
  @@ -57,6 +57,7 @@
   
   import org.apache.axis.* ;
   import org.apache.axis.utils.* ;
  +import org.apache.log4j.Category;
   
   /** This handler simply prints a custom message to the debug log.
    *
  @@ -64,6 +65,9 @@
    */
   public class LogMessage extends BasicHandler
   {
  +    static Category category =
  +            Category.getInstance(LogMessage.class.getName());
  +
       public void invoke(MessageContext context)
       {
           String msg = (String)getOption("message");
  @@ -72,7 +76,7 @@
       }
       
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: URLMapper::undo" );
  -        Debug.Print( 1, "Exit: URLMapper::undo" );
  +        category.debug("Enter: LogMessage::undo" );
  +        category.debug("Exit: LogMessage::undo" );
       }
   }
  
  
  
  1.15      +11 -7     xml-axis/java/src/org/apache/axis/handlers/SimpleAuthenticationHandler.java
  
  Index: SimpleAuthenticationHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/SimpleAuthenticationHandler.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- SimpleAuthenticationHandler.java	2001/08/29 14:17:17	1.14
  +++ SimpleAuthenticationHandler.java	2001/09/05 12:11:24	1.15
  @@ -60,6 +60,7 @@
   import org.apache.axis.* ;
   import org.apache.axis.utils.* ;
   import org.apache.axis.message.* ;
  +import org.apache.log4j.Category;
   
   /**
    * Just a simple Authentication Handler to see if the user
  @@ -73,7 +74,9 @@
    * @author Sam Ruby (rubys@us.ibm.com)
    */
   public class SimpleAuthenticationHandler extends BasicHandler {
  -    
  +    static Category category =
  +            Category.getInstance(SimpleAuthenticationHandler.class.getName());
  +
       // Simple hashtable of user and password.  Null means everybody
       // will authenticate (replace with new Hashtable() if you want 
       // the default to be that nobody will be authenticated.
  @@ -98,7 +101,8 @@
                           String userID = st.nextToken();
                           String passwd = (st.hasMoreTokens()) ? st.nextToken() : "";
   
  -                        Debug.Print( 2, "From file: '", userID, "':'", passwd, "'" );
  +                        category.debug( "From file: '" + userID +
  +                                        "':'" + passwd + "'" );
                           entries.put(userID, passwd);
                       }
                   }
  @@ -115,7 +119,7 @@
        * Authenticate the user and password from the msgContext
        */
       public void invoke(MessageContext msgContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: SimpleAuthenticationHandler::invoke" );
  +        category.debug("Enter: SimpleAuthenticationHandler::invoke" );
   
           if (entries != null) {
               String  userID = (String) msgContext.getProperty( MessageContext.USERID );
  @@ -129,7 +133,7 @@
               
               String passwd = (String) msgContext.getProperty( MessageContext.PASSWORD );
               String valid = (String) entries.get(userID);
  -            Debug.Print( 2, "Pass: ", passwd );
  +            category.debug( "Pass: " + passwd );
               
               // if a password is defined, then it must match
               if ( valid.length()>0 && !valid.equals(passwd) ) 
  @@ -140,14 +144,14 @@
               Debug.Print( 1, "User '", userID, "' authenticated to server" );
           }
   
  -        Debug.Print( 1, "Exit: SimpleAuthenticationHandler::invoke" );
  +        category.debug("Exit: SimpleAuthenticationHandler::invoke" );
       }
   
       /**
        * Nothing to undo
        */
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: SimpleAuthenticationHandler::undo" );
  -        Debug.Print( 1, "Exit: SimpleAuthenticationHandler::undo" );
  +        category.debug("Enter: SimpleAuthenticationHandler::undo" );
  +        category.debug("Exit: SimpleAuthenticationHandler::undo" );
       }
   };
  
  
  
  1.16      +8 -5      xml-axis/java/src/org/apache/axis/handlers/SimpleAuthorizationHandler.java
  
  Index: SimpleAuthorizationHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/SimpleAuthorizationHandler.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- SimpleAuthorizationHandler.java	2001/08/29 14:17:17	1.15
  +++ SimpleAuthorizationHandler.java	2001/09/05 12:11:24	1.16
  @@ -61,6 +61,7 @@
   import org.apache.axis.utils.* ;
   import org.apache.axis.message.* ;
   import org.apache.axis.transport.http.HTTPConstants;
  +import org.apache.log4j.Category;
   
   /**
    * Just a simple Authorization Handler to see if the user
  @@ -75,7 +76,9 @@
    * @author Sam Ruby (rubys@us.ibm.com)
    */
   public class SimpleAuthorizationHandler extends BasicHandler {
  -    
  +    static Category category =
  +            Category.getInstance(SimpleAuthorizationHandler.class.getName());
  +
       // Simple hashtable of users.  Null means everybody
       // will authorize (replace with new Hashtable() if you want 
       // the default to be that nobody is authorized
  @@ -125,7 +128,7 @@
        * Authorize the user and targetService from the msgContext
        */
       public void invoke(MessageContext msgContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: SimpleAuthorizationHandler::invoke" );
  +        category.debug("Enter: SimpleAuthorizationHandler::invoke" );
   
           String userID = (String) msgContext.getProperty( MessageContext.USERID );
           String action = msgContext.getTargetService();
  @@ -145,14 +148,14 @@
   
           Debug.Print( 1, "User '", userID, "' authorized to: ", action );
   
  -        Debug.Print( 1, "Exit: SimpleAuthorizationHandler::invoke" );
  +        category.debug("Exit: SimpleAuthorizationHandler::invoke" );
       }
   
       /**
        * Nothing to undo
        */
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: SimpleAuthorizationHandler::undo" );
  -        Debug.Print( 1, "Exit: SimpleAuthorizationHandler::undo" );
  +        category.debug("Enter: SimpleAuthorizationHandler::undo" );
  +        category.debug("Exit: SimpleAuthorizationHandler::undo" );
       }
   };
  
  
  
  1.7       +9 -5      xml-axis/java/src/org/apache/axis/handlers/http/HTTPActionHandler.java
  
  Index: HTTPActionHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/http/HTTPActionHandler.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- HTTPActionHandler.java	2001/08/07 18:58:48	1.6
  +++ HTTPActionHandler.java	2001/09/05 12:11:24	1.7
  @@ -58,6 +58,7 @@
   import org.apache.axis.handlers.BasicHandler;
   import org.apache.axis.utils.Debug;
   import org.apache.axis.transport.http.HTTPConstants;
  +import org.apache.log4j.Category;
   
   import javax.servlet.* ;
   import javax.servlet.http.* ;
  @@ -75,16 +76,19 @@
    */
   public class HTTPActionHandler extends BasicHandler
   {
  +    static Category category =
  +            Category.getInstance(HTTPActionHandler.class.getName());
  +
       public void invoke(MessageContext msgContext) throws AxisFault
       {
  -        Debug.Print( 1, "Enter: HTTPActionHandler::invoke" );
  +        category.debug("Enter: HTTPActionHandler::invoke" );
   
           /** If there's already a targetService then just return.
           */
           if ( msgContext.getServiceHandler() == null ) {
               String action = (String) msgContext.getProperty(
                                                               HTTPConstants.MC_HTTP_SOAPACTION);
  -            Debug.Print( 2, "  HTTP SOAPAction: " + action );
  +            category.debug( "  HTTP SOAPAction: " + action );
               
               /** The idea is that this handler only goes in the chain IF this
               * service does a mapping between SOAPAction and target.  Therefore
  @@ -114,12 +118,12 @@
               }
           }
   
  -        Debug.Print( 1, "Exit : HTTPActionHandler::invoke" );
  +        category.debug("Exit : HTTPActionHandler::invoke" );
       }
   
       public void undo(MessageContext msgContext)
       {
  -        Debug.Print( 1, "Enter: HTTPActionHandler::undo" );
  -        Debug.Print( 1, "Exit: HTTPActionHandler::undo" );
  +        category.debug("Enter: HTTPActionHandler::undo" );
  +        category.debug("Exit: HTTPActionHandler::undo" );
       }
   }
  
  
  
  1.3       +8 -4      xml-axis/java/src/org/apache/axis/handlers/http/HTTPAuthHandler.java
  
  Index: HTTPAuthHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/http/HTTPAuthHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTTPAuthHandler.java	2001/05/31 16:29:54	1.2
  +++ HTTPAuthHandler.java	2001/09/05 12:11:24	1.3
  @@ -59,6 +59,7 @@
   import org.apache.axis.utils.Debug;
   import org.apache.axis.encoding.Base64 ;
   import org.apache.axis.transport.http.HTTPConstants;
  +import org.apache.log4j.Category;
   
   import javax.servlet.* ;
   import javax.servlet.http.* ;
  @@ -71,9 +72,12 @@
    */
   public class HTTPAuthHandler extends BasicHandler
   {
  +    static Category category =
  +            Category.getInstance(HTTPAuthHandler.class.getName());
  +
       public void invoke(MessageContext msgContext) throws AxisFault
       {
  -        Debug.Print( 1, "Enter: HTTPAuthHandler::invoke" );
  +        category.debug("Enter: HTTPAuthHandler::invoke" );
           
           HttpServletRequest req = (HttpServletRequest)msgContext.getProperty(
                                         HTTPConstants.MC_HTTP_SERVLETREQUEST);
  @@ -102,12 +106,12 @@
               }
           }
   
  -        Debug.Print( 1, "Exit : HTTPAuthHandler::invoke" );
  +        category.debug("Exit : HTTPAuthHandler::invoke" );
       }
   
       public void undo(MessageContext msgContext) 
       {
  -        Debug.Print( 1, "Enter: HTTPActionHandler::undo" );
  -        Debug.Print( 1, "Exit: HTTPActionHandler::undo" );
  +        category.debug("Enter: HTTPActionHandler::undo" );
  +        category.debug("Exit: HTTPActionHandler::undo" );
       }
   }
  
  
  
  1.5       +8 -4      xml-axis/java/src/org/apache/axis/handlers/http/URLMapper.java
  
  Index: URLMapper.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/http/URLMapper.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- URLMapper.java	2001/08/21 05:15:35	1.4
  +++ URLMapper.java	2001/09/05 12:11:24	1.5
  @@ -58,6 +58,7 @@
   import org.apache.axis.handlers.BasicHandler;
   import org.apache.axis.utils.Debug;
   import org.apache.axis.transport.http.HTTPConstants;
  +import org.apache.log4j.Category;
   
   import javax.servlet.http.* ;
   
  @@ -68,9 +69,12 @@
    */
   public class URLMapper extends BasicHandler
   {
  +    static Category category =
  +            Category.getInstance(URLMapper.class.getName());
  +
       public void invoke(MessageContext msgContext) throws AxisFault
       {
  -        Debug.Print( 1, "Enter: URLMapper::invoke" );
  +        category.debug("Enter: URLMapper::invoke" );
   
           /** If there's already a targetService then just return.
            */
  @@ -87,7 +91,7 @@
               }
           }
   
  -        Debug.Print( 1, "Exit : URLMapper::invoke" );
  +        category.debug("Exit : URLMapper::invoke" );
       }
   
       public void generateWSDL(MessageContext msgContext) throws AxisFault {
  @@ -96,7 +100,7 @@
   
       public void undo(MessageContext msgContext)
       {
  -        Debug.Print( 1, "Enter: URLMapper::undo" );
  -        Debug.Print( 1, "Exit: URLMapper::undo" );
  +        category.debug("Enter: URLMapper::undo" );
  +        category.debug("Exit: URLMapper::undo" );
       }
   }
  
  
  
  1.21      +14 -10    xml-axis/java/src/org/apache/axis/handlers/soap/SOAPService.java
  
  Index: SOAPService.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/soap/SOAPService.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- SOAPService.java	2001/08/29 16:02:22	1.20
  +++ SOAPService.java	2001/09/05 12:11:24	1.21
  @@ -63,6 +63,7 @@
   import org.apache.axis.utils.QName;
   import org.apache.axis.transport.http.HTTPConstants;
   import org.apache.axis.registries.* ;
  +import org.apache.log4j.Category;
   import org.w3c.dom.*;
   
   /** A <code>SOAPService</code> is a Handler which encapsulates a SOAP
  @@ -74,6 +75,9 @@
    */
   public class SOAPService extends SimpleTargetedChain
   {
  +    static Category category =
  +            Category.getInstance(SOAPService.class.getName());
  +
       /** Valid transports for this service
        * (server side only!)
        * 
  @@ -153,7 +157,7 @@
       
       public void invoke(MessageContext msgContext) throws AxisFault
       {
  -        Debug.Print( 1, "Enter: SOAPService::invoke" );
  +        category.debug("Enter: SOAPService::invoke" );
           
           if (!availableFromTransport(msgContext.getTransportName()))
               throw new AxisFault("Server.NotAvailable",
  @@ -165,14 +169,14 @@
   
           Handler h = getRequestHandler() ;
           if ( h != null ) {
  -            Debug.Print( 2, "Invoking request chain" );
  +            category.debug( "Invoking request chain" );
               h.invoke(msgContext);
           } else {
               Debug.Print( 3, "No request chain" );
           }
   
           // Do SOAP semantics here
  -        Debug.Print( 2, "Doing SOAP semantic checks...");
  +        category.debug( "Doing SOAP semantic checks...");
           
           // 1. Check mustUnderstands
           SOAPEnvelope env = msgContext.getRequestMessage().getAsSOAPEnvelope();
  @@ -224,7 +228,7 @@
   
           h = getPivotHandler();
           if ( h != null ) {
  -            Debug.Print( 2, "Invoking service/pivot" );
  +            category.debug( "Invoking service/pivot" );
               h.invoke(msgContext);
           } else {
               Debug.Print( 3, "No service/pivot" );
  @@ -235,23 +239,23 @@
           
           h = getResponseHandler();
           if ( h != null ) {
  -            Debug.Print( 2, "Invoking response chain" );
  +            category.debug( "Invoking response chain" );
               h.invoke(msgContext);
           } else {
               Debug.Print( 3, "No response chain" );
           }
   
  -        Debug.Print( 1, "Exit : SOAPService::invoke" );
  +        category.debug("Exit : SOAPService::invoke" );
       }
   
       public void undo(MessageContext msgContext) 
       {
  -        Debug.Print( 1, "Enter: SOAPService::undo" );
  -        Debug.Print( 1, "Exit: SOAPService::undo" );
  +        category.debug("Enter: SOAPService::undo" );
  +        category.debug("Exit: SOAPService::undo" );
       }
   
       public Element getDeploymentData(Document doc) {
  -      Debug.Print( 1, "Enter: SOAPService::getDeploymentData" );
  +      category.debug("Enter: SOAPService::getDeploymentData" );
   
         Element  root = doc.createElement( "service" );
   
  @@ -263,7 +267,7 @@
           root.appendChild(elem);
         }
         
  -      Debug.Print( 1, "Exit: SOAPService::getDeploymentData" );
  +      category.debug("Exit: SOAPService::getDeploymentData" );
         return( root );
       }
   
  
  
  
  1.14      +8 -4      xml-axis/java/src/org/apache/axis/providers/java/JavaProvider.java
  
  Index: JavaProvider.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/providers/java/JavaProvider.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- JavaProvider.java	2001/08/31 19:16:13	1.13
  +++ JavaProvider.java	2001/09/05 12:11:24	1.14
  @@ -62,6 +62,7 @@
   import org.apache.axis.utils.cache.* ;
   import org.apache.axis.message.* ;
   import org.apache.axis.providers.BasicProvider;
  +import org.apache.log4j.Category;
   import org.w3c.dom.Document;
   
   /**
  @@ -73,7 +74,10 @@
    * @author Carl Woolf (cwoolf@macromedia.com)
    */
   public abstract class JavaProvider extends BasicProvider {
  +    static Category category =
  +            Category.getInstance(JavaProvider.class.getName());
   
  +
       // from the original stubbed-out JavaProvider...
       // not quite sure what these are for but it is to do with WSDD... -- RobJ
       public static final String OPTION_CLASSNAME = "className";
  @@ -245,11 +249,11 @@
               if ( !(exp instanceof AxisFault) ) exp = new AxisFault(exp);
               throw (AxisFault) exp ;
           }
  -        Debug.Print( 1, "Exit: JavaProvider::invoke (for provider "+this+")");
  +        category.debug("Exit: JavaProvider::invoke (for provider "+this+")");
       }
   
       public void generateWSDL(MessageContext msgContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: JavaProvider::editWSDL (for provider "+this+")" );
  +        category.debug("Enter: JavaProvider::editWSDL (for provider "+this+")" );
   
           /* Find the service we're invoking so we can grab it's options */
           /***************************************************************/
  @@ -305,8 +309,8 @@
       }
   
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: RPCDispatchHandler::undo" );
  -        Debug.Print( 1, "Exit: RPCDispatchHandler::undo" );
  +        category.debug("Enter: RPCDispatchHandler::undo" );
  +        category.debug("Exit: RPCDispatchHandler::undo" );
       }
   
       ///////////////////////////////////////////////////////////////
  
  
  
  1.10      +2 -2      xml-axis/java/src/org/apache/axis/providers/java/MsgProvider.java
  
  Index: MsgProvider.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/providers/java/MsgProvider.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- MsgProvider.java	2001/09/04 16:10:53	1.9
  +++ MsgProvider.java	2001/09/05 12:11:24	1.10
  @@ -174,7 +174,7 @@
       
       
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: MsgDispatcherHandler::undo" );
  -        Debug.Print( 1, "Exit: MsgDispatcherHandler::undo" );
  +        category.debug("Enter: MsgDispatcherHandler::undo" );
  +        category.debug("Exit: MsgDispatcherHandler::undo" );
       }
   };
  
  
  
  1.17      +7 -3      xml-axis/java/src/org/apache/axis/providers/java/RPCProvider.java
  
  Index: RPCProvider.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/providers/java/RPCProvider.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- RPCProvider.java	2001/09/01 15:27:38	1.16
  +++ RPCProvider.java	2001/09/05 12:11:24	1.17
  @@ -61,6 +61,7 @@
   import org.apache.axis.utils.* ;
   import org.apache.axis.utils.cache.* ;
   import org.apache.axis.message.* ;
  +import org.apache.log4j.Category;
   
   /**
    * Implement message processing by walking over RPCElements of the
  @@ -69,6 +70,9 @@
    * @author Doug Davis (dug@us.ibm.com)
    */
   public class RPCProvider extends JavaProvider {
  +    static Category category =
  +            Category.getInstance(RPCProvider.class.getName());
  +
       private static final boolean DEBUG_LOG = false;
       
       public void processMessage (MessageContext msgContext,
  @@ -141,9 +145,9 @@
                                           "Service nameList=" + allowedMethods,
                                       null, null );  // should they??
               
  -            Debug.Print( 2, "mName: ", mName );
  -            Debug.Print( 2, "MethodNameMatch: ", methodNameMatch );
  -            Debug.Print( 2, "MethodName List: ", allowedMethods );
  +            category.debug( "mName: " + mName );
  +            category.debug( "MethodNameMatch: " + methodNameMatch );
  +            category.debug( "MethodName List: " + allowedMethods );
   
   			///////////////////////////////////////////////////////////////
   			// If allowedMethods (i.e. methodNameMatch) is null, 
  
  
  
  1.11      +17 -8     xml-axis/java/src/org/apache/axis/registries/SupplierRegistry.java
  
  Index: SupplierRegistry.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/registries/SupplierRegistry.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- SupplierRegistry.java	2001/06/27 16:18:32	1.10
  +++ SupplierRegistry.java	2001/09/05 12:11:25	1.11
  @@ -64,6 +64,7 @@
   
   import org.apache.axis.utils.Admin;
   import org.apache.axis.utils.XMLUtils;
  +import org.apache.log4j.Category;
   import org.w3c.dom.*;
   
   /** A <code>SupplierRegistry</code> contains Suppliers, which are used
  @@ -74,6 +75,9 @@
    * @author Doug Davis (dug@us.ibm.com)
    */
   public class SupplierRegistry implements HandlerRegistry {
  +    static Category category =
  +            Category.getInstance(SupplierRegistry.class.getName());
  +
       private static final boolean DEBUG_LOG = false;
       
       protected Hashtable  suppliers = null ;
  @@ -117,22 +121,27 @@
        * Given a 'key' return the corresponding Handler
        */
       public Handler find(String key) {
  -        Debug.Print( 4, "Enter: SupplierRegistry::find(", key, ")" );
  +        if (category.isDebugEnabled())
  +            category.debug("Enter: SupplierRegistry::find(" + key + ")" );
           if (key == null) {
  -          Debug.Print( 4, "Exit: SupplierRegistry::find - key is null" );
  -          return( null );
  +            if (category.isDebugEnabled())
  +                category.debug("Exit: SupplierRegistry::find - key is null" );
  +            return( null );
           }
           if ( suppliers == null ) {
  -          Debug.Print( 4, "Exit: SupplierRegistry::find - suppliers is null" );
  -          return( null );
  +            if (category.isDebugEnabled())
  +                category.debug("Exit: SupplierRegistry::find - suppliers is null" );
  +            return( null );
           }
           Supplier supplier = (Supplier)suppliers.get(key);
           if (supplier == null) {
  -          Debug.Print( 4, "Exit: SupplierRegistry::find - supplier is null" );
  -          return null;
  +            if (category.isDebugEnabled())
  +                category.debug( "Exit: SupplierRegistry::find - supplier is null" );
  +            return null;
           }
           Handler h = supplier.getHandler();
  -        Debug.Print( 4, "Exit: SupplierRegistry::find"  );
  +        if (category.isDebugEnabled())
  +            category.debug( "Exit: SupplierRegistry::find"  );
           return h ;
       }
   
  
  
  
  1.37      +22 -11    xml-axis/java/src/org/apache/axis/server/AxisServer.java
  
  Index: AxisServer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/server/AxisServer.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- AxisServer.java	2001/08/29 16:02:22	1.36
  +++ AxisServer.java	2001/09/05 12:11:25	1.37
  @@ -72,6 +72,7 @@
   
   import org.apache.axis.transport.http.HTTPSender;
   import org.apache.axis.providers.java.*;
  +import org.apache.log4j.Category;
   /**
    *
    * @author Doug Davis (dug@us.ibm.com)
  @@ -79,6 +80,9 @@
    */
   public class AxisServer extends AxisEngine
   {
  +    static Category category =
  +            Category.getInstance(AxisServer.class.getName());
  +
       /**
        * the AxisClient to be used by outcalling Services
        */
  @@ -133,7 +137,7 @@
        * handler for the desired service and invoke() it.
        */
       public void invoke(MessageContext msgContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: AxisServer::invoke" );
  +        category.debug("Enter: AxisServer::invoke" );
   
           if (!isRunning()) {
               throw new AxisFault("Server.disabled",
  @@ -156,7 +160,7 @@
                   if ( hr == null || (h = hr.find(hName)) == null ) {
                       AxisClassLoader cl = msgContext.getClassLoader();
                       try {
  -                        Debug.Print( 2, "Trying to load class: " + hName );
  +                        category.debug( "Trying to load class: " + hName );
                           Class cls = cl.loadClass( hName );
                           h = (Handler) cls.newInstance();
                       }
  @@ -187,7 +191,7 @@
                   /**************************************************************/
   
                   // When do we call init/cleanup??
  -                Debug.Print(1, "Calling default logic in AxisServer" );
  +                category.debug("Calling default logic in AxisServer" );
   
                   /*  This is what the entirety of this logic might evolve to:
   
  @@ -211,8 +215,12 @@
                   hName = msgContext.getTransportName();
                   HandlerRegistry tr = getTransportRegistry();
                   SimpleTargetedChain transportChain = null;
  +
  +                if (category.isInfoEnabled())
  +                    category.info("AxisServer.invoke: Transport = '" +
  +                                  hName +
  +                                  "'");
   
  -                Debug.Print(3, "AxisServer.invoke: Transport = '" + hName +"'");
                   if ( hName != null && (h = tr.find( hName )) != null ) {
                       if (h instanceof SimpleTargetedChain) {
                           transportChain = (SimpleTargetedChain)h;
  @@ -273,14 +281,14 @@
               // Should we even bother catching it ?
               throw new AxisFault(e);
           }
  -        Debug.Print( 1, "Exit: AxisServer::invoke" );
  +        category.debug("Exit: AxisServer::invoke" );
       }
   
       /**
        *
        */
       public void generateWSDL(MessageContext msgContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: AxisServer::editWSDL" );
  +        category.debug("Enter: AxisServer::editWSDL" );
   
           if (!isRunning()) {
               throw new AxisFault("Server.disabled",
  @@ -303,7 +311,7 @@
                   if ( hr == null || (h = hr.find(hName)) == null ) {
                       AxisClassLoader cl = msgContext.getClassLoader();
                       try {
  -                        Debug.Print( 2, "Trying to load class: " + hName );
  +                        category.debug( "Trying to load class: " + hName );
                           Class cls = cl.loadClass( hName );
                           h = (Handler) cls.newInstance();
                       }
  @@ -356,7 +364,10 @@
                   HandlerRegistry tr = getTransportRegistry();
                   SimpleTargetedChain transportChain = null;
   
  -                Debug.Print(3, "AxisServer.editWSDL: Transport = '" + hName +"'");
  +                if (category.isInfoEnabled())
  +                    category.info("AxisServer.editWSDL: Transport = '" +
  +                                  hName +
  +                                  "'");
                   if ( hName != null && (h = tr.find( hName )) != null ) {
                       if (h instanceof SimpleTargetedChain) {
                           transportChain = (SimpleTargetedChain)h;
  @@ -419,11 +430,11 @@
               // Should we even bother catching it ?
               throw new AxisFault( e );
           }
  -        Debug.Print( 1, "Exit: AxisServer::editWSDL" );
  +        category.debug("Exit: AxisServer::editWSDL" );
       }
   
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: AxisServer::undo" );
  -        Debug.Print( 1, "Exit: AxisServer::undo" );
  +        category.debug("Enter: AxisServer::undo" );
  +        category.debug("Exit: AxisServer::undo" );
       };
   };
  
  
  
  1.3       +6 -2      xml-axis/java/src/org/apache/axis/server/Transport.java
  
  Index: Transport.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/server/Transport.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Transport.java	2001/07/12 15:04:21	1.2
  +++ Transport.java	2001/09/05 12:11:25	1.3
  @@ -56,6 +56,7 @@
   
   import org.apache.axis.SimpleTargetedChain;
   import org.apache.axis.utils.Debug;
  +import org.apache.log4j.Category;
   import org.w3c.dom.*;
   
   /**
  @@ -67,14 +68,17 @@
    */
   public class Transport extends SimpleTargetedChain
   {
  +    static Category category =
  +            Category.getInstance(Transport.class.getName());
  +
       public Element getDeploymentData(Document doc) {
  -        Debug.Print( 1, "Enter: Transport::getDeploymentData" );
  +        category.debug("Enter: Transport::getDeploymentData" );
   
           Element  root = doc.createElement( "transport" );
   
           fillInDeploymentData(root);
           
  -        Debug.Print( 1, "Exit: Transport::getDeploymentData" );
  +        category.debug("Exit: Transport::getDeploymentData" );
           return( root );
       }
   }
  
  
  
  1.5       +5 -1      xml-axis/java/src/org/apache/axis/suppliers/FactorySupplier.java
  
  Index: FactorySupplier.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/suppliers/FactorySupplier.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- FactorySupplier.java	2001/08/29 14:17:17	1.4
  +++ FactorySupplier.java	2001/09/05 12:11:25	1.5
  @@ -59,6 +59,7 @@
   import org.apache.axis.Supplier;
   import org.apache.axis.Handler;
   import org.apache.axis.utils.Debug;
  +import org.apache.log4j.Category;
   
   /** A <code>FactorySupplier</code> always gives you a new Handler instance.
    * 
  @@ -66,6 +67,8 @@
    */
   public class FactorySupplier implements Supplier
   {
  +    static Category category = Category.getInstance(FactorySupplier.class.getName());
  +
       Class _class;
       Hashtable _options;
       
  @@ -80,7 +83,8 @@
           try {
               Handler handler = (Handler)_class.newInstance();
               handler.setOptions(_options);
  -            Debug.Print(1, "FactorySupplier returning new instance of " + _class.getName());
  +            if (category.isDebugEnabled())
  +                category.debug("FactorySupplier returning new instance of " + _class.getName());
               return handler;
           } catch (IllegalAccessException e1) {
               e1.printStackTrace();
  
  
  
  1.4       +13 -6     xml-axis/java/src/org/apache/axis/suppliers/SimpleChainSupplier.java
  
  Index: SimpleChainSupplier.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/suppliers/SimpleChainSupplier.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SimpleChainSupplier.java	2001/08/29 14:17:17	1.3
  +++ SimpleChainSupplier.java	2001/09/05 12:11:25	1.4
  @@ -61,6 +61,7 @@
   import org.apache.axis.*;
   import org.apache.axis.utils.Debug;
   import org.apache.axis.registries.HandlerRegistry;
  +import org.apache.log4j.Category;
   
   /** A <code>SimpleChainSupplier</code>
    * 
  @@ -68,6 +69,9 @@
    */
   public class SimpleChainSupplier implements Supplier
   {
  +    static Category category =
  +            Category.getInstance(SimpleChainSupplier.class.getName());
  +
       String _myName;
       Hashtable _options;
       Vector _handlerNames;
  @@ -88,15 +92,17 @@
       public Handler getHandler()
       {
           if (_chain == null) {
  -            Debug.Print(2, "SimpleChainSupplier: Building chain '" + _myName + 
  -                           "'");
  +            if (category.isDebugEnabled())
  +                category.debug( "SimpleChainSupplier: Building chain '" +
  +                                _myName +
  +                                "'");
               Chain c = new SimpleChain();
               c.setOptions(_options);
               c.setName(_myName);
               try {
                   for (int i = 0; i < _handlerNames.size(); i++) {
                       Handler handler = _registry.find(
  -                                                     (String)_handlerNames.elementAt(i));
  +                                          (String)_handlerNames.elementAt(i));
                       c.addHandler(handler);
                   }
               } catch (Exception e) {
  @@ -106,9 +112,10 @@
               
               _chain = c;
           }
  -        
  -        Debug.Print(2, "SimpleChainSupplier: returning chain '" + _myName +
  -                       "'");
  +
  +        if (category.isDebugEnabled())
  +            category.debug("SimpleChainSupplier: returning chain '" + _myName +
  +                           "'");
           
           return _chain;
       }
  
  
  
  1.6       +12 -6     xml-axis/java/src/org/apache/axis/suppliers/TargetedChainSupplier.java
  
  Index: TargetedChainSupplier.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/suppliers/TargetedChainSupplier.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TargetedChainSupplier.java	2001/08/29 14:17:17	1.5
  +++ TargetedChainSupplier.java	2001/09/05 12:11:25	1.6
  @@ -62,6 +62,7 @@
   import org.apache.axis.*;
   import org.apache.axis.utils.Debug;
   import org.apache.axis.registries.HandlerRegistry;
  +import org.apache.log4j.Category;
   
   /** A <code>TargetedChainSupplier</code>
    * 
  @@ -69,6 +70,9 @@
    */
   public class TargetedChainSupplier implements Supplier
   {
  +    static Category category =
  +            Category.getInstance(TargetedChainSupplier.class.getName());
  +
       String _myName;
       Hashtable _options;
       Vector _requestNames;
  @@ -114,8 +118,9 @@
       public Handler getHandler()
       {
           if (_chain == null) {
  -            Debug.Print(2, "TargetedChainSupplier: Building chain '" + _myName + 
  -                           "'");
  +            if (category.isDebugEnabled())
  +                category.debug("TargetedChainSupplier: Building chain '" + _myName +
  +                               "'");
   
               Handler h;
               SimpleTargetedChain c = getNewChain();
  @@ -149,10 +154,11 @@
               
               _chain = c;
           }
  -        
  -        Debug.Print(2, "TargetedChainSupplier: Returning chain '" + _myName + 
  -                       "'");
  -        
  +
  +        if (category.isDebugEnabled())
  +            category.debug( "TargetedChainSupplier: Returning chain '" + _myName +
  +                            "'");
  +        category.log(
           return _chain;
       }
   }
  
  
  
  1.14      +27 -23    xml-axis/java/src/org/apache/axis/transport/http/HTTPSender.java
  
  Index: HTTPSender.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/HTTPSender.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- HTTPSender.java	2001/08/29 14:17:17	1.13
  +++ HTTPSender.java	2001/09/05 12:11:25	1.14
  @@ -68,6 +68,7 @@
   import org.apache.axis.handlers.BasicHandler;
   import org.apache.axis.transport.http.NonBlockingBufferedInputStream;
   import org.apache.axis.encoding.Base64 ;
  +import org.apache.log4j.Category;
   
   import org.w3c.dom.* ;
   
  @@ -77,8 +78,11 @@
    * @author Doug Davis (dug@us.ibm.com)
    */
   public class HTTPSender extends BasicHandler {
  +    static Category category =
  +            Category.getInstance(HTTPSender.class.getName());
  +
       public void invoke(MessageContext msgContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: HTTPSender::invoke" );
  +        category.debug( "Enter: HTTPSender::invoke" );
           /* Find the service we're invoking so we can grab it's options */
           /***************************************************************/
           String   targetURL = null ;
  @@ -145,32 +149,32 @@
                           InputStream tunnelInputStream = (InputStream)SSLSocketClass.getMethod("getInputStream", new Class[] {}).invoke(tunnel, new Object[] {});
                           //BufferedReader in = new BufferedReader(new InputStreamReader(tunnelInputStream));
                           //DataInputStream in = new DataInputStream(tunnelInputStream);
  -                        Debug.Print(1, "Is tunnelInputStream null? " + String.valueOf(tunnelInputStream == null));
  +                        category.debug("Is tunnelInputStream null? " + String.valueOf(tunnelInputStream == null));
                           String replyStr = ""; int i;
  -                        while ((i = tunnelInputStream.read()) != '\n' && i != '\r' && i != -1) { replyStr += String.valueOf((char)i); Debug.Print(1, "got a character in reply, so far: " + replyStr); }
  +                        while ((i = tunnelInputStream.read()) != '\n' && i != '\r' && i != -1) { replyStr += String.valueOf((char)i); }
                           if (!replyStr.startsWith("HTTP/1.0 200") && !replyStr.startsWith("HTTP/1.1 200")) {
                               throw new IOException("Unable to tunnel through " + tunnelHost + ":" + tunnelPort + ".  Proxy returns \"" + replyStr + "\"");
                           }
                           // End of condensed reflective tunnel handshake method
                           sslSocket = createSocketMethod2.invoke(factory,
                                                                  new Object[] {tunnel, host, new Integer(port), new Boolean(true)});
  -                        Debug.Print( 1, "Set up SSL tunnelling through " + tunnelHost + ":" +tunnelPort);
  +                        category.debug( "Set up SSL tunnelling through " + tunnelHost + ":" +tunnelPort);
                       }
                       // must shake out hidden errors!
                       startHandshakeMethod.invoke(sslSocket, new Object[] {});
                       sock = (Socket)sslSocket;
                   } catch (ClassNotFoundException cnfe) {
  -                    Debug.Print( 1, "SSL feature disallowed: JSSE files not installed or present in classpath");
  +                    category.debug( "SSL feature disallowed: JSSE files not installed or present in classpath");
                       throw new AxisFault(cnfe);
                   } catch (NumberFormatException nfe) {
  -                      Debug.Print( 1, "Proxy port number, \"" + tunnelPortString + "\", incorrectly formatted");
  +                      category.debug( "Proxy port number, \"" + tunnelPortString + "\", incorrectly formatted");
                         throw new AxisFault(nfe);
                   }
  -                Debug.Print( 1, "Created an SSL connection");
  +                category.debug( "Created an SSL connection");
               } else {
                   if ((port = tmpURL.getPort()) == -1 ) port = 80;
                   sock    = new Socket( host, port );
  -                Debug.Print( 1, "Created an insecure HTTP connection");
  +                category.debug( "Created an insecure HTTP connection");
               }
   
               // optionally set a timeout for the request
  @@ -252,9 +256,9 @@
               out.write( header.toString().getBytes() );
               out.write( request );
   
  -            Debug.Print( 1, "XML sent:" );
  -            Debug.Print( 1, "---------------------------------------------------");
  -            Debug.Print( 1, header + reqEnv );
  +            category.debug( "XML sent:" );
  +            category.debug( "---------------------------------------------------");
  +            category.debug( header + reqEnv );
   
               byte       lastB=0, b ;
               int        len = 0 ;
  @@ -284,7 +288,7 @@
                           name = new String( buf, 0, len );
                           value = "" ;
                       }
  -                    Debug.Print( 1, name + value );
  +                    category.debug( name + value );
                       if ( msgContext.getProperty(HTTPConstants.MC_HTTP_STATUS_CODE)==null){
                           // Reader status code
                           int start = name.indexOf( ' ' ) + 1 ;
  @@ -324,16 +328,16 @@
                           
                           outMsg = new Message( data );
                           
  -                        Debug.Print( 1, "\nXML received:" );
  -                        Debug.Print( 1, "-----------------------------------------------");
  -                        Debug.Print( 1, xml );
  +                        category.debug( "\nXML received:" );
  +                        category.debug( "-----------------------------------------------");
  +                        category.debug( xml );
                       }
                       else {
                           outMsg = new Message( inp );
  -                        Debug.Print( 1, "\nNo Content-Length" );
  -                        Debug.Print( 1, "\nXML received:" );
  -                        Debug.Print( 1, "-----------------------------------------------");
  -                        Debug.Print( 1, (String) outMsg.getAsString() );
  +                        category.debug( "\nNo Content-Length" );
  +                        category.debug( "\nXML received:" );
  +                        category.debug( "-----------------------------------------------");
  +                        category.debug( (String) outMsg.getAsString() );
                       }
                   } else {
                       outMsg = new Message( inp );
  @@ -358,12 +362,12 @@
               }
           }
           catch( Exception e ) {
  -            Debug.Print( 1, e );
  +            category.debug( e );
               e.printStackTrace();
               if ( !(e instanceof AxisFault) ) e = new AxisFault(e);
               throw (AxisFault) e ;
           }
  -        Debug.Print( 1, "Exit: HTTPDispatchHandler::invoke" );
  +        category.debug( "Exit: HTTPDispatchHandler::invoke" );
       }
       
       // little helper function for cookies
  @@ -386,8 +390,8 @@
       
   
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: HTTPDispatchHandler::undo" );
  -        Debug.Print( 1, "Exit: HTTPDispatchHandler::undo" );
  +        category.debug( "Enter: HTTPDispatchHandler::undo" );
  +        category.debug( "Exit: HTTPDispatchHandler::undo" );
       }
   };
   
  
  
  
  1.3       +8 -4      xml-axis/java/src/org/apache/axis/transport/local/LocalResponder.java
  
  Index: LocalResponder.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/local/LocalResponder.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LocalResponder.java	2001/07/12 15:04:45	1.2
  +++ LocalResponder.java	2001/09/05 12:11:25	1.3
  @@ -58,6 +58,7 @@
   import org.apache.axis.*;
   import org.apache.axis.handlers.*;
   import org.apache.axis.utils.Debug;
  +import org.apache.log4j.Category;
   
   /**
    * Tiny Handler which just makes sure to Stringize the outgoing
  @@ -66,14 +67,17 @@
    * @author Glen Daniels (gdaniels@macromedia.com)
    */
   public class LocalResponder extends BasicHandler {
  +    static Category category =
  +            Category.getInstance(LocalResponder.class.getName());
  +
       public void invoke(MessageContext msgContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: LocalResponder::invoke" );
  +        category.debug("Enter: LocalResponder::invoke" );
           msgContext.getResponseMessage().getAsString();
  -        Debug.Print( 1, "Enter: LocalResponder::invoke" );
  +        category.debug("Enter: LocalResponder::invoke" );
       }
   
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: LocalResponder::undo" );
  -        Debug.Print( 1, "Exit: LocalResponder::undo" );
  +        category.debug("Enter: LocalResponder::undo" );
  +        category.debug("Exit: LocalResponder::undo" );
       }
   };
  
  
  
  1.9       +7 -4      xml-axis/java/src/org/apache/axis/transport/local/LocalSender.java
  
  Index: LocalSender.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/local/LocalSender.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- LocalSender.java	2001/08/15 21:30:17	1.8
  +++ LocalSender.java	2001/09/05 12:11:25	1.9
  @@ -63,6 +63,7 @@
   import org.apache.axis.utils.*;
   import org.apache.axis.message.SOAPEnvelope;
   import org.apache.axis.message.SOAPFaultElement;
  +import org.apache.log4j.Category;
   
   import java.net.*;
   
  @@ -72,6 +73,8 @@
    * @author Sam Ruby <ru...@us.ibm.com>
    */
   public class LocalSender extends BasicHandler {
  +    static Category category =
  +            Category.getInstance(LocalSender.class.getName());
   
       private volatile AxisServer server;
   
  @@ -85,7 +88,7 @@
       }
   
       public void invoke(MessageContext clientContext) throws AxisFault {
  -        Debug.Print( 1, "Enter: LocalSender::invoke" );
  +        category.debug("Enter: LocalSender::invoke" );
   
           AxisServer targetServer = (AxisServer)clientContext.
                                                               getProperty(LocalTransport.LOCAL_SERVER);
  @@ -153,11 +156,11 @@
           clientContext.setResponseMessage(serverContext.getResponseMessage());
           //clientContext.getResponseMessage().getAsString();
   
  -        Debug.Print( 1, "Exit: LocalSender::invoke" );
  +        category.debug("Exit: LocalSender::invoke" );
       }
   
       public void undo(MessageContext msgContext) {
  -        Debug.Print( 1, "Enter: LocalSender::undo" );
  -        Debug.Print( 1, "Exit: LocalSender::undo" );
  +        category.debug("Enter: LocalSender::undo" );
  +        category.debug("Exit: LocalSender::undo" );
       }
   };
  
  
  
  1.62      +13 -9     xml-axis/java/src/org/apache/axis/utils/Admin.java
  
  Index: Admin.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/Admin.java,v
  retrieving revision 1.61
  retrieving revision 1.62
  diff -u -r1.61 -r1.62
  --- Admin.java	2001/08/29 16:02:22	1.61
  +++ Admin.java	2001/09/05 12:11:25	1.62
  @@ -69,6 +69,7 @@
   import org.apache.axis.client.AxisClient;
   import org.apache.axis.client.Transport;
   import org.apache.axis.server.AxisServer;
  +import org.apache.log4j.Category;
   
   import org.w3c.dom.* ;
   
  @@ -81,6 +82,9 @@
    */
   public class Admin {
   
  +    static Category category =
  +            Category.getInstance(Admin.class.getName());
  +
       /**
        * Fill in options for a given handler.
        *
  @@ -152,9 +156,9 @@
       public Document AdminService(MessageContext msgContext, Document xml)
           throws AxisFault
       {
  -        Debug.Print( 1, "Enter: Admin:AdminService" );
  +        category.debug("Enter: Admin:AdminService" );
           Document doc = process( msgContext, xml.getDocumentElement() );
  -        Debug.Print( 1, "Exit: Admin:AdminService" );
  +        category.debug("Exit: Admin:AdminService" );
           return( doc );
       }
   
  @@ -377,11 +381,11 @@
                   
                   if ( action.equals( "undeploy" ) ) {
                       if ( type.equals("service") ) {
  -                        Debug.Print( 2, "Undeploying " + type + ": " + name );
  +                        category.info( "Undeploying " + type + ": " + name );
                           engine.undeployService( name );
                       }
                       else if ( type.equals("handler") || type.equals("chain") ) {
  -                        Debug.Print( 2, "Undeploying " + type + ": " + name );
  +                        category.info( "Undeploying " + type + ": " + name );
                           engine.undeployHandler( name );
                       }
                       else
  @@ -533,7 +537,7 @@
           if ("".equals(name)) name = null;
   
           if (flow != null) {
  -            Debug.Print( 2, "Deploying chain: " + name );
  +            category.info( "Deploying chain: " + name );
               Vector names = new Vector();
               
               StringTokenizer st = new StringTokenizer( flow, " \t\n\r\f," );
  @@ -550,7 +554,7 @@
               hr.add(name, supp);
           }
           else {
  -            Debug.Print( 2, "Deploying chain: " + name );
  +            category.info( "Deploying chain: " + name );
               
               if ((request == null) &&
                   (response == null) &&
  @@ -609,7 +613,7 @@
           if ( pivot  != null && pivot.equals("") )  pivot = null ;
           if ( name != null && name.equals("") ) name = null ;
   
  -        Debug.Print( 2, "Deploying service: " + name );
  +        category.info( "Deploying service: " + name );
           String            hName = null ;
           Handler            tmpH = null ;
           StringTokenizer      st = null ;
  @@ -703,7 +707,7 @@
   
               String   cls   = elem.getAttribute( "class" );
               if ( cls != null && cls.equals("") ) cls = null ;
  -            Debug.Print( 2, "Deploying handler: " + name );
  +            category.info( "Deploying handler: " + name );
               
               h = hr.find( name );
               if ( h == null ) h = (Handler) cl.loadClass(cls).newInstance();
  @@ -738,7 +742,7 @@
           if ( sender  != null && sender.equals("") )  sender = null ;
           if ( name != null && name.equals("") ) name = null ;
   
  -        Debug.Print( 2, "Deploying Transport: " + name );
  +        category.info( "Deploying Transport: " + name );
           StringTokenizer      st = null ;
           Vector reqNames = new Vector();
           Vector respNames = new Vector();