Hello Karl,

Thank you very much for your quick reply. I'm going to work on this. There's a good chance that I'm in this case where the class that loads the implementation class is in a root classpath, where my implementation jar is not.

You've given me several ideas that I'm going to try out before coming to terms with modifying framework/build.xml.


Best regards,
Guylaine

France Labs – Your knowledge, now
Datafari Enterprise Search – Découvrez la version 6 / Discover our version 6
www.datafari.com <http://www.datafari.com>
Le 09/09/2024 à 19:48, Karl Wright a écrit :
Many times a jar tries to load implementation classes from another jar.  If
the loading jar is in the root classpath then the implementation classes
likely have to be in the root classpath as well, or the classes it's trying
to load can't find them (because the wrong class loader is used).  There
are ways to load from the thread classpath but if the code isn't designed
that way the only recourse is to put all the related classes at the root
level.  That requires changes to the code that builds the root classpath,
which can be done (with care) in framework/build.xml.

Karl


On Mon, Sep 9, 2024 at 11:52 AM Guylaine BASSETTE <
guylaine.basse...@francelabs.com> wrote:

Hi all,

I'm trying to process XML data in a connector and to do this, I've tried
using the Jakarta libs and even the older "javax.xml.bind" lib. The
latter is used in the Generic connector. So I tried to do the same, but
I always have the classical "Implementation of JAXB-API has not been
found on module path or classpath" error, whatever implementation lib
for JAXB I deploy in ManifoldCF.

For example, I've tried adding these jars for "javax.xml.bind":

jaxb-api-2.3.0.jar
jaxb-core-2.3.0.jar
jaxb-impl-2.3.0.jar
jaxb-runtime-2.3.5.jar

The jaxb-runtime-2.3.5.jar contains the JAXB implementation required,
but I still have the error as if the library wasn't loaded in the
classpath. I've tried to put these dependencies in "connector-lib" and
"connector-common-lib"

When I launch the connector methods in JUnit it works, but not deployed
in MCF.

It seems that the CMIS connector uses Apache CXF to process XML data,
but I don't see these dependencies in the deployed MCF.

Has anyone processed XML data in a connector since the move to Java 11
(as this changes the JAXB implementation search)? Or at least, can I
have an explanation of how classes are loaded into the MCF agent?

--

Best Regards,
Guylaine

France Labs – Your knowledge, now
Datafari Enterprise Search – Découvrez la version 6 / Discover our version
6
www.datafari.com  <http://www.datafari.com>

Reply via email to