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 "Korale Gamaralalage Nandika Chandrasiri Jayawardana (Jira)" <ji...@apache.org> on 2025/04/26 12:27:00 UTC

[jira] [Created] (AXIS2-6092) Hard coded class name org.apache.commons.httpclient.MultiThreadedHttpConnectionManager in AxisServlet

Korale Gamaralalage Nandika Chandrasiri Jayawardana created AXIS2-6092:
--------------------------------------------------------------------------

             Summary: Hard coded class name org.apache.commons.httpclient.MultiThreadedHttpConnectionManager in AxisServlet
                 Key: AXIS2-6092
                 URL: https://issues.apache.org/jira/browse/AXIS2-6092
             Project: Axis2
          Issue Type: Bug
          Components: transports
    Affects Versions: 2.0.0
            Reporter: Korale Gamaralalage Nandika Chandrasiri Jayawardana


AxisServlet destory method has hard coded the org.apache.commons.httpclient.MultiThreadedHttpConnectionManager class name which causes a class not found exception at server shutdown.

 

public void destroy() {
        //stoping listner manager
        try {
            if (configContext != null) {
                configContext.terminate();
            }
        } catch (AxisFault axisFault) {
            log.info(axisFault.getMessage());
        }
        try {
            super.destroy();
        } catch (Exception e) {
            log.info(e.getMessage());
        }
        // AXIS2-4898: MultiThreadedHttpConnectionManager starts a thread that is not stopped by the
        // shutdown of the connection manager. If we want to avoid a resource leak, we need to call
        // shutdownAll here.
        try {
            Class.forName("org.apache.commons.httpclient.MultiThreadedHttpConnectionManager").getMethod("shutdownAll").invoke(null);
        } catch (Exception ex) {
            log.error("Failed to shut down MultiThreadedHttpConnectionManager", ex);
        }



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org