Announcement Announcement Module
Collapse
No announcement yet.
Could not resolve placeholder 'file:onlyname' Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Could not resolve placeholder 'file:onlyname'

    Hello,

    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.

    <osgix:cm-properties id="dcprops" persistent-id="com.dpub.file">
    <prop key="FileSource">//c:///servicemix///poller</prop>
    <prop key="FileDestination">//c:///servicemix///archive///${file:onlyname}-${date:now:yyyyMMdd}</prop>
    <prop key="MQName">activemqroducer</prop>
    </osgix:cm-properties>

    <!-- placeholder configurer -->
    <contextroperty-placeholder properties-ref="dcprops"/>

    <bean id="FileRoute" class="com.routing.FileProcessRoute">
    <osgix:managed-properties persistent-id="com.dpub.file" update-strategy="container-managed"/>
    <property name="FileSource" value="${FileSource}"/>
    <property name="FileDestination" value="${FileDestination}"/>
    <property name="MQName" value="${MQName}"/>
    </bean>

    The file com.dpub.file.cfg has following.

    FileSource=//c:///inbox///poller

    FileDestination=//c:///outbox///archive///${file:onlyname}-${date:now:yyyyMMdd}

    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)
    Last edited by balajiu; Mar 20th, 2011, 08:17 AM.
Working...
X