Dmitriy Litvak wrote:
> Not sure if this is a good place to write, but there is an issue when
> running JAXB as a
> service (windows). A Nullpointer exception is thrown on calling
> JAXBContext.newInstance("com.foo.bar")
Can you post the stack trace?
>
> This is because Thread.currentThread().getContextClassLoader() returns null
> in this case.
> It is reolved by calling ClassLoader.getSystemClassLoader() instead.
>
> Dmitriy
>
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com