You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Benson Margulies <bi...@gmail.com> on 2008/04/08 18:08:13 UTC

[DISCUSS] how noisy should the tools be?

I propose changing the default log level for our tools from INFO to WARN. I
paste below my justification. Anyone object?


generate_source:
     [java] Apr 8, 2008 11:06:49 AM
org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
     [java] INFO: Loading plugin
jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/tools-plugin.xml
     [java] Apr 8, 2008 11:06:50 AM
org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
     [java] INFO: Found 1 frontends in <default> plugin.
     [java] Apr 8, 2008 11:06:50 AM
org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
     [java] INFO: Loading <jaxws> frontend from <default> plugin.
     [java] Apr 8, 2008 11:06:50 AM
org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
     [java] INFO: Found 1 databindings in <default> plugin.
     [java] Apr 8, 2008 11:06:50 AM
org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
     [java] INFO: Loading <jaxb> databinding from <default> plugin.
     [java] Apr 8, 2008 11:06:50 AM
org.springframework.context.support.AbstractApplicationContext
prepareRefresh
     [java] INFO: Refreshing
org.apache.cxf.bus.spring.BusApplicationContext@1a1399: display name
[org.apache.cxf.bus.spring.BusApplicationContext@1a1399]; startup date [Tue
Apr 08 11:06:50 GMT-05:00 2008]; root of context hierarchy
     [java] Apr 8, 2008 11:06:50 AM
org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
     [java] INFO: No cxf.xml configuration file detected, relying on
defaults.
     [java] Apr 8, 2008 11:06:50 AM
org.springframework.beans.factory.support.DefaultListableBeanFactory
registerBeanDefinition
     [java] INFO: Overriding bean definition for bean
