Я в основном запускаю веб-приложение на Java на Intellij, и оно прекрасно работает, когда я пытаюсь развернуть и запустить его.
Когда я извлекаю код моего коллеги из системы контроля версий для получения последних изменений, я не могне запускаю мой проект, и он выдает эту ошибку:
Artifact Application:ear exploded: java.io.IOException: com.sun.enterprise.admin.remote.RemoteFailureException: Error occurred during deployment: Exception while deploying the app [Application-9.7.0] : Servlet [RegistrationCoordinatorPortTypePortImpl] and Servlet [RegistrationRequesterPortTypePortImpl] have the same url pattern: [/RegistrationService_V10]. Related annotation information: annotation [@javax.jws.WebService(wsdlLocation=/wsdls/wsc10/wscoor.wsdl, targetNamespace=http://schemas.xmlsoap.org/ws/2004/10/wscoor, name=, endpointInterface=com.sun.xml.ws.tx.coord.v10.types.RegistrationRequesterPortType, portName=RegistrationRequesterPortTypePort, serviceName=RegistrationService_V10)] on annotated element [class com.sun.xml.ws.tx.coord.v10.endpoint.RegistrationRequesterPortTypePortImpl] of type [TYPE]. Please see server.log for more details.
В журнале Glassfish говорится:
Caused by: java.lang.IllegalArgumentException: Servlet [RegistrationCoordinatorPortTypePortImpl] and Servlet [RegistrationRequesterPortTypePortImpl] have the same url pattern: [/RegistrationService_V10]
at org.glassfish.web.deployment.descriptor.WebBundleDescriptorImpl.addWebComponentDescriptor(WebBundleDescriptorImpl.java:362)
at org.glassfish.webservices.connector.annotation.handlers.WebServiceHandler.processAnnotation(WebServiceHandler.java:461)
at com.sun.enterprise.deployment.annotation.factory.SJSASFactory$LazyAnnotationHandler.processAnnotation(SJSASFactory.java:148)
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:350)
... 60 more
]]
Я просматривал эту тему для других людей с похожей проблемойи это не работает для моего случая.Что еще более важно, почему это происходит?
В чем причина этой проблемы и как мне ее исправить или на что посмотреть?