Could not resolve placeholder 'file:onlyname'
balajiu Mar 20, 2011 3:40 PMHello,
*I have following configurtion and deployed in the fuse. While running the application I see error "Could not resolve placeholder 'file:onlyname'" I am not sure why place holder can't find the file? The file is made available in fusehome/etc directory and the version is apache-servicemix-4.2.0-fuse-02-00. I appreciate your help.*
//c:///servicemix///archive///$-$
<property name="FileSource" value="$"/>
<property name="FileDestination" value="$"/>
<property name="MQName" value="$"/>
</bean>
The file com.dpub.file.cfg has following.
FileSource=//c:///inbox///poller
FileDestination=//c:///outbox///archive///$-$
MQName=activemqroducer-test
The error is as follows.
org.springframework.beans.factory.BeanDefinitionSt oreException: Invalid bean definition with name 'dcprops' defined in null: Could not resolve placeholder 'file:onlyname'
at org.springframework.beans.factory.config.PropertyP laceholderConfigurer.processProperties(PropertyPla ceholderConfigurer.java:268)
at org.springframework.beans.factory.config.PropertyR esourceConfigurer.postProcessBeanFactory(PropertyR esourceConfigurer.java:75)
at org.springframework.osgi.context.support.AbstractD elegatedExecutionApplicationContext.invokeBeanFact oryPostProcessors(AbstractDelegatedExecutionApplic ationContext.java:479)
at org.springframework.osgi.context.support.AbstractD elegatedExecutionApplicationContext.invokeBeanFact oryPostProcessors(AbstractDelegatedExecutionApplic ationContext.java:450)
at org.springframework.osgi.context.support.AbstractD elegatedExecutionApplicationContext.invokeBeanFact oryPostProcessors(AbstractDelegatedExecutionApplic ationContext.java:395)
at org.springframework.osgi.context.support.AbstractD elegatedExecutionApplicationContext$3.run(Abstract DelegatedExecutionApplicationContext.java:281)
at org.springframework.osgi.util.internal.PrivilegedU tils.executeWithCustomTCCL(PrivilegedUtils.java:85 )
at org.springframework.osgi.context.support.AbstractD elegatedExecutionApplicationContext.startRefresh(A bstractDelegatedExecutionApplicationContext.java:2 47)
at org.springframework.osgi.extender.internal.depende ncies.startup.DependencyWaiterApplicationContextEx ecutor.stageOne(DependencyWaiterApplicationContext Executor.java:222)
at org.springframework.osgi.extender.internal.depende ncies.startup.DependencyWaiterApplicationContextEx ecutor.refresh(DependencyWaiterApplicationContextE xecutor.java:175)
at org.springframework.osgi.context.support.AbstractD elegatedExecutionApplicationContext.refresh(Abstra ctDelegatedExecutionApplicationContext.java:175)
at org.springframework.osgi.extender.internal.activat or.ContextLoaderListener$2.run(ContextLoaderListen er.java:718)
at java.lang.Thread.run(Thread.java:662)