Yes package is available.  It is found successfully
in the line that creates new instance of JAXBContext.
It throws the exception on the last line of snippet,
on the marshal.

On Sat, 2006-12-30 at 08:07, Guillaume Nodet wrote:

> It may be a class loader problem ...
> Is your package available from this code snippet ?
> 
> On 12/30/06, Java Energizer <[EMAIL PROTECTED]> wrote:
> > I can do it standalone and it works OK, but
> > Attempt to marshal inside of servicemix fails.
> > Getting a JAXBContext  context works fine, finds my package
> > that I created using the xjc.sh compiler.  However,
> > the line to marshal into a DOM fails.
> > snip....
> > JAXBContext jc = JAXBContext.newInstance( package.name );
> > Marshal m = jc.createMarshaller();
> > m.marshal( (ObjectFactory) obj, (Document) doc );
> > ....
> > Fails with stack trace saying that my pakcage.name.obj is not known
> > to the JAXB context nor any of its super classes.   Is this an indication
> > that servicemix needs to be identified as the provider?    DO I need
> > to reference the package in an xbean.xml file somewhere?
> > OH, BTWY, this is running inside a PoJo that works as expected.
> >
> >
> 
> 
> -- 
> Cheers,
> Guillaume Nodet

Reply via email to