Question

We use a .cfg file in ./etc directory to configure our bundle in ServiceMix. Everything worked fine in SMX 4.5.3, but when migrating to the 5th version the file is not picked up. When the bundle encounters a property the following exception is thrown:

java.lang.IllegalArgumentException: Property with key [xslt.dir] not found in properties from text: {{xslt.dir}}, StackTrace: org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException: Property with key [xslt.dir] not found in properties from text: {{xslt.dir}}

However, if I put the properties in default-properties section in my blueprint configuration, it works.

Also, the console command config:list actually shows the properties for the bundle in spite of the exception:

Pid:            misrouter
BundleLocation: mvn:ru.mig/mis-router/1.0-SNAPSHOT
Properties:
   service.pid = misrouter
   felix.fileinstall.filename = file:/home/petr/programs/5.0.0-apache-servicemix/etc/misrouter.cfg
   xslt.dir = /home/petr/programs/5.0.0-apache-servicemix/xslt

So was something changed in SMX 5 configuration mechanism or is there a bug in it?

Was it helpful?

Solution 2

Actually it's related to Camel vm component, a bug was created for SMX

OTHER TIPS

What version of the JDK/JRE are you using? When I was trying this out a few minutes ago to answer your question, I also had some problems using the 1.7.0_15 version I had installed and upgrading to the latest 1.7.0_51 fixed those for me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top