Thanks !!!
It was that. I've changed the pom of the it project from:
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-container-native</artifactId>
<version>4.10.0</version>
</dependency>
to:
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-container-forked</artifactId>
<version>4.10.0</version>
</dependency>
And it worked !
Thanks a lot for the help !!
Best Regards,
Ivo Leitão
On Sunday, 19 February 2017 12:28:29 UTC, laeubi wrote:
>
> Just make sure it is not a classloading-issues can you run it with the
> remote-osgi-container?
>
> Am 19.02.2017 13:15, schrieb Ivo Leitão:
>
> Hi Iaeubi,
>
> I've activated scr debug with:
>
> ...
> private Option scrDebug() {
> return composite(frameworkProperty("ds.loglevel").value("4"),
> frameworkProperty("ds.showTrace").value("true"));
> }
> ...
> @Configuration
> public Option[] options() {
> return new Option[] { failOnUnresolvedBundles(), keepCaches(),
> localMavenRepo(), junitBundles(), config(),
> scr(), scrDebug(), newConfiguration(CONFIG_PID).put("message",
> MESSAGE).asOption(),
> mavenBundle("com.paxexam.ds", "ri").versionAsInProject() };
> }
> ...
>
> The output bellow. Unfortunately I've not found nothing relevant (from
> what I know of SCR). I've highlighted the relevant information bellow. In
> summary by chronological order:
>
> The configuration is provisioned:
>
> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.exam.cm.internal.ConfigurationOptionConfigurationListener]
>
> : Created new configuration for pid paxexam.greeter with properties:
> {message=Hello from a declarative service}
>
> The Scr starts:
>
> INFO : org.apache.felix.scr (18): Starting with globalExtender setting:
> false
> INFO : org.apache.felix.scr (18): Version = 2.0.8
>
> The component is registered:
>
> DEBUG: BundleComponentActivator : Bundle [20] active
> DEBUG: BundleComponentActivator : Bundle [20] descriptor locations
> OSGI-INF/com.paxexam.ds.ri.GreeterImpl.xml
> DEBUG: Registering component with pid [paxexam.greeter] for bundle 20
> DEBUG: BundleComponentActivator : Bundle [20] ComponentHolder created for
> com.paxexam.ds.ri.GreeterImpl
> DEBUG: BundleComponentActivator : Bundle [20] May enable component holder
> com.paxexam.ds.ri.GreeterImpl
> DEBUG: BundleComponentActivator : Bundle [20] Enabling component holder
> com.paxexam.ds.ri.GreeterImpl
>
> I do not see any log stating that the configuration is attached to the
> component :-S or why it is not...
>
>
>
--
--
------------------
OPS4J - http://www.ops4j.org - [email protected]
---
You received this message because you are subscribed to the Google Groups
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.