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.