You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by Charles Moulliard <cm...@gmail.com> on 2009/05/14 15:35:08 UTC

Issue with Apache Felix Karaf and osgi bundle org.apache.servicemix.transaction

Hi,

We cannot use anymore the following osgi bundle
[org.apache.servicemix.transaction] without change it for Apache Felix Karaf
because it refers
to place holder servicemix.base

here is the content of the existing xml file :

- <#> <osgix:cm-properties id="*txProps*" persistent-id="*
org.apache.servicemix.transaction*">
   <prop key="*defaultTransactionTimeoutSeconds*">600</prop>
   <prop key="*transactionLogDir*">${servicemix.base}/data/txlog/</prop>
  </osgix:cm-properties>

and the error reported

15:17:31,968 | ERROR | xtenderThread-29 | WaiterApplicationContextExecutor |
WaiterApplicationContextExecutor  432 | Unable to create application context
for [org.apache.servicemix.transaction], unsatisfied dependencies: none
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean
definition with name 'transactionLog' defined in URL
[bundle://58.0:0/META-INF/spring/servicemix-tx.xml]: Could not resolve
placeholder 'servicemix.base'
    at
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:268)
    at
org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75)
    at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:479)
    at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:450)
    at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:395)
    at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:281)
    at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
    at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)
    at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)
    at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
    at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
    at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)
    at java.lang.Thread.run(Thread.java:619)
1

What is planned to do : ${servicemix.base}/data/txlog -->
${karaf.base}/data/txlog, .... ?

Regards

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com