I used NetBeans to create a Metro Web service and to be deployed on GlassFish.
I get an error when I try to build but only if one of the operations in the web service returns an Object instead of a primitive type or String.
The error:
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)
The containing code:
<target if="netbeans.home" name="-run-deploy-nb">
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
</target>
Any help is appreciated!
This thread is also a good illustration of your problem:
You can find some practical advices here on the definition of your object.
And of course you still have the Java Web Service Tutorial exposing the Requirements of a JAX-WS Endpoint.