Declarative Services, Exceptions and Eclipse PDE

Problem

When using declarative services in a bundle, which is started in eclipse PDE, usually exceptions occurring ‚inside‘ the services are not traced in the the usual output window. This can be especially daunting for frequent ClassNotFound exceptions.

Solution

In the run configuration window in eclipse is a tab „tracing“. This can be enabled for the „equinox.ds“ package and exceptions will be shown in the eclipse output window.

bildschirmfoto2010-08-20um18-09-20.png

Instructions in Export-Package that are never used

Problem

The Maven BND plugin does not add a package to the MANIFEST.MF of a bundle although the bundle is declared as exported package in the pom.xml

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
<Bundle-Version>${pom.version}</Bundle-Version>
<Import-Package>${module.importedPackages}</Import-Package>
<Export-Package>de.linnk.application</Export-Package>
<Service-Component>${module.serviceDefinitions}
</Service-Component>
<Embed-Dependency>${module.embeddedDependencies}
</Embed-Dependency>
<Embed-Directory>target/dependency</Embed-Directory>
</instructions>
</configuration>
</plugin>

Maven reports in the output:

[WARNING] Warning building bundle de.linnk.fatclient:lnFatClient:bundle:0.0.1-SNAPSHOT : Instructions in Export-Package that are never used: de\.linnk\.application
[WARNING] Warning building bundle de.linnk.fatclient:lnFatClient:bundle:0.0.1-SNAPSHOT : Superfluous export-package instructions: [de.linnk.application]

Solution

Double check if all bundles declared under “Export-Package” really exist in the bundle. In my case, the packaged specified under “Export-Package” did not exist in the bundle. This can, for instance, happen after refactoring package names and forgetting to update the package names in the manifest (Thanks, royp).

The warning messages here could really be a little bit more explicit.

Paper: Challenges in Knowledge Management

Rohde, M. E., & Sundaram, D. (2010). Challenges in knowledge management. In Proceedings of the 16th Americas Conference on Informaction Systems (AMCIS 2010) . Association for Information Systems.

Knowledge management is an ever researched area in the discipline of information systems. Though the terminology mightchange with the waves of fashion, how information systems can support the multiple dimensions of knowledge managementis an underlying theme in many streams of research. This article examines literature on knowledge management in order tosynthesize a number of key challenges, which emerge from a multidimensional and boundary-spanning view on knowledgemanagement. Six interrelated issues attempt to explain some of the essential aspects of knowledge in the organizationalcontext: these issues are (1) standardization of processes, structures, and systems, (2) contextualization, (3) invasiveness innatural ways of working, (4) strategic alignment, (5) intelligence, and (6) cultural environment.

Download PDF

AIS Electronic Library

citeulike