2013-04-08 70 views
6

我在尝试使用GlassFish在Netbeans中重新部署时出现此错误。SEVERE:WS00034:两个Web服务正在部署相同的端点URL

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

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

UPDATE: 也越来越以下错误:

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

我只得到这个错误,没有任何其他错误或行解释为什么。

+1

通过取消部署所有应用程序并尝试部署您的应用程序来清理您的glassfish。 – 2013-04-08 00:21:46

+0

试过,但仍未能部署。 – Teysz 2013-04-08 00:24:16

+0

然后问题可能出现在您的应用程序中。 – 2013-04-08 00:26:18

回答

1

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

1

我发现问题出在我身上。两个方法名称在两个不同的类中是相同的。

在一堂课上,我有:

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

,并在其他我曾:

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

我只是改名为我的第二个deleteRoutedeleteUser和它的工作。但它有点奇怪......我虽然WS会忽略实际的方法,只对operationName感兴趣。

+0

它应该只对operationName感兴趣,但你确实知道Netbeans和GlassFish。 Netbeans&GlassFish做他们想做的事。 :P – Teysz 2014-03-05 08:23:27