costin      2002/07/24 15:13:06

  Modified:    jk/java/org/apache/jk/server JkMain.java
  Log:
  Changed the default to include only the socket and base modules.
  
  For anything else you must explicitely edit jk2.properties.
  
  The reason for the change - many people seem confused about the
  messages about jni.so library, and this require additional actions
  ( i.e. install the .so ) anyway.
  
  Also replaced some printlns with log.
  
  Revision  Changes    Path
  1.28      +8 -3      
jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkMain.java
  
  Index: JkMain.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkMain.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- JkMain.java       2 Jul 2002 19:58:27 -0000       1.27
  +++ JkMain.java       24 Jul 2002 22:13:06 -0000      1.28
  @@ -228,13 +228,18 @@
           }
       }
       
  -    static String defaultHandlers[]= { "apr",
  +    static String defaultHandlers[]= { "request",
  +                                       "container",
  +                                       "channelSocket"};
  +    /*
  +     static String defaultHandlers[]= { "apr",
                                          "shm",
                                          "request",
                                          "container",
                                          "channelSocket",
                                          "channelJni",
                                          "channelUnix"};
  +    */
       
       public void stop() 
       {
  @@ -435,7 +440,7 @@
           JkHandler handler;
           String classN=modules.getProperty(type);
           if( classN == null ) {
  -            System.err.println("No class name for " + fullName + " " + type );
  +            log.error("No class name for " + fullName + " " + type );
               return null;
           }
           try {
  @@ -463,7 +468,7 @@
               String name= k.substring( plen );
               String propValue=props.getProperty( k );
   
  -            System.out.println("Register " + name + " " + propValue );
  +            if( log.isDebugEnabled()) log.debug("Register " + name + " " + 
propValue );
               modules.put( name, propValue );
           }
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to