Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Unable to create JAXBContext due to the security restriction

843834Mar 18 2008
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 15 2008
Added on Mar 18 2008
0 comments
847 views