amyroh 2002/08/26 14:06:27 Modified: catalina/src/share/org/apache/catalina/mbeans MBeanFactory.java Log: Update createConnector methods to work with Tomcat 5 connectors. Revision Changes Path 1.3 +8 -8 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java Index: MBeanFactory.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- MBeanFactory.java 21 Aug 2002 08:18:20 -0000 1.2 +++ MBeanFactory.java 26 Aug 2002 21:06:27 -0000 1.3 @@ -254,7 +254,7 @@ // Create a new CoyoteConnector instance for AJP // use reflection to avoid j-t-c compile-time circular dependencies - Class cls = Class.forName("org.apache.coyote.tomcat4.CoyoteConnector"); + Class cls = Class.forName("org.apache.coyote.tomcat5.CoyoteConnector"); Constructor ct = cls.getConstructor(null); retobj = ct.newInstance(null); Class partypes1 [] = new Class[1]; @@ -393,7 +393,7 @@ // Create a new CoyoteConnector instance // use reflection to avoid j-t-c compile-time circular dependencies - Class cls = Class.forName("org.apache.coyote.tomcat4.CoyoteConnector"); + Class cls = Class.forName("org.apache.coyote.tomcat5.CoyoteConnector"); Constructor ct = cls.getConstructor(null); retobj = ct.newInstance(null); Class partypes1 [] = new Class[1]; @@ -448,7 +448,7 @@ // Create a new CoyoteConnector instance // use reflection to avoid j-t-c compile-time circular dependencies - Class cls = Class.forName("org.apache.coyote.tomcat4.CoyoteConnector"); + Class cls = Class.forName("org.apache.coyote.tomcat5.CoyoteConnector"); Constructor ct = cls.getConstructor(null); retobj = ct.newInstance(null); Class partypes1 [] = new Class[1]; @@ -484,7 +484,7 @@ Class serverSocketFactoryCls = Class.forName("org.apache.catalina.net.ServerSocketFactory"); Class coyoteServerSocketFactoryCls = - Class.forName("org.apache.coyote.tomcat4.CoyoteServerSocketFactory"); + Class.forName("org.apache.coyote.tomcat5.CoyoteServerSocketFactory"); Constructor factoryConst = coyoteServerSocketFactoryCls.getConstructor(null); Object factoryObj = factoryConst.newInstance(null);
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>