users@jaxb.java.net

Re: JAXBContext

From: Ryan Shoemaker - JavaSoft East <Ryan.Shoemaker_at_sun.com>
Date: Mon, 16 Jun 2003 10:03:38 -0400

David Rosenstark wrote:

> I have a servlet that receives incoming xml requests. Based on errors i have
> received, it seems that i need to create a new JAXBContext for each request,
> since when i initialized it in init() of my server, I receive a
> nullpointerexception. Is this correct?
>

No, this does not sound correct - you should be able to reuse the same
context (assuming all of the incoming requests resolve to a schema
from the context path). Can you send your schema along with the stack
trace?

--Ryan

> TIA,
> David
>