Hi Clement, I already used a classpathref in the ipojo target. But in the lib directory (classpath) I copied only needed libraries like iPojo libs, Logback libs etc. The solution is:
- The classpathref in the ipojo target must point to a directory with the bnd output (= ipojo input directory). - The classpathref in the ipojo target don't need any ipojo ant libs etc. (- The classpath in the taskref must point to the ipojo ant jar) - The ipojo output directory must not be the input directory (because in this case I get errors like "can't write xxx.jar", which was no problem in 1.11.1) Thank you for your hint! Michael 2014-08-12 7:46 GMT+02:00 Clement Escoffier <[email protected]>: > Hi, > > Because of some specificities of Java 8 (Bytecode frames), the iPOJO > manipulator requires an additional parameter: a class path. > You can find an example here: > https://github.com/apache/felix/blob/trunk/ipojo/runtime/distributions/ten-minutes-tutorial/src/main/solution/spell.english/build.xml > (line > 71). > > Generally, you can reuse the same class path as the one used for the > compilation (and use a reference to it). > > Regards, > > Clement > On 11 août 2014 at 20:35:12, Michael Hoppe ([email protected]) wrote: > > Hi, > > I updated my build process from iPOJO 1.11.2 / Java 7 > to iPOJO 1.12.0 /Java 8. > I use org.apache.felix.ipojo.ant-1.12.0.jar > and biz.aQute.bnd-2.2.0.jar/bnd-2.4.0-SNAPSHOT.jar. > > Now 15% of my Java Projects show build errors, see below. > Some imported interfaces and exception classes that normally would be > imported by the bundle give ClassNotFoundExceptions. > > I mentioned that there was a similar problem with Java 7 some month ago, > belonging to some frame finding errors. > > Is this a known problem of version 1.12.0? > > Thank you! > > Michael > > > > The ANT output: > Buildfile: > P:\git\SlotMachine\softdevel\slotmachine\sm002\SMKernel\build.xml > > init: > [echo] Bundle: SMKernel > [delete] Deleting: > > P:\git\SlotMachine\softdevel\slotmachine\sm002\Felix\bundles_all\SMKernel.jar > > bnd: > [bnd] # addAll 'SMKernel.bnd' with , > [bnd] # SMKernel (SMKernel.jar) 63 > > tasks.ipojo: > [ipojo] Input bundle file : > > P:\git\SlotMachine\softdevel\slotmachine\sm002\Felix\bundles_all\SMKernel.jar > [ipojo] No metadata file found - trying to use only annotations > [ipojo] Start manipulation > Apache Felix iPOJO Manipulator - 1.12.0 > > BUILD FAILED > P:\git\SlotMachine\softdevel\slotmachine\sm002\tasks.xml:45: > java.lang.RuntimeException: java.lang.ClassNotFoundException: > de.softdevel.sm.id.api.IId > > Total time: 833 milliseconds >

