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: [email protected]
For additional commands, e-mail: [email protected]