You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Chris Custine (JIRA)" <ji...@apache.org> on 2009/02/26 03:30:00 UTC

[jira] Created: (SMXCOMP-463) CXF logs message to console on first start

CXF logs message to console on first start
------------------------------------------

                 Key: SMXCOMP-463
                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-463
             Project: ServiceMix Components
          Issue Type: Bug
          Components: servicemix-cxf-bc, servicemix-cxf-se
    Affects Versions: servicemix-cxf-se-2008.01, servicemix-cxf-bc-2008.01
            Reporter: Chris Custine


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.

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


[jira] Assigned: (SMX4-233) CXF logs message to console on first start

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

Freeman Fang reassigned SMX4-233:
---------------------------------

    Assignee: Freeman Fang

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


[jira] Commented: (SMX4-233) CXF logs message to console on first start

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50225#action_50225 ] 

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

all log from cxf output to both the data/log/servicemix.log and console.
Seems the ops pax logging configuration works (can redirect to the servicemix.log) but somehow can't completely override the cxf original log behavior.


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


[jira] Commented: (SMX4-233) CXF logs message to console on first start

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50062#action_50062 ] 

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

sure, will investigate what heppend here

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


[jira] Commented: (SMX4-233) CXF logs message to console on first start

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50242#action_50242 ] 

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

just found JDK logging by default console output to stderr (file descriptor2) but not stdout (file descriptor1) , I believe that's why pax logging  can't capture the console output of JDK logging

run "./servicemix > result.txt" still can see 
Mar 6, 2009 2:17:07 PM org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
INFO: No cxf.xml configuration file detected, relying on defaults.
on the console
run "./servicemix &> result.txt" then we can redirect the output to result.txt.



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


[jira] Commented: (SMX4-233) CXF logs message to console on first start

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50059#action_50059 ] 

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

the solution could be add cxf.logging.properties file and in specify only WARN or higer level message could be print out on console, no changes for log to the servicemix.log file, so that we can avoid the noisy INFO when start the servicemix
we need change servicemix launch script for features project to pass in -Djava.util.logging.config.file
attchment is the patch for this issue


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


[jira] Updated: (SMX4-233) CXF logs message to console on first start

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

Freeman Fang updated SMX4-233:
------------------------------

    Attachment: patch.txt

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


[jira] Closed: (SMX4KNL-230) Log statements using java.util.logging are logged into both stderr and data/log/servicemix.log file

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

Guillaume Nodet closed SMX4KNL-230.
-----------------------------------


> Log statements using java.util.logging are logged into both stderr and data/log/servicemix.log file
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SMX4KNL-230
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-230
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>    Affects Versions: 1.1.0
>            Reporter: Chris Custine
>            Assignee: Freeman Fang
>             Fix For: 1.1.0
>
>         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.
> smx@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.


[jira] Commented: (SMX4-233) CXF logs message to console on first start

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50061#action_50061 ] 

Guillaume Nodet commented on SMX4-233:
--------------------------------------

Not sure what happens exactly.
The pax logging bundle which is included in servicemix is supposed to redirect all calls to java.util.logging to the internal log4j (hence to ./data/log).
Can you check what happens ?

There should be no need to add java.util.logging.config.file btw, it should be set up automatically by pax logging.

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


[jira] Commented: (SMX4KNL-230) CXF logs message to console on first start

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50251#action_50251 ] 

Freeman Fang commented on SMX4KNL-230:
--------------------------------------

after have a chat with Guillaume, seems this issue is caused by pax logging jdk handler didn't remove the original jdk logging one, we need provide an empty java.util.logging.config.file to disable the original jdk logging output

> CXF logs message to console on first start
> ------------------------------------------
>
>                 Key: SMX4KNL-230
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-230
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>    Affects Versions: 1.1.0
>            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.
> smx@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.


[jira] Updated: (SMX4KNL-230) Log statements using java.util.logging are logged into both stderr and data/log/servicemix.log file

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

Guillaume Nodet updated SMX4KNL-230:
------------------------------------

    Summary: Log statements using java.util.logging are logged into both stderr and data/log/servicemix.log file  (was: CXF logs message to console on first start)

> Log statements using java.util.logging are logged into both stderr and data/log/servicemix.log file
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SMX4KNL-230
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-230
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>    Affects Versions: 1.1.0
>            Reporter: Chris Custine
>            Assignee: Freeman Fang
>             Fix For: 1.1.0
>
>         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.
> smx@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.


[jira] Moved: (SMX4-233) CXF logs message to console on first start

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

Freeman Fang moved SMXCOMP-463 to SMX4-233:
-------------------------------------------

          Component/s:     (was: servicemix-cxf-bc)
                           (was: servicemix-cxf-se)
    Affects Version/s:     (was: servicemix-cxf-bc-2008.01)
                           (was: servicemix-cxf-se-2008.01)
                       4.0-m2
           Issue Type: Improvement  (was: Bug)
                  Key: SMX4-233  (was: SMXCOMP-463)
              Project: ServiceMix 4  (was: ServiceMix Components)

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


[jira] Moved: (SMX4KNL-230) CXF logs message to console on first start

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

Freeman Fang moved SMX4-233 to SMX4KNL-230:
-------------------------------------------

    Affects Version/s:     (was: 4.0-m2)
                       1.1.0
                  Key: SMX4KNL-230  (was: SMX4-233)
              Project: ServiceMix Kernel  (was: ServiceMix 4)

> CXF logs message to console on first start
> ------------------------------------------
>
>                 Key: SMX4KNL-230
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-230
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>    Affects Versions: 1.1.0
>            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.
> smx@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.


[jira] Updated: (SMX4KNL-230) Log statements using java.util.logging are logged into both stderr and data/log/servicemix.log file

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

Guillaume Nodet updated SMX4KNL-230:
------------------------------------

    Fix Version/s: 1.1.0

> Log statements using java.util.logging are logged into both stderr and data/log/servicemix.log file
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SMX4KNL-230
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-230
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>    Affects Versions: 1.1.0
>            Reporter: Chris Custine
>            Assignee: Freeman Fang
>             Fix For: 1.1.0
>
>         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.
> smx@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.


[jira] Commented: (SMX4-233) CXF logs message to console on first start

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


[jira] Resolved: (SMX4KNL-230) Log statements using java.util.logging are logged into both stderr and data/log/servicemix.log file

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

Freeman Fang resolved SMX4KNL-230.
----------------------------------

    Resolution: Fixed

http://svn.apache.org/viewvc?rev=750818&view=rev

> Log statements using java.util.logging are logged into both stderr and data/log/servicemix.log file
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SMX4KNL-230
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-230
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>    Affects Versions: 1.1.0
>            Reporter: Chris Custine
>            Assignee: Freeman Fang
>             Fix For: 1.1.0
>
>         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.
> smx@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.