Unable to create JAXBContext due to the security restriction
Hi guys, im having problems returning a XML type in my web service...
this is the code..
@WebService()
public class AlicuotasWS {
@WebMethod
public DTRESPUESTAALICUOTA GetAlicuota(String name) throws JAXBException {
// TODO implement operation
JAXBContext jaxbContext = JAXBContext.newInstance("alicuotas.xml.pkg");
Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
unmarshaller.setEventHandler(new BookingValidationEventHandler());
DTRESPUESTAALICUOTA respuesta = new DTRESPUESTAALICUOTA();
respuesta.setFechaDesde("20080101");
respuesta.setFechaHasta("20080131");
respuesta.setCantidadContribuyentes("1");
respuesta.setNumeroComprobante("3454");
return respuesta;
}
}
but im getting this error when i try do deploy...
Deploying application in domain failed; Deployment Error -- Exception occured in the wsgen process javax.xml.ws.WebServiceException: Unable to create JAXBContext due to the security restriction