You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2008/11/14 09:07:06 UTC

[jira] Created: (SM-1688) update classworlds version from 1.0.1 to 1.1

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.3, 3.2.3
            Reporter: 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.


[jira] Commented: (SM-1688) update classworlds version from 1.0.1 to 1.1

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Assigned: (SM-1688) update classworlds version from 1.0.1 to 1.1

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang reassigned SM-1688:
--------------------------------

    Assignee: Freeman Fang

> 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.


[jira] Resolved: (SM-1688) update classworlds version from 1.0.1 to 1.1

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved SM-1688.
------------------------------

    Resolution: Fixed

commit fix
http://svn.apache.org/viewvc?rev=718163&view=rev for 3.2 branch
http://svn.apache.org/viewvc?rev=718162&view=rev for trunk

> 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.


[jira] Work started: (SM-1688) update classworlds version from 1.0.1 to 1.1

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on SM-1688 started by Freeman Fang.

> 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.