[ 
https://issues.apache.org/activemq/browse/SMX4-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50243#action_50243
 ] 

Freeman Fang commented on SMX4-233:
-----------------------------------

well, the solution could be 
add 2>1 in servicemix launch script to redirect stderr to stdout, so that pax 
logging can also capture this JDK logging console output.
the main  function in servicemix script now looks like
main() {
    init
    run $@ 2>1
}
and for windows
the change is add 2>1 to the end of
%JAVA%" %JAVA_OPTS% %OPTS% -classpath "%CLASSPATH%" 
-Dservicemix.home="%SERVICEMIX_HOME%" -Dservicemix.base="%SERVICEMIX_BASE%" 
-Djava.util.logging.config.file=%SERVICEMIX_BASE%\etc\cxf.logging.properties 
org.apache.servicemix.kernel.main.Main %ARGS%

If this solution is ok I will commit fix in kernel to change the scripts

> CXF logs message to console on first start
> ------------------------------------------
>
>                 Key: SMX4-233
>                 URL: https://issues.apache.org/activemq/browse/SMX4-233
>             Project: ServiceMix 4
>          Issue Type: Improvement
>    Affects Versions: 4.0-m2
>            Reporter: Chris Custine
>            Assignee: Freeman Fang
>         Attachments: patch.txt
>
>
> I get the following message printed to the console on first start.  The 
> message is normal, but it may be confusing for first time users when they 
> first run SMX4.  It would be nice to figure out how to suppress this message 
> just to keep the startup clean.
> s...@root:/> Feb 25, 2009 7:17:26 PM 
> org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
> INFO: No cxf.xml configuration file detected, relying on defaults.

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