[ 
https://issues.apache.org/activemq/browse/SM-1688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47431#action_47431
 ] 

Freeman Fang commented on SM-1688:
----------------------------------

classworlds 1.1 use System.exit() explicitly after lauch customer's Main, which 
cause servicemix always unwilling exit
the classworlds 1.1 main method is
public static void main( String[] args )
    {
        try
         {
             int exitCode = mainWithExitCode( args );
             System.exit( exitCode );
         }
         catch ( Exception e )
         {
             e.printStackTrace();
             System.exit( 100 );
         }
     }

We need keep main thread of org.apache.servicemix.Main alive to avoid 
System.exit() being invoked during servicemix runing. Add code
           while (true) {
                try {
                    Thread.sleep(60000);
                } catch (InterruptedException e) {
                    //
                }
            }

just keep main thread alive.

> update classworlds version from 1.0.1 to 1.1
> --------------------------------------------
>
>                 Key: SM-1688
>                 URL: https://issues.apache.org/activemq/browse/SM-1688
>             Project: ServiceMix
>          Issue Type: Improvement
>    Affects Versions: 3.2.3, 3.3
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.3.1, 3.2.4
>
>
> In classworlds 1.0.1, the UrlUtils.java has some debug code like
> if ( name.startsWith( "/" ) )
>         {
>             name = name.substring( 1 );
>             System.out.println( "1 name = " + name );
>         }
> that's why we always see  output like
> 1 name = quartz.properties
> 1 name = cxf.xml
> when we start servicemix.
> Fortunately, classworlds 1.1 remove the System.out, so we should upgrade to 
> 1.1 accordingly to get this benefit

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to