Я развертываю приложение Java EE. При создании и развертывании возникла некоторая ошибка. Попытка интерпретировать его, но не имеет никаких подсказок. Я использую JDBC и glassfish 4.01 для этой экспериментальной цели.Проблемы при развертывании приложения Java EE
SEVERE: Servlet [RegistrationRequesterPortTypePortImpl] and Servlet [RegistrationCoordinatorPortTypePortImpl] have the same url pattern: [/RegistrationService_V10]
SEVERE: Exception while deploying the app [bank]
SEVERE: Exception during lifecycle processing
И следующее сообщение об ошибке:
WARNING: The web application [unknown] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
WARNING: The web application [unknown] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
SEVERE: Exception while deploying the app [bank] : Servlet [RegistrationRequesterPortTypePortImpl] and Servlet [RegistrationCoordinatorPortTypePortImpl] 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.RegistrationCoordinatorPortType, portName=RegistrationCoordinatorPortTypePort, serviceName=RegistrationService_V10)] on annotated element [class com.sun.xml.ws.tx.coord.v10.endpoint.RegistrationCoordinatorPortTypePortImpl] of type [TYPE]
Мой web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>faces/account.xhtml</welcome-file>
</welcome-file-list>
</web-app>
Пожалуйста, добавьте ваш 'web.xml' на вопрос. – unwichtich
@unwichtich только что добавил web.xml. – JustinBieber
Web.xml выглядит нормально ... у вас есть какая-то подсказка, какая часть вашего кода ввела проблему? – unwichtich