users@glassfish.java.net

Re: My Declarative Services twice in the system

From: Richard S. Hall <heavy_at_ungoverned.org>
Date: Mon, 29 Aug 2011 10:31:14 -0400

On 8/29/11 8:59, Mihael Schmidt wrote:
> Hi,
>
> can anybody tell me why I have my services twice in the system? I used
> the Declarative Service approach to get them registered.
>
> 2011.08.29 14:53:41 INFO - Bundle: de.sgbs.web.core -
> [de.sgbs.web.core.service.IModuleService] - ServiceEvent REGISTERED
> 2011.08.29 14:53:41 INFO - Bundle: de.sgbs.web.core - BundleEvent STARTED
> 2011.08.29 14:53:41 INFO - Bundle: de.sgbs.web.core -
> [de.sgbs.web.core.service.IModuleService] - ServiceEvent REGISTERED
>
> My component.xml:
> <?xml version="1.0"?>
> <component name="launcherModuleService" immediate="true">
> <implementation class="de.sgbs.web.core.service.impl.ModuleService" />
> <service>
> <provide interface="de.sgbs.web.core.service.IModuleService" />
> </service>
> </component>
>
> If you need any more info just ask.

That doesn't make much sense to me. How are you deploying everything?
Can you verify that you only have your component bundle deployed once as
well as the SCR?

-> richard

>
> Thanx in advance.
>
> Regards
>
> Mihael Schmidt
>