'org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder': replacing
[Root bean: class
[org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder];
scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true;
autowireMode=0; dependencyCheck=0; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined
in URL
[jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
with [Root bean: class
[org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder];
scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true;
autowireMode=0; dependencyCheck=0; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined
in URL
[jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
     [java] Apr 8, 2008 11:06:50 AM
org.springframework.beans.factory.support.DefaultListableBeanFactory
registerBeanDefinition
     [java] INFO: Overriding bean definition for bean
'org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder': replacing
[Root bean: class
[org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder];
scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true;
autowireMode=0; dependencyCheck=0; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined
in URL
[jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
with [Root bean: class
[org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder];
scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true;
autowireMode=0; dependencyCheck=0; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined
in URL
[jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
     [java] Apr 8, 2008 11:06:50 AM
org.springframework.beans.factory.support.DefaultListableBeanFactory
registerBeanDefinition
     [java] INFO: Overriding bean definition for bean
'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing
[Root bean: class
[org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory];
scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true;
autowireMode=0; dependencyCheck=0; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined
in URL
[jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
with [Root bean: class
[org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory];
scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true;
autowireMode=0; dependencyCheck=0; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined
in URL
[jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
     [java] Apr 8, 2008 11:06:50 AM
org.springframework.context.support.AbstractApplicationContext
obtainFreshBeanFactory
     [java] INFO: Bean factory for application context
[org.apache.cxf.bus.spring.BusApplicationContext@1a1399]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@9fa8f
     [java] Apr 8, 2008 11:06:50 AM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker
postProcessAfterInitialization
     [java] INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor'
is not eligible for getting processed by all BeanPostProcessors (for
example: not eligible for auto-proxying)
     [java] Apr 8, 2008 11:06:50 AM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker
postProcessAfterInitialization
     [java] INFO: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor'
is not eligible for getting processed by all BeanPostProcessors (for
example: not eligible for auto-proxying)
     [java] Apr 8, 2008 11:06:50 AM
org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons
     [java] INFO: Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@9fa8f:
defining beans
[cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.object.ObjectBindingFactory,org.apache.cxf.transport.local.LocalTransportFactory,org.apache.cxf.javascript.JavascriptQueryHandlerRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.ws.policy.AssertionBuilderRegistry,org.apache.cxf.ws.policy.PolicyConstants,org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry,org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry,org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder,org.apache.cxf.ws.policy.PolicyBuilder,org.apache.cxf.ws.policy.PolicyEngine,org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider,org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider,org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder,org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider,org.apache.cxf.binding.corba.CorbaBindingFactory,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.jaxws.context.WebServiceContextImpl,org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder,org.apache.cxf.binding.xml.XMLBindingFactory,org.apache.cxf.management.jmx.InstrumentationManagerImpl,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.ws.rm.RMManager,org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMAssertionBuilder,org.apache.cxf.transport.jms.JMSTransportFactory,org.apache.cxf.jaxrs.JAXRSBindingFactory,org.apache.cxf.binding.http.HttpBindingFactory];
root of factory hierarchy

Re: [DISCUSS] how noisy should the tools be?

Posted by Benson Margulies <bi...@gmail.com>.
Glen,

I'm with you on the idea of changing the severity. Let's see if we can
attract any other opinions.

One counter-argument: we can't change Spring's levels. And a fair fraction
of this traffic is Spring info messages. Unless we want to ship a control
file by default that is WARNING for Spring and INFO for us, and then change
a bunch of messages to DEBUG ...

--benson



On Tue, Apr 8, 2008 at 1:37 PM, Glen Mazza <gl...@gmail.com> wrote:

>
> I'm OK with that.  But I would be more inclined to recommend that you
> downgrade most of the messages below to DEBUG, *except* for this one:
>
> [java] INFO: No cxf.xml configuration file detected, relying on
> defaults.
>
> That should remain at INFO IMO, because people need to know if their
> cxf.xml
> is not getting picked up if they think they are providing it in the
> correct
> place.
>
> To me, I think the problem is that too many messages are mischaracterized
> at
> INFO when in fact they should be DEBUG, not that our logging level is
> wrong.
> But, again, setting it to WARN is also OK with me.
>
> Glen
>
>
> Benson Margulies-4 wrote:
> >
> > I propose changing the default log level for our tools from INFO to
> WARN.
> > I
> > paste below my justification. Anyone object?
> >
> >
> > generate_source:
> >      [java] Apr 8, 2008 11:06:49 AM
> > org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
> >      [java] INFO: Loading plugin
> >
> jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/tools-plugin.xml
> >      [java] Apr 8, 2008 11:06:50 AM
> > org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
> >      [java] INFO: Found 1 frontends in <default> plugin.
> >      [java] Apr 8, 2008 11:06:50 AM
> > org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
> >      [java] INFO: Loading <jaxws> frontend from <default> plugin.
> >      [java] Apr 8, 2008 11:06:50 AM
> > org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
> >      [java] INFO: Found 1 databindings in <default> plugin.
> >      [java] Apr 8, 2008 11:06:50 AM
> > org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
> >      [java] INFO: Loading <jaxb> databinding from <default> plugin.
> >      [java] Apr 8, 2008 11:06:50 AM
> > org.springframework.context.support.AbstractApplicationContext
> > prepareRefresh
> >      [java] INFO: Refreshing
> > org.apache.cxf.bus.spring.BusApplicationContext@1a1399: display name
> > [org.apache.cxf.bus.spring.BusApplicationContext@1a1399]; startup date
> > [Tue
> > Apr 08 11:06:50 GMT-05:00 2008]; root of context hierarchy
> >      [java] Apr 8, 2008 11:06:50 AM
> > org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
> >      [java] INFO: No cxf.xml configuration file detected, relying on
> > defaults.
> >      [java] Apr 8, 2008 11:06:50 AM
> > org.springframework.beans.factory.support.DefaultListableBeanFactory
> > registerBeanDefinition
> >      [java] INFO: Overriding bean definition for bean
> > 'org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder':
> > replacing
> > [Root bean: class
> > [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder];
> > scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true;
> > autowireMode=0; dependencyCheck=0; factoryBeanName=null;
> > factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> > defined
> > in URL
> >
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
> > with [Root bean: class
> > [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder];
> > scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true;
> > autowireMode=0; dependencyCheck=0; factoryBeanName=null;
> > factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> > defined
> > in URL
> >
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
> >      [java] Apr 8, 2008 11:06:50 AM
> > org.springframework.beans.factory.support.DefaultListableBeanFactory
> > registerBeanDefinition
> >      [java] INFO: Overriding bean definition for bean
> > 'org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder':
> > replacing
> > [Root bean: class
> > [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder];
> > scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true;
> > autowireMode=0; dependencyCheck=0; factoryBeanName=null;
> > factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> > defined
> > in URL
> >
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
> > with [Root bean: class
> > [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder];
> > scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true;
> > autowireMode=0; dependencyCheck=0; factoryBeanName=null;
> > factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> > defined
> > in URL
> >
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
> >      [java] Apr 8, 2008 11:06:50 AM
> > org.springframework.beans.factory.support.DefaultListableBeanFactory
> > registerBeanDefinition
> >      [java] INFO: Overriding bean definition for bean
> > 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory':
> replacing
> > [Root bean: class
> > [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory];
> > scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true;
> > autowireMode=0; dependencyCheck=0; factoryBeanName=null;
> > factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> > defined
> > in URL
> >
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
> > with [Root bean: class
> > [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory];
> > scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true;
> > autowireMode=0; dependencyCheck=0; factoryBeanName=null;
> > factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> > defined
> > in URL
> >
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
> >      [java] Apr 8, 2008 11:06:50 AM
> > org.springframework.context.support.AbstractApplicationContext
> > obtainFreshBeanFactory
> >      [java] INFO: Bean factory for application context
> > [org.apache.cxf.bus.spring.BusApplicationContext@1a1399]:
> >
> org.springframework.beans.factory.support.DefaultListableBeanFactory@9fa8f
> >      [java] Apr 8, 2008 11:06:50 AM
> >
> org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker
> > postProcessAfterInitialization
> >      [java] INFO: Bean
> 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor'
> > is not eligible for getting processed by all BeanPostProcessors (for
> > example: not eligible for auto-proxying)
> >      [java] Apr 8, 2008 11:06:50 AM
> >
> org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker
> > postProcessAfterInitialization
> >      [java] INFO: Bean
> > 'org.apache.cxf.bus.spring.BusExtensionPostProcessor'
> > is not eligible for getting processed by all BeanPostProcessors (for
> > example: not eligible for auto-proxying)
> >      [java] Apr 8, 2008 11:06:50 AM
> > org.springframework.beans.factory.support.DefaultListableBeanFactory
> > preInstantiateSingletons
> >      [java] INFO: Pre-instantiating singletons in
> >
> org.springframework.beans.factory.support.DefaultListableBeanFactory@9fa8f
> :
> > defining beans
> >
> [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.object.ObjectBindingFactory,org.apache.cxf.transport.local.LocalTransportFactory,org.apache.cxf.javascript.JavascriptQueryHandlerRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.ws.policy.AssertionBuilderRegistry,org.apache.cxf.ws.policy.PolicyConstants,org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry,org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry,org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder,org.apache.cxf.ws.policy.PolicyBuilder,org.apache.cxf.ws.policy.PolicyEngine,org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider,org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider,org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder,org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider,org.apache.cxf.binding.corba.CorbaBindingFactory,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.jaxws.context.WebServiceContextImpl,org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder,org.apache.cxf.binding.xml.XMLBindingFactory,org.apache.cxf.management.jmx.InstrumentationManagerImpl,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.ws.rm.RMManager,org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMAssertionBuilder,org.apache.cxf.transport.jms.JMSTransportFactory,org.apache.cxf.jaxrs.JAXRSBindingFactory,org.apache.cxf.binding.http.HttpBindingFactory];
> > root of factory hierarchy
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-DISCUSS--how-noisy-should-the-tools-be--tp16567288p16569030.html
> Sent from the cxf-dev mailing list archive at Nabble.com.
>
>

Re: [DISCUSS] how noisy should the tools be?

Posted by Glen Mazza <gl...@gmail.com>.
I'm OK with that.  But I would be more inclined to recommend that you
downgrade most of the messages below to DEBUG, *except* for this one:

[java] INFO: No cxf.xml configuration file detected, relying on
defaults.

That should remain at INFO IMO, because people need to know if their cxf.xml
is not getting picked up if they think they are providing it in the correct
place.

To me, I think the problem is that too many messages are mischaracterized at
INFO when in fact they should be DEBUG, not that our logging level is wrong. 
But, again, setting it to WARN is also OK with me.

Glen


Benson Margulies-4 wrote:
> 
> I propose changing the default log level for our tools from INFO to WARN.
> I
> paste below my justification. Anyone object?
> 
> 
> generate_source:
>      [java] Apr 8, 2008 11:06:49 AM
> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>      [java] INFO: Loading plugin
> jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/tools-plugin.xml
>      [java] Apr 8, 2008 11:06:50 AM
> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>      [java] INFO: Found 1 frontends in <default> plugin.
>      [java] Apr 8, 2008 11:06:50 AM
> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>      [java] INFO: Loading <jaxws> frontend from <default> plugin.
>      [java] Apr 8, 2008 11:06:50 AM
> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>      [java] INFO: Found 1 databindings in <default> plugin.
>      [java] Apr 8, 2008 11:06:50 AM
> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>      [java] INFO: Loading <jaxb> databinding from <default> plugin.
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.context.support.AbstractApplicationContext
> prepareRefresh
>      [java] INFO: Refreshing
> org.apache.cxf.bus.spring.BusApplicationContext@1a1399: display name
> [org.apache.cxf.bus.spring.BusApplicationContext@1a1399]; startup date
> [Tue
> Apr 08 11:06:50 GMT-05:00 2008]; root of context hierarchy
>      [java] Apr 8, 2008 11:06:50 AM
> org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
>      [java] INFO: No cxf.xml configuration file detected, relying on
> defaults.
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> registerBeanDefinition
>      [java] INFO: Overriding bean definition for bean
> 'org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder':
> replacing
> [Root bean: class
> [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder];
> scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true;
> autowireMode=0; dependencyCheck=0; factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined
> in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
> with [Root bean: class
> [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder];
> scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true;
> autowireMode=0; dependencyCheck=0; factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined
> in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> registerBeanDefinition
>      [java] INFO: Overriding bean definition for bean
> 'org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder':
> replacing
> [Root bean: class
> [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder];
> scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true;
> autowireMode=0; dependencyCheck=0; factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined
> in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
> with [Root bean: class
> [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder];
> scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true;
> autowireMode=0; dependencyCheck=0; factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined
> in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> registerBeanDefinition
>      [java] INFO: Overriding bean definition for bean
> 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing
> [Root bean: class
> [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory];
> scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true;
> autowireMode=0; dependencyCheck=0; factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined
> in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
> with [Root bean: class
> [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory];
> scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true;
> autowireMode=0; dependencyCheck=0; factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined
> in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]]
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.context.support.AbstractApplicationContext
> obtainFreshBeanFactory
>      [java] INFO: Bean factory for application context
> [org.apache.cxf.bus.spring.BusApplicationContext@1a1399]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@9fa8f
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker
> postProcessAfterInitialization
>      [java] INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor'
> is not eligible for getting processed by all BeanPostProcessors (for
> example: not eligible for auto-proxying)
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker
> postProcessAfterInitialization
>      [java] INFO: Bean
> 'org.apache.cxf.bus.spring.BusExtensionPostProcessor'
> is not eligible for getting processed by all BeanPostProcessors (for
> example: not eligible for auto-proxying)
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> preInstantiateSingletons
>      [java] INFO: Pre-instantiating singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@9fa8f:
> defining beans
> [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.object.ObjectBindingFactory,org.apache.cxf.transport.local.LocalTransportFactory,org.apache.cxf.javascript.JavascriptQueryHandlerRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.ws.policy.AssertionBuilderRegistry,org.apache.cxf.ws.policy.PolicyConstants,org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry,org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry,org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder,org.apache.cxf.ws.policy.PolicyBuilder,org.apache.cxf.ws.policy.PolicyEngine,org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider,org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider,org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder,org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider,org.apache.cxf.binding.corba.CorbaBindingFactory,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.jaxws.context.WebServiceContextImpl,org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder,org.apache.cxf.binding.xml.XMLBindingFactory,org.apache.cxf.management.jmx.InstrumentationManagerImpl,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.ws.rm.RMManager,org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMAssertionBuilder,org.apache.cxf.transport.jms.JMSTransportFactory,org.apache.cxf.jaxrs.JAXRSBindingFactory,org.apache.cxf.binding.http.HttpBindingFactory];
> root of factory hierarchy
> 
> 

-- 
View this message in context: http://www.nabble.com/-DISCUSS--how-noisy-should-the-tools-be--tp16567288p16569030.html
Sent from the cxf-dev mailing list archive at Nabble.com.


Re: [DISCUSS] how noisy should the tools be?

Posted by Benson Margulies <bi...@gmail.com>.
So,

The tool main classes don't extend a base class.

As per Glen, we encourage users to use the tool main classes themselves in
Ant.

So, where and how do we add customization of the logging? A -D in the shell
scripts won't help ant users.

It seems as if we need to get code into the main procedures but not into the
classes, so that users who are doing their own integrations can make up
their own minds. Thus, I'm inclined to imagine a static util function called
from each of the tool main functions that assumes j.u.l and sets spring to
WARNING, if nothing else.

Thoughts?

Re: [DISCUSS] how noisy should the tools be?

Posted by Benson Margulies <bi...@gmail.com>.
The spring problem at least requires a log config that says
"org.springframework = WARNING", if not setting our overall level to
warning.

On Tue, Apr 8, 2008 at 1:47 PM, Daniel Kulp <dk...@apache.org> wrote:

>
> I'm OK with changing the levels for the stuff in our code.  The problem
> is that several of the below messages are from Spring.  Not sure what
> the solution would be for that.
>
> Dan
>
>

Re: [DISCUSS] how noisy should the tools be?

Posted by Benson Margulies <bi...@gmail.com>.
That's what commons-logging is trying to do.

As I understand it, we don't want to depend on commons-logging, because a
variety of people hate it due to classloading issues. We stick with j.u.l,
and then provide a convenient mechanism to switch from j.u.l to Log4J (or
whatever).

However, Spring does depend on commons-logging. So, as soon as we call
spring, spring calls commons-logging. If the only logger in sight is j.u.l,
all is well, or, at least, as well as all ever is with commons-logging.  If
log4j is in the classpath, then commons-logging will connect to that, and we
will continue to talk to j.u.l, unless the app makes the LogUtils call to
switch to Log4j.

The LogUtils class is, in some ways, the wrapper you are looking for, except
that it does not grab control of spring logging. To do so, it would have to
talk to the commons logging API.

Thus my wondering if we could detect if commons-logging is turned on without
setting into motion it's problematic class-loading behaviors.

Re: [DISCUSS] how noisy should the tools be?

Posted by jim ma <ma...@gmail.com>.
Is it possible to write a logger to wrap the log4j , j.u.l or spring logger
and control the
log level overall?

Jim

On Wed, Apr 9, 2008 at 9:55 AM, Benson Margulies <bi...@gmail.com>
wrote:

> So, I have another question about all of this.
>
> By default, we use Spring. By default, spring logs to log4j. By default.,
> we
> log to j.u.l. So, if I'm not completely confused, by default a CXF
> application (with log4j in its path) has log messages travelling through
> two
> different loggers.
>
> Now, maybe this is a side-effect of the fact that I'm debugging things
> that
> have log4j in the path, and so c.l. is picking it up, and a a log4j-less
> application would just see all the traffic in j.u.l.
>
> Nonetheless, I'm somehow tempted to suggest that we should touch the c.l.
> bussbar and thus behave consistently with spring when we are being
> initialized through spring. Is there a code path of ours where we could
> say,
> 'oh, well, spring, might as well log through c.l. for consistency'?
>

Re: [DISCUSS] how noisy should the tools be?

Posted by Benson Margulies <bi...@gmail.com>.
So, I have another question about all of this.

By default, we use Spring. By default, spring logs to log4j. By default., we
log to j.u.l. So, if I'm not completely confused, by default a CXF
application (with log4j in its path) has log messages travelling through two
different loggers.

Now, maybe this is a side-effect of the fact that I'm debugging things that
have log4j in the path, and so c.l. is picking it up, and a a log4j-less
application would just see all the traffic in j.u.l.

Nonetheless, I'm somehow tempted to suggest that we should touch the c.l.
bussbar and thus behave consistently with spring when we are being
initialized through spring. Is there a code path of ours where we could say,
'oh, well, spring, might as well log through c.l. for consistency'?

RE: [DISCUSS] how noisy should the tools be?

Posted by "Johnson, Eric" <Er...@iona.com>.
Changing the default to WARN is a good call.


-----Original Message-----
From: Daniel Kulp [mailto:dkulp@apache.org]
Sent: Tue 4/8/2008 1:47 PM
To: cxf-dev@incubator.apache.org
Subject: Re: [DISCUSS] how noisy should the tools be?
 

I'm OK with changing the levels for the stuff in our code.  The problem 
is that several of the below messages are from Spring.  Not sure what 
the solution would be for that.

Dan


On Tuesday 08 April 2008, Benson Margulies wrote:
> I propose changing the default log level for our tools from INFO to
> WARN. I paste below my justification. Anyone object?
>
>
> generate_source:
>      [java] Apr 8, 2008 11:06:49 AM
> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>      [java] INFO: Loading plugin
> jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incu
>bator-SNAPSHOT.jar!/META-INF/tools-plugin.xml [java] Apr 8, 2008
> 11:06:50 AM
> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>      [java] INFO: Found 1 frontends in <default> plugin.
>      [java] Apr 8, 2008 11:06:50 AM
> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>      [java] INFO: Loading <jaxws> frontend from <default> plugin.
>      [java] Apr 8, 2008 11:06:50 AM
> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>      [java] INFO: Found 1 databindings in <default> plugin.
>      [java] Apr 8, 2008 11:06:50 AM
> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>      [java] INFO: Loading <jaxb> databinding from <default> plugin.
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.context.support.AbstractApplicationContext
> prepareRefresh
>      [java] INFO: Refreshing
> org.apache.cxf.bus.spring.BusApplicationContext@1a1399: display name
> [org.apache.cxf.bus.spring.BusApplicationContext@1a1399]; startup date
> [Tue Apr 08 11:06:50 GMT-05:00 2008]; root of context hierarchy
>      [java] Apr 8, 2008 11:06:50 AM
> org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
>      [java] INFO: No cxf.xml configuration file detected, relying on
> defaults.
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> registerBeanDefinition
>      [java] INFO: Overriding bean definition for bean
> 'org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder':
> replacing [Root bean: class
> [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder];
> scope=singleton; abstract=false; lazyInit=false;
> autowireCandidate=true; autowireMode=0; dependencyCheck=0;
> factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-inc
>ubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Root
> bean: class
> [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder];
> scope=singleton; abstract=false; lazyInit=false;
> autowireCandidate=true; autowireMode=0; dependencyCheck=0;
> factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-inc
>ubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]] [java] Apr
> 8, 2008 11:06:50 AM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> registerBeanDefinition
>      [java] INFO: Overriding bean definition for bean
> 'org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder':
> replacing [Root bean: class
> [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder];
> scope=singleton; abstract=false; lazyInit=false;
> autowireCandidate=true; autowireMode=0; dependencyCheck=0;
> factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-inc
>ubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Root
> bean: class
> [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder];
> scope=singleton; abstract=false; lazyInit=false;
> autowireCandidate=true; autowireMode=0; dependencyCheck=0;
> factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-inc
>ubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]] [java] Apr
> 8, 2008 11:06:50 AM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> registerBeanDefinition
>      [java] INFO: Overriding bean definition for bean
> 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory':
> replacing [Root bean: class
> [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory];
> scope=singleton; abstract=false; lazyInit=true;
> autowireCandidate=true; autowireMode=0; dependencyCheck=0;
> factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-inc
>ubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Root
> bean: class
> [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory];
> scope=singleton; abstract=false; lazyInit=true;
> autowireCandidate=true; autowireMode=0; dependencyCheck=0;
> factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-inc
>ubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]] [java] Apr
> 8, 2008 11:06:50 AM
> org.springframework.context.support.AbstractApplicationContext
> obtainFreshBeanFactory
>      [java] INFO: Bean factory for application context
> [org.apache.cxf.bus.spring.BusApplicationContext@1a1399]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@9
>fa8f [java] Apr 8, 2008 11:06:50 AM
> org.springframework.context.support.AbstractApplicationContext$BeanPos
>tProcessorChecker postProcessAfterInitialization
>      [java] INFO: Bean
> 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible
> for getting processed by all BeanPostProcessors (for example: not
> eligible for auto-proxying)
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.context.support.AbstractApplicationContext$BeanPos
>tProcessorChecker postProcessAfterInitialization
>      [java] INFO: Bean
> 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible
> for getting processed by all BeanPostProcessors (for example: not
> eligible for auto-proxying)
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> preInstantiateSingletons
>      [java] INFO: Pre-instantiating singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@9
>fa8f: defining beans
> [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.
>bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceMa
>nager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.Bi
>ndingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,
>org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WS
>DLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.Wo
>rkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apac
>he.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleM
>anager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.tr
>ansports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointReso
>lverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalo
>g.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRe
>gistry,org.apache.cxf.binding.object.ObjectBindingFactory,org.apache.cx
>f.transport.local.LocalTransportFactory,org.apache.cxf.javascript.Javas
>criptQueryHandlerRegistry,org.apache.cxf.binding.soap.SoapBindingFactor
>y,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.bindi
>ng.soap.customEditorConfigurer,org.apache.cxf.transport.http.policy.HTT
>PClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServer
>AssertionBuilder,org.apache.cxf.transport.http.ClientOnlyHTTPTransportF
>actory,org.apache.cxf.ws.policy.AssertionBuilderRegistry,org.apache.cxf
>.ws.policy.PolicyConstants,org.apache.cxf.ws.policy.PolicyInterceptorPr
>oviderRegistry,org.apache.cxf.ws.policy.attachment.external.DomainExpre
>ssionBuilderRegistry,org.apache.cxf.ws.policy.attachment.external.Endpo
>intReferenceDomainExpressionBuilder,org.apache.cxf.ws.policy.PolicyBuil
>der,org.apache.cxf.ws.policy.PolicyEngine,org.apache.cxf.ws.policy.atta
>chment.wsdl11.Wsdl11AttachmentPolicyProvider,org.apache.cxf.ws.policy.a
>ttachment.ServiceModelPolicyProvider,org.apache.cxf.ws.policy.mtom.MTOM
>AssertionBuilder,org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorPro
>vider,org.apache.cxf.binding.corba.CorbaBindingFactory,org.apache.cxf.j
>axws.context.WebServiceContextResourceResolver,org.apache.cxf.jaxws.con
>text.WebServiceContextImpl,org.apache.cxf.ws.addressing.policy.Addressi
>ngAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingPolicy
>InterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddressing
>AssertionBuilder,org.apache.cxf.binding.xml.XMLBindingFactory,org.apach
>e.cxf.management.jmx.InstrumentationManagerImpl,org.apache.cxf.transpor
>t.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.ws.rm.RMManager,o
>rg.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider,org.apache.cxf.w
>s.rm.RMAssertionBuilder,org.apache.cxf.transport.jms.JMSTransportFactor
>y,org.apache.cxf.jaxrs.JAXRSBindingFactory,org.apache.cxf.binding.http.
>HttpBindingFactory]; root of factory hierarchy



-- 
J. Daniel Kulp
Principal Engineer, IONA
dkulp@apache.org
http://www.dankulp.com/blog


Re: [DISCUSS] how noisy should the tools be?

Posted by Daniel Kulp <dk...@apache.org>.
I'm OK with changing the levels for the stuff in our code.  The problem 
is that several of the below messages are from Spring.  Not sure what 
the solution would be for that.

Dan


On Tuesday 08 April 2008, Benson Margulies wrote:
> I propose changing the default log level for our tools from INFO to
> WARN. I paste below my justification. Anyone object?
>
>
> generate_source:
>      [java] Apr 8, 2008 11:06:49 AM
> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>      [java] INFO: Loading plugin
> jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-incu
>bator-SNAPSHOT.jar!/META-INF/tools-plugin.xml [java] Apr 8, 2008
> 11:06:50 AM
> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>      [java] INFO: Found 1 frontends in <default> plugin.
>      [java] Apr 8, 2008 11:06:50 AM
> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>      [java] INFO: Loading <jaxws> frontend from <default> plugin.
>      [java] Apr 8, 2008 11:06:50 AM
> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>      [java] INFO: Found 1 databindings in <default> plugin.
>      [java] Apr 8, 2008 11:06:50 AM
> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>      [java] INFO: Loading <jaxb> databinding from <default> plugin.
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.context.support.AbstractApplicationContext
> prepareRefresh
>      [java] INFO: Refreshing
> org.apache.cxf.bus.spring.BusApplicationContext@1a1399: display name
> [org.apache.cxf.bus.spring.BusApplicationContext@1a1399]; startup date
> [Tue Apr 08 11:06:50 GMT-05:00 2008]; root of context hierarchy
>      [java] Apr 8, 2008 11:06:50 AM
> org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
>      [java] INFO: No cxf.xml configuration file detected, relying on
> defaults.
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> registerBeanDefinition
>      [java] INFO: Overriding bean definition for bean
> 'org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder':
> replacing [Root bean: class
> [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder];
> scope=singleton; abstract=false; lazyInit=false;
> autowireCandidate=true; autowireMode=0; dependencyCheck=0;
> factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-inc
>ubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Root
> bean: class
> [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder];
> scope=singleton; abstract=false; lazyInit=false;
> autowireCandidate=true; autowireMode=0; dependencyCheck=0;
> factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-inc
>ubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]] [java] Apr
> 8, 2008 11:06:50 AM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> registerBeanDefinition
>      [java] INFO: Overriding bean definition for bean
> 'org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder':
> replacing [Root bean: class
> [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder];
> scope=singleton; abstract=false; lazyInit=false;
> autowireCandidate=true; autowireMode=0; dependencyCheck=0;
> factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-inc
>ubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Root
> bean: class
> [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder];
> scope=singleton; abstract=false; lazyInit=false;
> autowireCandidate=true; autowireMode=0; dependencyCheck=0;
> factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-inc
>ubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]] [java] Apr
> 8, 2008 11:06:50 AM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> registerBeanDefinition
>      [java] INFO: Overriding bean definition for bean
> 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory':
> replacing [Root bean: class
> [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory];
> scope=singleton; abstract=false; lazyInit=true;
> autowireCandidate=true; autowireMode=0; dependencyCheck=0;
> factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-inc
>ubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Root
> bean: class
> [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory];
> scope=singleton; abstract=false; lazyInit=true;
> autowireCandidate=true; autowireMode=0; dependencyCheck=0;
> factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined in URL
> [jar:file:/home/benson/x/tip/third-party-tools/cxf-2.1/lib/cxf-2.1-inc
>ubator-SNAPSHOT.jar!/META-INF/cxf/cxf-extension-http.fixml]] [java] Apr
> 8, 2008 11:06:50 AM
> org.springframework.context.support.AbstractApplicationContext
> obtainFreshBeanFactory
>      [java] INFO: Bean factory for application context
> [org.apache.cxf.bus.spring.BusApplicationContext@1a1399]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@9
>fa8f [java] Apr 8, 2008 11:06:50 AM
> org.springframework.context.support.AbstractApplicationContext$BeanPos
>tProcessorChecker postProcessAfterInitialization
>      [java] INFO: Bean
> 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible
> for getting processed by all BeanPostProcessors (for example: not
> eligible for auto-proxying)
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.context.support.AbstractApplicationContext$BeanPos
>tProcessorChecker postProcessAfterInitialization
>      [java] INFO: Bean
> 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible
> for getting processed by all BeanPostProcessors (for example: not
> eligible for auto-proxying)
>      [java] Apr 8, 2008 11:06:50 AM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> preInstantiateSingletons
>      [java] INFO: Pre-instantiating singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@9
>fa8f: defining beans
> [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.
>bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceMa
>nager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.Bi
>ndingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,
>org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WS
>DLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.Wo
>rkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apac
>he.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleM
>anager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.tr
>ansports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointReso
>lverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalo
>g.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRe
>gistry,org.apache.cxf.binding.object.ObjectBindingFactory,org.apache.cx
>f.transport.local.LocalTransportFactory,org.apache.cxf.javascript.Javas
>criptQueryHandlerRegistry,org.apache.cxf.binding.soap.SoapBindingFactor
>y,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.bindi
>ng.soap.customEditorConfigurer,org.apache.cxf.transport.http.policy.HTT
>PClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServer
>AssertionBuilder,org.apache.cxf.transport.http.ClientOnlyHTTPTransportF
>actory,org.apache.cxf.ws.policy.AssertionBuilderRegistry,org.apache.cxf
>.ws.policy.PolicyConstants,org.apache.cxf.ws.policy.PolicyInterceptorPr
>oviderRegistry,org.apache.cxf.ws.policy.attachment.external.DomainExpre
>ssionBuilderRegistry,org.apache.cxf.ws.policy.attachment.external.Endpo
>intReferenceDomainExpressionBuilder,org.apache.cxf.ws.policy.PolicyBuil
>der,org.apache.cxf.ws.policy.PolicyEngine,org.apache.cxf.ws.policy.atta
>chment.wsdl11.Wsdl11AttachmentPolicyProvider,org.apache.cxf.ws.policy.a
>ttachment.ServiceModelPolicyProvider,org.apache.cxf.ws.policy.mtom.MTOM
>AssertionBuilder,org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorPro
>vider,org.apache.cxf.binding.corba.CorbaBindingFactory,org.apache.cxf.j
>axws.context.WebServiceContextResourceResolver,org.apache.cxf.jaxws.con
>text.WebServiceContextImpl,org.apache.cxf.ws.addressing.policy.Addressi
>ngAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingPolicy
>InterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddressing
>AssertionBuilder,org.apache.cxf.binding.xml.XMLBindingFactory,org.apach
>e.cxf.management.jmx.InstrumentationManagerImpl,org.apache.cxf.transpor
>t.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.ws.rm.RMManager,o
>rg.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider,org.apache.cxf.w
>s.rm.RMAssertionBuilder,org.apache.cxf.transport.jms.JMSTransportFactor
>y,org.apache.cxf.jaxrs.JAXRSBindingFactory,org.apache.cxf.binding.http.
>HttpBindingFactory]; root of factory hierarchy



-- 
J. Daniel Kulp
Principal Engineer, IONA
dkulp@apache.org
http://www.dankulp.com/blog