Technically you don't need it but I ran into similar problems before and the
jaxb.index solved the issue.  However, since you said it works outside of
SMX w/o it, then it should also work inside SMX w/o it.  Did you try it
anyhow?

You're also trying to marshal from POJO to xml.  How is this process being
done?  Anything you send into the NMR must be well-formed XML so if you're
are trying to marshal the POJO by passing it to another component inside the
NMR as a POJO, its not going to work (unless you use a binary marshaler).

HTH,

-los


Java Energizer wrote:
> 
> No, I do not have an jaxb.index.  It was my understanding that
> it was optional?  Is it required with servicemix?
> My code works OK outside of servicemix.  
> 
> On Sat, 2006-12-30 at 14:29, moraleslos wrote:
> 
>> Do you have a jaxb.index file in your package that describes all the
>> classes
>> participating in jaxb2?  Not sure if this will solve your problem though
>> but
>> give it a shot...
>> 
>> -los
>> 
>> 
>> Java Energizer 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.
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/Marshal-error-with-JAXB-in-servicemix-tf2898235s12049.html#a8100837
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Marshal-error-with-JAXB-in-servicemix-tf2898235s12049.html#a8109015
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to