Unable to create JAXBContext in Java web service

I used NetBeans to create the Metro web service and to deploy to GlassFish. I get an error when trying to create, but only if one of the operations in the web service returns an object instead of a primitive type or string.

Mistake:

Deploying application in domain failed; Deployment Error -- Exception occured in the wsgen process javax.xml.ws.WebServiceException: Unable to create JAXBContext
build-impl.xml:569: The module has not been deployed.
BUILD FAILED (total time: 2 seconds)

containing code:

<target if="netbeans.home" name="-run-deploy-nb">
    <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
</target>

Any help is appreciated!

+3
source share
3 answers

This thread is also a good illustration of your problem:

, , getter/setter.
, Netbeans WSDL Webservice . , .
, -, "Web Services" node, -, " WSDL".

.

, , - Java, JAX-WS.

+5

.

, , , ,

+3

The above steps did not work for me. What adds an empty constructor to the MyClass of the returned object, ArrayList <MyClass>.

(NB6.9.1, GF2.X, Windows XP x64)

+1
source

Source: https://habr.com/ru/post/1713820/


All Articles