I have downloaded the code given above and it works fine as a normal Java application. But what I need is to generate a SOAP attachment with XML file in a Web service and transfer the SOAP message to another Web service. I work with Netbeans IDE. When I try to deploy the above given logic as a Web Service onto a Glassfish server, I get the following error.
"Deploying application in domain failed; Deployment Error -- Exception occured in the wsgen process javax.xml.ws.WebServiceException: Unable to create JAXBContext"
I have tried using javax.jar file in the Web application library, but only end up with deployment failure.
Kindly help me in fixing this problem.
Thanks in advance.
SAAJ with Web Services IssueArun January 18, 2012 at 3:47 PM
I have downloaded the code given above and it works fine as a normal Java application. But what I need is to generate a SOAP attachment with XML file in a Web service and transfer the SOAP message to another Web service. I work with Netbeans IDE. When I try to deploy the above given logic as a Web Service onto a Glassfish server, I get the following error. "Deploying application in domain failed; Deployment Error -- Exception occured in the wsgen process javax.xml.ws.WebServiceException: Unable to create JAXBContext" I have tried using javax.jar file in the Web application library, but only end up with deployment failure. Kindly help me in fixing this problem. Thanks in advance.
Post your Comment