Closed GoogleCodeExporter closed 8 years ago
From Jason:
You mean 3.0.0-M5-SNAPSHOT, right? I'm assuming you're building against the
latest sources. This is happening because of a loophole we recently closed
which allowed simple apps to bypass OSGi's class loading rules and access
pretty much anything on any bundle's classpath. So before, XML parsing was
working because one of the core bundles depended on a SAX parser. Now that you
can't access that, you need to explicitly declare a dependency on a SAX parser
implementation (and possibly the API too). As soon as you start depending on
third party libraries, that's when you really should transition over to making
a bundle app. It's not very hard if you use Maven. You'll need to restructure
your project a little (i.e. move all your source into /src/main/java, instead
of just /src) and create a POM file (I can provide this, or use
samples/sample02/pom.xml as a template). If you want to stick to the simple
app route, things will get hairy. Basically, you'll need to figure out the
transitive closure of your dependencies (i.e. the JARs you directly depend on
and the JARs they depend on, recursively), unpack all those JARs and repack
them all plus your class files into a single JAR. Maven can do this for you
easily, but if you're going to switch to Maven, you might as well make bundle
apps.
Original comment by xani...@gmail.com
on 22 May 2012 at 7:17
converted application to bundle (as documented in the instructions)
Original comment by xani...@gmail.com
on 23 May 2012 at 10:40
Original issue reported on code.google.com by
xani...@gmail.com
on 19 May 2012 at 9:46