continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <br...@apache.org>
Subject Re: ConfigurationException for tomcat/conf/shared.xml
Date Sun, 27 Sep 2009 23:18:24 GMT
It is just a warning safely ignored, but feel free to post to JIRA so  
we can improve the configuration to avoid the stack trace, or improve  
the documentation.

Thanks,
Brett

On 27/09/2009, at 4:08 AM, Neon wrote:

> I am using Apache Continuum 1.3.4 (Beta) running under Tomcat 5.5.28  
> on linux.
>
> I see the following WARNING in my continuum.log on startup (I don't
> have a shared.xml - there is no documentation to create this xml
> file). My continuum instance seems pretty normal, but I just wanted to
> forward this info on just in case there really is something that I
> should do about it.
>
> 2009-09-23 13:01:39,151 [main] INFO
> org.codehaus.plexus.redback.role.DefaultRoleManager  - loading
> Continuum
> 2009-09-23 13:01:39,914 [main] WARN
> org.apache.commons.configuration.DefaultConfigurationBuilder  -
> Internal error
> org.apache.commons.configuration.ConfigurationException: Cannot locate
> configuration source /path/to/tomcat/conf/shared.xml
>        at  
> org.apache.commons.configuration.AbstractFileConfiguration.load 
> (AbstractFileConfiguration.java:215)
>        at  
> org.apache.commons.configuration.AbstractFileConfiguration.load 
> (AbstractFileConfiguration.java:195)
>        at  
> org.apache.commons.configuration.AbstractHierarchicalFileConfiguration.load 
> (AbstractHierarchicalFileConfiguration.java:164)
>        at  
> org.apache.commons.configuration.DefaultConfigurationBuilder 
> $FileConfigurationProvider.getConfiguration 
> (DefaultConfigurationBuilder.java:1191)
>        at  
> org.apache.commons.configuration.DefaultConfigurationBuilder 
> $ConfigurationBeanFactory.createBean 
> (DefaultConfigurationBuilder.java:1093)
>        at  
> org.apache.commons.configuration.beanutils.BeanHelper.createBean 
> (BeanHelper.java:245)
>        at  
> org.apache.commons.configuration.beanutils.BeanHelper.createBean 
> (BeanHelper.java:267)
>        at  
> org.apache.commons.configuration.beanutils.BeanHelper.createBean 
> (BeanHelper.java:281)
>        at  
> org.apache.commons.configuration.DefaultConfigurationBuilder.createConfigurationAt 
> (DefaultConfigurationBuilder.java:632)
>        at  
> org.apache.commons.configuration.DefaultConfigurationBuilder.initCombinedConfiguration

> (DefaultConfigurationBuilder.java:569)
>        at  
> org.apache.commons.configuration.DefaultConfigurationBuilder.getConfiguration 
> (DefaultConfigurationBuilder.java:501)
>        at  
> org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry.initialize 
> (CommonsConfigurationRegistry.java:374)
>        at  
> org.codehaus.plexus.spring.PlexusLifecycleBeanPostProcessor.postProcessAfterInitialization

> (PlexusLifecycleBeanPostProcessor.java:217)
>        at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization

> (AbstractAutowireCapableBeanFactory.java:361)
>        at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.postProcessObjectFromFactoryBean

> (AbstractAutowireCapableBeanFactory.java:1429)
>        at  
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport 
> $1.run(FactoryBeanRegistrySupport.java:139)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at  
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean

> (FactoryBeanRegistrySupport.java:116)
>        at  
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean

> (FactoryBeanRegistrySupport.java:91)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance

> (AbstractBeanFactory.java:1288)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean 
> (AbstractBeanFactory.java:217)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean 
> (AbstractBeanFactory.java:185)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean 
> (AbstractBeanFactory.java:164)
>        at  
> org.springframework.context.support.AbstractApplicationContext.getBean 
> (AbstractApplicationContext.java:880)
>        at org.codehaus.plexus.spring.PlexusContainerAdapter.lookup 
> (PlexusContainerAdapter.java:422)
>        at  
> org.codehaus.plexus.redback.configuration.UserConfiguration.contextualize 
> (UserConfiguration.java:212)
>        at  
> org.codehaus.plexus.spring.PlexusLifecycleBeanPostProcessor.postProcessAfterInitialization

> (PlexusLifecycleBeanPostProcessor.java:157)
>        at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization

> (AbstractAutowireCapableBeanFactory.java:361)
>        at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean

> (AbstractAutowireCapableBeanFactory.java:1344)
>        at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean

> (AbstractAutowireCapableBeanFactory.java:473)
>        at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory 
> $1.run(AbstractAutowireCapableBeanFactory.java:409)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean

