Basically what I have done is add mail.jar as well as the connector's
jar file to src\lib\installer-exclude
Okay so far, but how do you deploy them from there? The installer-exclude
folder is only used as the classpath during compilation. Most of the jars
lying there are modified (e.g. extended with a manifest) and then stored in
sc-bundles. Others get embedded in their respective plugin-jar.
I have also added all imports to the manifest file
Did you extend mail.jar and mysql-connector with a manifest file stating
their exports, or which manifest are you talking about?
and added them to the felix.client.run.properties
file under org.osgi.framework.system.packages.extra.
That sounds a bit confusing. You should either add the jars to an
appropriate runlevel if you extended them with a manifest-file OR add them
to the extra-packages. But to add them to the extra-packages, they need to
be on the classpath. The installer-exclude folder is not on the classpath
(or it might be when started from ant, but definitely not in the release
compiles and doesn't report any missing classes or class not found
exceptions. It just doesn't seem to be able to use the
com.mysql.jdbc.Driver or transport.send.
Have you tried debugging your code in an IDE? Where does it not behave as
I'm sure I am missing something simple, I'm just not sure what the
correct process is.
Actually, it might not be so simple if the jdbc thingy tries to load classes