I have a web service WebService1
that is deployed on JBoss (4.2.3.GA).
WebService1
's endpoint is Endpoint1
.
I wrote a WebService2
which dependends on WebService1
. When Maven creates the .EAR file, it places the .JAR with WebService1
in WebService2
's .EAR.
So, when I deploy WebService2
in JBoss I get the exception:
Endpoint1 has already registered.
If I remove class with Endpoint1
from the .JAR in the .EAR, then it's all normally deployed. But I can't remove this class after every project building.
Any ideas?