> (AbstractAutowireCapableBeanFactory.java:380)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory 
> $1.getObject(AbstractBeanFactory.java:264)
>        at  
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton 
> (DefaultSingletonBeanRegistry.java:222)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean 
> (AbstractBeanFactory.java:261)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean 
> (AbstractBeanFactory.java:185)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean 
> (AbstractBeanFactory.java:168)
>        at  
> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource

> (CommonAnnotationBeanPostProcessor.java:435)
>        at  
> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource

> (CommonAnnotationBeanPostProcessor.java:409)
>        at  
> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor 
> $ResourceElement.getResourceToInject 
> (CommonAnnotationBeanPostProcessor.java:537)
>        at  
> org.springframework.beans.factory.annotation.InjectionMetadata 
> $InjectedElement.inject(InjectionMetadata.java:180)
>        at  
> org.springframework.beans.factory.annotation.InjectionMetadata.injectFields 
> (InjectionMetadata.java:105)
>        at  
> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation

> (CommonAnnotationBeanPostProcessor.java:289)
>        at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean

> (AbstractAutowireCapableBeanFactory.java:959)
>        at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean

> (AbstractAutowireCapableBeanFactory.java:472)
>        at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory 
> $1.run(AbstractAutowireCapableBeanFactory.java:409)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean

> (AbstractAutowireCapableBeanFactory.java:380)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory 
> $1.getObject(AbstractBeanFactory.java:264)
>        at  
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton 
> (DefaultSingletonBeanRegistry.java:222)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean 
> (AbstractBeanFactory.java:261)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean 
> (AbstractBeanFactory.java:185)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean 
> (AbstractBeanFactory.java:168)
>        at  
> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource

> (CommonAnnotationBeanPostProcessor.java:435)
>        at  
> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource

> (CommonAnnotationBeanPostProcessor.java:409)
>        at  
> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor 
> $ResourceElement.getResourceToInject 
> (CommonAnnotationBeanPostProcessor.java:537)
>        at  
> org.springframework.beans.factory.annotation.InjectionMetadata 
> $InjectedElement.inject(InjectionMetadata.java:180)
>        at  
> org.springframework.beans.factory.annotation.InjectionMetadata.injectFields 
> (InjectionMetadata.java:105)
>        at  
> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation

> (CommonAnnotationBeanPostProcessor.java:289)
>        at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean

> (AbstractAutowireCapableBeanFactory.java:959)
>        at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean

> (AbstractAutowireCapableBeanFactory.java:472)
>        at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory 
> $1.run(AbstractAutowireCapableBeanFactory.java:409)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean

> (AbstractAutowireCapableBeanFactory.java:380)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory 
> $1.getObject(AbstractBeanFactory.java:264)
>        at  
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton 
> (DefaultSingletonBeanRegistry.java:222)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean 
> (AbstractBeanFactory.java:261)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean 
> (AbstractBeanFactory.java:185)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean 
> (AbstractBeanFactory.java:164)
>        at org.codehaus.plexus.spring.PlexusToSpringUtils.lookupMap 
> (PlexusToSpringUtils.java:148)
>        at org.codehaus.plexus.spring.PlexusToSpringUtils.lookupList 
> (PlexusToSpringUtils.java:160)
>        at  
> org.codehaus.plexus.spring.PlexusComponentFactoryBean.resolveRequirement 
> (PlexusComponentFactoryBean.java:242)
>        at  
> org.codehaus.plexus.spring.PlexusComponentFactoryBean.createInstance 
> (PlexusComponentFactoryBean.java:163)
>        at  
> org.codehaus.plexus.spring.PlexusComponentFactoryBean.getObject 
> (PlexusComponentFactoryBean.java:108)
>        at  
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport 
> $1.run(FactoryBeanRegistrySupport.java:121)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at  
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean

> (FactoryBeanRegistrySupport.java:116)
>        at  
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean

> (FactoryBeanRegistrySupport.java:91)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance

