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

I get this error when I try to redistribute NetBeans using GlassFish.

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

I do not use two web services with the same endpoint URL, so I do not know where this exception comes from.

UPDATE: Also get the following error:

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

I get this error without any other errors or lines explaining why.

+6
source share
2 answers

Apparently, I had an undefined nullpointer exception from a weld import, because I forgot to serialize my interceptor.

+1
source

I found out what the problem is for me. The two method names were identical in two different classes.

In one class, I had:

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

and in another i:

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

I just renamed the second deleteRoute to deleteUser and it worked. But this is kind of weird ... although WS will ignore the actual method and will only be interested in the name operation.

+1
source

All Articles