directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel L├ęcharny <elecha...@gmail.com>
Subject ApacheDS OSGification...
Date Sun, 13 Aug 2017 07:14:42 GMT
Hi guys,


just wanted to let you know that I spent a few hours lately (well, more
than a few :/ ) on adding decent Import/Expor-Package in the ApacheDS
pom.xml files. It was a dreadful task ...


First of all, you have to be *very* cautious to not make any mistake
while puting the packages list in the pom : forgetting a comma will make
the osgi-tests failing with an awfuk message. The slighest error
(org.apache.directory.server.core.authn.policy instead of
org.apache.directory.server.core.authn.ppolicy, for instance - noticed
the double 'p' in ppolicy ?) will also generate an error. Last, not
least, you have to be extra careful about embedded external
dependencies, like Jetty, which version is 9.4.5.v20170502, but which
export its packages using 9.4.5, leading to another error ...


And to be franck, the maven bdn plugin produces errors that are barely
understandable :


ERROR: Bundle org.apache.directory.server.http.integration [30] Error
starting
file:/Users/elecharny/apacheds/value/apacheds/osgi-integ/target/1502607206947-0/pax-exam-downloads/org.apache.directory.server.http.integration_2.0.0.AM25-SNAPSHOT.jar
(org.osgi.framework.BundleException: Unable to resolve
org.apache.directory.server.http.integration [30](R 30.0): missing
requirement [org.apache.directory.server.http.integration [30](R 30.0)]
osgi.wiring.package;
(&(osgi.wiring.package=org.eclipse.jetty.server.handler)(version>=9.4.5.v20170502))
Unresolved requirements: [[org.apache.directory.server.http.integration
[30](R 30.0)] osgi.wiring.package;
(&(osgi.wiring.package=org.eclipse.jetty.server.handler)(version>=9.4.5.v20170502))])
org.osgi.framework.BundleException: Unable to resolve
org.apache.directory.server.http.integration [30](R 30.0): missing
requirement [org.apache.directory.server.http.integration [30](R 30.0)]
osgi.wiring.package;
(&(osgi.wiring.package=org.eclipse.jetty.server.handler)(version>=9.4.5.v20170502))
Unresolved requirements: [[org.apache.directory.server.http.integration
[30](R 30.0)] osgi.wiring.package;
(&(osgi.wiring.package=org.eclipse.jetty.server.handler)(version>=9.4.5.v20170502))]
    at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4133)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
    at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
    at java.lang.Thread.run(Thread.java:745)


Anyway, I'm done with this tedious work, and will commit the change in
the 'value' branch.


The missing part - and this is an important one, is to add the
bundleActovators for the parts we want to be dynamic. It's on my list,
but not for now.


Hvae a nice week-end !

-- 
Emmanuel Lecharny

Symas.com
directory.apache.org


Mime
View raw message