> (AbstractBeanFactory.java:1288)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean 
> (AbstractBeanFactory.java:217)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean 
> (AbstractBeanFactory.java:185)
>        at  
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean 
> (AbstractBeanFactory.java:164)
>        at  
> org.springframework.context.support.AbstractApplicationContext.getBean 
> (AbstractApplicationContext.java:880)
>        at  
> com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean 
> (SpringObjectFactory.java:126)
>        at com.opensymphony.xwork2.ObjectFactory.buildBean 
> (ObjectFactory.java:143)
>        at  
> org.codehaus.plexus.spring.Struts2PlexusInSpringObjectFactory.buildBean 
> (Struts2PlexusInSpringObjectFactory.java:65)
>        at com.opensymphony.xwork2.ObjectFactory.buildInterceptor 
> (ObjectFactory.java:184)
>        at  
> com.opensymphony.xwork2 
> .config.providers.InterceptorBuilder.constructInterceptorReference 
> (InterceptorBuilder.java:57)
>        at  
> com.opensymphony.xwork2 
> .config.providers.XmlConfigurationProvider.lookupInterceptorReference 
> (XmlConfigurationProvider.java:905)
>        at  
> com.opensymphony.xwork2 
> .config.providers.XmlConfigurationProvider.loadInterceptorStack 
> (XmlConfigurationProvider.java:743)
>        at  
> com.opensymphony.xwork2 
> .config.providers.XmlConfigurationProvider.loadInterceptorStacks 
> (XmlConfigurationProvider.java:756)
>        at  
> com.opensymphony.xwork2 
> .config.providers.XmlConfigurationProvider.loadInterceptors 
> (XmlConfigurationProvider.java:777)
>        at  
> com.opensymphony.xwork2 
> .config.providers.XmlConfigurationProvider.addPackage 
> (XmlConfigurationProvider.java:410)
>        at  
> com.opensymphony.xwork2 
> .config.providers.XmlConfigurationProvider.loadPackages 
> (XmlConfigurationProvider.java:239)
>        at  
> org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages 
> (StrutsXmlConfigurationProvider.java:111)
>        at  
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload 
> (DefaultConfiguration.java:152)
>        at  
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration 
> (ConfigurationManager.java:52)
>        at  
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration 
> (Dispatcher.java:395)
>        at org.apache.struts2.dispatcher.Dispatcher.init 
> (Dispatcher.java:452)
>        at org.apache.struts2.dispatcher.FilterDispatcher.init 
> (FilterDispatcher.java:205)
>        at org.apache.catalina.core.ApplicationFilterConfig.getFilter 
> (ApplicationFilterConfig.java:221)
>        at  
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef 
> (ApplicationFilterConfig.java:302)
>        at org.apache.catalina.core.ApplicationFilterConfig.<init> 
> (ApplicationFilterConfig.java:78)
>        at org.apache.catalina.core.StandardContext.filterStart 
> (StandardContext.java:3666)
>        at org.apache.catalina.core.StandardContext.start 
> (StandardContext.java:4258)
>        at org.apache.catalina.core.ContainerBase.addChildInternal 
> (ContainerBase.java:760)
>        at org.apache.catalina.core.ContainerBase.addChild 
> (ContainerBase.java:740)
>        at org.apache.catalina.core.StandardHost.addChild 
> (StandardHost.java:544)
>        at org.apache.catalina.startup.HostConfig.deployDirectory 
> (HostConfig.java:927)
>        at org.apache.catalina.startup.HostConfig.deployDirectories 
> (HostConfig.java:890)
>        at org.apache.catalina.startup.HostConfig.deployApps 
> (HostConfig.java:492)
>        at org.apache.catalina.startup.HostConfig.start 
> (HostConfig.java:1150)
>        at org.apache.catalina.startup.HostConfig.lifecycleEvent 
> (HostConfig.java:311)
>        at  
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent 
> (LifecycleSupport.java:120)
>        at org.apache.catalina.core.ContainerBase.start 
> (ContainerBase.java:1022)
>        at org.apache.catalina.core.StandardHost.start 
> (StandardHost.java:736)
>        at org.apache.catalina.core.ContainerBase.start 
> (ContainerBase.java:1014)
>        at org.apache.catalina.core.StandardEngine.start 
> (StandardEngine.java:443)
>        at org.apache.catalina.core.StandardService.start 
> (StandardService.java:448)
>        at org.apache.catalina.core.StandardServer.start 
> (StandardServer.java:700)
>        at org.apache.catalina.startup.Catalina.start(Catalina.java: 
> 552)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java: 
> 295)
>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java: 
> 433)
> 2009-09-23 13:01:40,448 [main] INFO
> org.apache.maven.continuum.web.checks.security.RoleProfileEnvironmentCheck
> - Checking roles list.
> 2009-09-23 13:01:40,504 [main] INFO
> org.codehaus.redback.integration.checks.security.RequiredRolesEnvironmentCheck
> - Checking the existence of required roles.
> 2009-09-23 13:01:40,563 [main] INFO
> org.codehaus.plexus.redback.struts2 
> .interceptor.SecureActionInterceptor
> -  
> org.codehaus.plexus.redback.struts2 
> .interceptor.SecureActionInterceptor
> initialized!
>
> Regards,
>
> Neon


Mime
View raw message