Hello Bernd,

Sorry for this, indeed I just reproduced the issue with bndtools 2.4.1 (but
as far as I remember, the tutorial worked fine with previous bndtools
versions, or may be there is a regression somewhere).

I will investigate this and will get back to you asap.

PS: if you are using Apache Scr annotations, there is no need to supply the
-dsannotations:  *, which is only required when using standard scr
annotations, not scrplugin annotation).



best regards;
/Pierre



On Thu, Mar 26, 2015 at 3:38 AM, Bernd Prager <be...@prager.ws> wrote:

> 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: users-unsubscr...@felix.apache.org
> For additional commands, e-mail: users-h...@felix.apache.org
>
>

Reply via email to