servlets - Issues while deploying java EE app -


i deploying java ee application. encountered error while building , deploying it. trying interpret have no clues. i'm using jdbc , glassfish 4.01 experimental purpose.

severe:   servlet [registrationrequesterporttypeportimpl] , servlet [registrationcoordinatorporttypeportimpl] have same url pattern: [/registrationservice_v10] severe:   exception while deploying app [bank] severe:   exception during lifecycle processing 

and following error:

warning:   web application [unknown] registered jdbc driver [com.mysql.jdbc.driver] failed unregister when web application stopped. prevent memory leak, jdbc driver has been forcibly unregistered. warning:   web application [unknown] registered jdbc driver [org.postgresql.driver] failed unregister when web application stopped. prevent memory leak, jdbc driver has been forcibly unregistered. severe:   exception while deploying app [bank] : servlet [registrationrequesterporttypeportimpl] , servlet [registrationcoordinatorporttypeportimpl] have 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] 

my 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> 

i had exact same issue, , able fix changing 1 of maven dependencies. glassfish-embedded-all.jar causing problem, once removed application started normally. unfortunately can't tell witch other lib clashing, digging might find it.

hope helps.

i changed

<dependency>     <groupid>org.glassfish.extras</groupid>     <artifactid>glassfish-embedded-all</artifactid>     <version>3.1.1</version> </dependency> 

to

<dependency>     <groupid>javax</groupid>     <artifactid>javaee-web-api</artifactid>     <version>6.0</version> </dependency> 

Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -