6

当我尝试使用 GlassFish 在 Netbeans 中重新部署时出现此错误。

SEVERE: WS00034: Two web services are being deployed with the same endpoint URL

我没有使用两个具有相同端点 URL 的 Web 服务,所以我不知道这个异常来自哪里。

更新:还收到以下错误:

SEVERE: Exception while shutting down application container : java.lang.NullPointerException

我只收到此错误,没有任何其他错误或解释原因的行。

4

2 回答 2

1

我发现问题对我来说是什么。在两个不同的类中,两个方法名称相同。

在一节课上,我有:

@WebMethod(operationName = "deleteRoute")
public void deleteRoute(@WebParam(name = "routeId") int routeId) {
}

在另一个我有:

@WebMethod(operationName = "deleteUser")
public void deleteRoute(@WebParam(name = "id") int id) {
}

我刚刚将我的第二个deleteRoute重命名为deleteUser并且它起作用了。但它有点奇怪......我虽然 WS 会忽略实际方法,而只对 operationName 感兴趣。

于 2013-11-13T13:04:11.193 回答
1

显然,我从焊接导入中得到了一个模糊的空指针异常,因为我忘记序列化我的拦截器。

于 2013-11-15T23:42:38.880 回答