[ 
https://issues.apache.org/jira/browse/AXIS2-6092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17951423#comment-17951423
 ] 

Korale Gamaralalage Nandika Chandrasiri Jayawardana commented on AXIS2-6092:
----------------------------------------------------------------------------

Added pull request https://github.com/apache/axis-axis2-java-core/pull/918

> 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
>            Priority: Minor
>
> 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-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to