You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Karl Richter (JIRA)" <ji...@apache.org> on 2015/04/26 14:23:38 UTC

[jira] [Created] (MRM-1883) appserver.home and appserver.base in WEB-INF/classes/application.properties aren't picked up

Karl Richter created MRM-1883:
---------------------------------

             Summary: appserver.home and appserver.base in WEB-INF/classes/application.properties aren't picked up
                 Key: MRM-1883
                 URL: https://issues.apache.org/jira/browse/MRM-1883
             Project: Archiva
          Issue Type: Bug
    Affects Versions: 2.1.1
         Environment: Ubuntu 15.04 amd64 with Linux 4.0.0
            Reporter: Karl Richter


specifying 

    appserver.base=/path/to/base
    appserver.home=/path/to/base

in `webapps/archiva/WEB-INF/classes/archiva.properties` as recommended in http://archiva.apache.org/docs/2.2.0/adminguide/webapp.html causes the error 

    Apr 26, 2015 1:45:36 PM org.apache.catalina.core.StandardContext listenerStop
    SCHWERWIEGEND: Exception sending context destroyed event to listener instance of class org.apache.archiva.web.startup.ArchivaStartup
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'jcr-config' defined in URL [file:/var/lib/archiva/apache-tomcat-7.0.61/webapps/apache-archiva-2.2.0/WEB-INF/classes/META-INF/spring-context.xml]: Could not resolve placeholder 'appserver.base' in string value "${appserver.base}/conf/repository.xml"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'appserver.base' in string value "${appserver.base}/conf/repository.xml"
	    at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:211)
	    at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:223)
	    at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:86)
	    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:265)
	    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:162)
	    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:606)
	    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:462)
	    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
	    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
	    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
	    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
	    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)
	    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
	    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1090)
	    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1900)
	    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'appserver.base' in string value "${appserver.base}/conf/repository.xml"
	    at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:174)
	    at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126)
	    at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer$PlaceholderResolvingStringValueResolver.resolveStringValue(PropertyPlaceholderConfigurer.java:259)
	    at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveStringValue(BeanDefinitionVisitor.java:282)
	    at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:204)
	    at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitGenericArgumentValues(BeanDefinitionVisitor.java:159)
	    at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java:85)
	    at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:208)
	    ... 22 more

The start occurs with `bin/catalina.sh run` after setting up `archiva` according to the referenced installation guide.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)