I just made an interesting discovery.

If you have the Felix config admin jar in your classpath along with
the 5.4.0 framework, SCR won't notice config admin events.

To be more careful and precise:

If you have a pax-exam test, and you provision CA and SCR into the
container, but also have CA in the 'outer' classpath, the above bad
thing happened.

How does one come to do this? By using the alta-maven-plugin to
arrange provisioning from dependencies.

How does one avoid this (other than finding a solution other than
alta)? The configuration below.

Aside from posting this as a caution to others, I wonder if the
maintainers of any of this find this surprising. I am surprised that
putting this stuff in the classpath next to the container has any
effect at all.

<classpathDependencyExcludes>
    
<classpathDependencyExclude>org.apache.felix:org.apache.felix.configadmin</classpathDependencyExclude>
    
<classpathDependencyExclude>org.apache.felix:org.apache.felix.scr</classpathDependencyExclude>
</classpathDependencyExcludes>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org

Reply via email to