Hello.
I am walking to the tutorial here:
http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/apache-felix-scr-bndtools-use.html
Everything goes according to plan until the very end, when I get hit
with the error message:
"Service-Component entry can not be located in JAR:
OSGI-INF/greeting.impl.GreetingImpl.xml~ bnd.bnd /greeting
Unknown Bndtools Problem Marker"
The created directory structure looks like:
./.classpath
./.gitignore
./.project
./.settings
./.settings/org.eclipse.jdt.core.prefs
./bin
./bin/greeting
./bin/greeting/api
./bin/greeting/api/Greeting.class
./bin/greeting/impl
./bin/greeting/impl/GreetingImpl.class
./bin/OSGI-INF
./bin/OSGI-INF/greeting.impl.GreetingImpl.xml
./bin_test
./bnd.bnd
./generated
./launch.bndrun
./src
./src/greeting
./src/greeting/api
./src/greeting/api/Greeting.java
./src/greeting/impl
./src/greeting/impl/GreetingImpl.java
./test
Also the generated metatype descriptor greeting.impl.GreetingImpl.xml
looks ok to me:
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0"
immediate="true" name="greeting.impl.GreetingImpl" activate="start">
<implementation class="greeting.impl.GreetingImpl"/>
<service servicefactory="false">
<provide interface="greeting.api.Greeting"/>
</service>
<property name="service.pid" value="greeting.impl.GreetingImpl"/>
</scr:component>
The bnd.bnd file is:
-buildpath: \
osgi.core,\
osgi.cmpn,\
biz.aQute.bnd.annotation,\
${junit}
Bundle-Version: 0.0.0.${tstamp}
-buildpath:
${plugin-dir}/org.apache.felix.scr.bnd/org.apache.felix.scr.bnd-1.3.1-SNAPSHOT.jar;version=file
-plugin: org.apache.felix.scrplugin.bnd.SCRDescriptorBndPlugin;log=debug
Private-Package: greeting.impl
Export-Package: greeting.api
-dsannotations: \
*
javac.source = 1.7
javac.target = 1.7
Any ideas what might have gone wrong?
Thank you for any help,
-- Bernd
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]