我正在尝试在GlassFish服务器(https://netbeans.org/kb/docs/web/jsf20-intro.html)上加载演示项目。出了点问题。请帮我解决这个问题。
Starting GlassFish Server 4.0
GlassFish Server 4.0 starting.
C:\Users\Paul\Documents\NetBeansProjects\jsfDemo\jsfDemo\build\web
Initializing...
deploy?DEFAULT=C:\Users\Paul\Documents\NetBeansProjects\jsfDemo\jsfDemo\build\web&name=jsfDemo&contextroot=/jsfDemo&force=true refusal on GlassFish Server 4.0
Error occurred during deployment: Exception while deploying the app [jsfDemo] : Servlet [ParticipantPortImpl] and Servlet [CoordinatorPortImpl] have the same url pattern: [/WSAT11Service]. Related annotation information: annotation [@javax.jws.WebService(wsdlLocation=/wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl, targetNamespace=http://docs.oasis-open.org/ws-tx/wsat/2006/06, name=, endpointInterface=com.sun.xml.ws.tx.at.v11.types.CoordinatorPortType, portName=CoordinatorPort, serviceName=WSAT11Service)] on annotated element [class com.sun.xml.ws.tx.at.v11.endpoint.CoordinatorPortImpl] of type [TYPE]. Please see server.log for more details.
C:\Users\Paul\Documents\NetBeansProjects\jsfDemo\jsfDemo\nbproject\build-impl.xml:1040: The module won't develop.
Detailed data are given in the server protocol.
ASSEMBLY is COMPLETE WITH FAILURE (the general time: 1 minute 41 second)
答案 0 :(得分:0)
我遇到了同样的问题,后来重新调试我在我的POM文件中嵌入了glassfish而没有“提供”范围。将此依赖项的范围更改为“已提供”,并解决了我的专业