Page 1 of 1

How to integrate new REST POST web service with BLC

Posted: Sat Jan 18, 2014 1:55 am
by boseseb
Need help on POST - JAXB with BLC
I was trying to integrate a POST web service with BLC, which will expose the URL to a 3rd party system to update the order status.
- 3rd party system will pass the order status as XML .
- BLC is not able to locate the JAXB class which I created. (com.mycompany.wrapper.setorderstatus.req.Orderstatus)

BLC Exception:

[ERROR] 14:27:08 BroadleafRestExceptionMapper - An exception was caught by the JAX-RS framework: Status: 500 Message: null
javax.ws.rs.WebApplicationException: javax.xml.bind.JAXBException: com.mycompany.wrapper.setorderstatus.req.Orderstatus is not known to this context
at com.sun.jersey.core.provider.jaxb.AbstractJAXBElementProvider.readFrom(AbstractJAXBElementProvider.java:114)
at com.sun.jersey.core.provider.jaxb.AbstractJAXBElementProvider.readFrom(AbstractJAXBElementProvider.java:79)
at com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:474)
at com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123)
at com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(InjectableValuesProvider.java:46)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatchProvider.java:153)
at

Can anyone help me on this?

Thanks,
Bose