users@jaxb.java.net

Re: issue report

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 07 Nov 2006 15:24:50 -0800

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