Okay... for anyone else who has the same problem, I was able to solve
the problem by switching the thread context temporarily.. :

///save original class loader context...

Thread.currentThread().setContextClassLoader(MyLibraryClass.getClass().getClassLoader());
 /// invoke my library class functionality

//restore original class loader...



On 1/22/09, ashok _ <listmans...@gmail.com> wrote:
> I have an application that uses saxon9.1 and xerces 2.9.1.
> It works fine by itself.
>
> When I invoke the same application library from within a java UNO
> client application - I get various DOM processing errors while merging
> nodes - essentially related to the parser implementation
> javax.xml.parsers.DocumentBuilderFactory ... it seems to me that a
> different DOM parser implementation is being loaded by the application
> when its run from within a OpenOffice UNO client application...
> perhaps OOo changes the classpath and includes different versions of
> saxon / xerces which could be causing my problem ?
>
> I am running Ubuntu 8.04 / with OpenOffice 3.0 /  Java 1.6.0_07-b06
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to