我使用 NetBeans 创建 Metro Web 服务并部署在 GlassFish 上。尝试构建时出现错误,但前提是 Web 服务中的操作之一返回 Object 而不是原始类型或 String。
错误:
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)
包含代码:
<target if="netbeans.home" name="-run-deploy-nb">
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
</target>
任何帮助表示赞赏!