Hi Jim,

> These notes might help:
> 
> http://forum.springframework.org/showthread.php?t=18870
> 
> http://extensions.openoffice.org/servlets/ReadMsg?list=dev&msgNo=913

These notes helped a lot. Add following lines in your
ProtocolHandler.dispatch(URL aURL, PropertyValue[] lArgs) method:
-----%<-----
ClassLoader clazzLoader = ProtocolHandler.class.getClassLoader();
Thread.currentThread().setContextClassLoader(clazzLoader);
-----%<-----
The current thread comes with the OOo class loader. These lines set the
classloader with the classes you defined in your MANIFEST.MF of the jar
with the ProtocolHandler in your extension. Thus the thread relies no
more on the OOo class loader, but on the one you defined.

Don't forget also to add the jdbc.properties and log4jproperties for
spring to your jars.

Quite simple, isn't it!

I think this is an solution for the Dev-Guide. Should I submit an issue
against the Dev-Guide?

Greetings, Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to