Hi
ServiceMix doesn't use JAXP as osgi bundle since Servicemix 4.4.
You may need to update the jre.properties file in the etc to export the
"org.xml.sax.helpers" package.
On Sat Aug 6 01:56:29 2011, J- MAN wrote:
Hi all,
I've created an OSGI project that uses UIMA-core.jar. UIMA makes use of
Class.forName("some.class") to dynamically create classes so i have to put the
uima-core.jar inside the OSGI bundle so it can resolve the classname without getting into
an import/export loop. I also modify the bundle-classpath to point to the uima-jar
inside the bundle. If i manually add the import for org.xml.sax.helpers.DefaultHandler
into the manifest, it will work until it gets to the next JRE class that it fails to
resolve.
The issue is classes that UIMA-core.jar references such as
org.xml.sax.helpers.DefaultHandler are not being resolved. These classes come
with the JRE and i assumed they would already be on the classpath.
This used to work with Servicemix 4.3 but it does not work on 4.4.
Any ideas? Can we no longer embed jars inside an OSGI bundle?
Thanks.
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang