문제

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?

도움이 되었습니까?

해결책 2

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top