Re: [api-dev] Classpath in OO Extensions [SOLVED]

2008-01-31 Thread Tobias Krais
Hi Jim, These notes might help: http://forum.springframework.org/showthread.php?t=18870 http://extensions.openoffice.org/servlets/ReadMsg?list=devmsgNo=913 These notes helped a lot. Add following lines in your ProtocolHandler.dispatch(URL aURL, PropertyValue[] lArgs) method: -%-

Re: [api-dev] Classpath in OO Extensions [SOLVED]

2008-01-31 Thread Tobias Krais
Hi Stephan, ClassLoader clazzLoader = ProtocolHandler.class.getClassLoader(); Thread.currentThread().setContextClassLoader(clazzLoader); unless you control the remaining lifespan of the thread, remember to reset the context class loader once you are done sounds interesting. Can you tell me

Re: [api-dev] Classpath in OO Extensions [SOLVED]

2008-01-31 Thread Stephan Bergmann
Tobias Krais wrote: ClassLoader clazzLoader = ProtocolHandler.class.getClassLoader(); Thread.currentThread().setContextClassLoader(clazzLoader); unless you control the remaining lifespan of the thread, remember to reset the context class loader once you are done -Stephan

Re: [api-dev] Classpath in OO Extensions [SOLVED]

2008-01-31 Thread Stephan Bergmann
Tobias Krais wrote: Hi Stephan, ClassLoader clazzLoader = ProtocolHandler.class.getClassLoader(); Thread.currentThread().setContextClassLoader(clazzLoader); unless you control the remaining lifespan of the thread, remember to reset the context class loader once you are done sounds