Hi David,

Here are the method signatures for activate, deactivate and modified:

  @Modified
  public synchronized void modified(final ComponentContext componentContext)
{
  }

  @Activate
  public void activate(final ComponentContext componentContext) {
  }

  @Deactivate
  public void deactivate(final ComponentContext componentContext) {
  }

The class is annotated as follows:
@Component(
    xmlns = "http://www.osgi.org/xmlns/scr/v1.2.0";,
    configurationPid = "birt-engine-provider",
    configurationPolicy = ConfigurationPolicy.REQUIRED)

Some more info...

This specific bundle is the only bundle I'm having this problem. This bundle
embeds the entire BIRT jars. I've tried embedding these jars in two
different ways and in both cases I get different symtoms from the SCR:
  1. "Rolled Embedding" i.e. 
       Include-Resource:   lib/jar1.jar,\
        lib/jar2.jar,\
        ...
  Embedding the jars this way SCR logs "Missing required configuration,
cannot activate". I've made sure the configuration is not missing!

  2. "Unrolled Embedding" i.e. 
       Include-Resource:   @lib/jar1.jar,\
        @lib/jar2.jar,\
        ...
  Embedding the jars this way SCR logs "activate method [activate] not
found; Component will fail"

This bundle is acting extremely strange, might it perhaps have something to
do with the fact that it is embedding the BIRT jars somehow - but there
isn't much information (logs) to go by.

Thanks,
Jorge




--
View this message in context: 
http://apache-felix.18485.x6.nabble.com/DS-activate-method-activate-not-found-Component-will-fail-tp5004353p5004360.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to