Невозможно развернуть проект Intellij - PullRequest
1 голос
/ 20 апреля 2019

Я в основном запускаю веб-приложение на 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
]]

Я просматривал эту тему для других людей с похожей проблемойи это не работает для моего случая.Что еще более важно, почему это происходит?

В чем причина этой проблемы и как мне ее исправить или на что посмотреть?

1 Ответ

0 голосов
/ 20 апреля 2019

Из стека трассировки похоже, что у вас есть два сервлета с одинаковым путем:

"/ RegistrationService_V10"

Такая ошибка может появляться только во время выполнения.Обычно ваш путь должен быть четким в вашем проекте.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...