首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >部署java EE应用程序时出现的问题

部署java EE应用程序时出现的问题
EN

Stack Overflow用户
提问于 2014-12-16 21:57:33
回答 2查看 2.7K关注 0票数 2

我正在部署一个java应用程序。在构建和部署它时遇到一些错误。试图解释它,但没有任何线索。出于这个实验目的,我使用JDBC和glassfish 4.01。

代码语言:javascript
复制
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

以及以下错误:

代码语言:javascript
复制
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:

代码语言:javascript
复制
<?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>
EN

回答 2

Stack Overflow用户

发布于 2015-02-15 16:53:58

我遇到了完全相同的问题,并且能够通过更改我的一个Maven依赖项来修复它。glassfish-embedded-all.jar是导致问题的原因,一旦它被移除,我的应用程序就会正常启动。不幸的是,我不能告诉你与其他库,它是冲突的,但一些挖掘,你可能会找到它。

希望这能有所帮助。

我变了

代码语言:javascript
复制
<dependency>
    <groupId>org.glassfish.extras</groupId>
    <artifactId>glassfish-embedded-all</artifactId>
    <version>3.1.1</version>
</dependency>

代码语言:javascript
复制
<dependency>
    <groupId>javax</groupId>
    <artifactId>javaee-web-api</artifactId>
    <version>6.0</version>
</dependency>
票数 2
EN

Stack Overflow用户

发布于 2015-08-28 21:40:04

确保任何JSF @ConversationalScoped或@ViewScoped控制器都实现java.io.Serializable。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27506281

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档