You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by alapaka <al...@rocketmail.com> on 2013/10/15 05:06:38 UTC

karaf / org.xml.sax not found

Hi all;

this has nothing to do with Camel, thought I might throw it out here
anyway...

I have packaged up some JARs used to call a legacy middleware product (that
I intend to integrate via Camel). I created an OSGi bundle containing these
JARs and deployed to Karaf. I have created a separate bundle that declares a
service interface that provides methods that wrap methods in the legacy
JARs. The bundles deploy and start fine, and I can access them via blueprint
declarative services.

I am however getting an exception when calling one of the methods provided
by these legacy middleware classes. here is the exception:

java.lang.ClassNotFoundException: org.xml.sax.helpers.DefaultHandler not
found

the MANIFEST file for the legacy jar bundle has
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
the jre.properties shows the org.xml.sax.helpers package being exported

I am at a loss as to what I have done wrong... anyone run into this before?

I have tried on servicemix 4.5.2 (Karaf 2.2) and Karaf 2.3.3, same result

I was able to get this running as a non-OSGi application, standalone in it's
own jvm, including calling the legacy middleware product from a Camel route
(Camel 2.12.2). I am now porting this application to OSGi and this is the
latest snag I have hit...

aloha




--
View this message in context: http://camel.465427.n5.nabble.com/karaf-org-xml-sax-not-found-tp5741570.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: karaf / org.xml.sax not found

Posted by alapaka <al...@rocketmail.com>.
Sorry for the false alarm...

had to add the org.xml.sax and javax.xml  dependencies under Import-Package
on the MANIFEST.MF for the legacy JAR bundle.
I assume that because these legacy JARs were compiled years ago under java
1.4 or java 1.5 that they require these explicit package imports. 

ahhh the fun of being a newbie ;-)



--
View this message in context: http://camel.465427.n5.nabble.com/karaf-org-xml-sax-not-found-tp5741570p5741571.html
Sent from the Camel - Users mailing list archive at Nabble.com.