Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm getting this error when I'm trying to redeploy in Netbeans with GlassFish.

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

I'm not using two web services with the same endpoint URL so I don't know where this exception is coming from.

UPDATE: Also getting the following error:

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

I'm only getting this error without any other errors or lines explaining why.

like image 819
Teysz Avatar asked Apr 08 '13 00:04

Teysz


2 Answers

I found out what the problem was for me. 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 the other i had :

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

I just renamed my second deleteRoute to deleteUser and it worked. But its kinda weird... i though WS would ignore the actual method, and only be interested in the operationName.

like image 105
Oliver Watkins Avatar answered Nov 10 '22 03:11

Oliver Watkins


Appearantly, I got a vague nullpointerexception from weld import because I forgot to serialize my interceptor.

like image 42
Teysz Avatar answered Nov 10 '22 02:11

Teysz