2011-08-22 2 views
0

Netbeans IDE에서 javaEE 사이트를 로컬로 실행하려고합니다. 나는 모든 것이 제대로 설정이 생각하지만, 나는 다음과 같은 오류를 수신하고 있습니다 :netbeans에서 javaEE를 로컬로 실행하십시오.

Initializing... deploy?DEFAULT=C:\Documents and Settings\nicholasr\Desktop\Work Notes\temp code files\ASP\build\web&name=ASP&force=true failed on GlassFish Server 3.1 Error occurred during deployment: Exception while deploying the app [ASP] : Servlet [Resource Servlet] and Servlet [Persistent Faces Servlet] have the same url pattern: [/xmlhttp/*]. Please see server.log for more details. C:\Documents and Settings\nicholasr\Desktop\Work Notes\temp code files\ASP\nbproject\build-impl.xml:871: The module has not been deployed. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:187) at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154) BUILD FAILED (total time: 58 seconds)

내가 그물에 몇 가지 검색을 수행했지만, 어떤 관련 링크가 표시되지 않습니다. 아무도 내가 왜이 오류가 발생하고 어떻게 해결할 수 있는지 알고 있습니까? 필요한 경우 추가 정보를 제공 할 수 있습니다. 감사!

답변

2

Error occurred during deployment: Exception while deploying the app [ASP] : Servlet [Resource Servlet] and Servlet [Persistent Faces Servlet] have the same url pattern: [/xmlhttp/]*

너는 IceFaces을 사용하고있는 것 같습니다. IceFaces를 사용하지는 않지만 오류 메시지는 동일한 URL 패턴으로 매핑하면 안된다는 것을 보여줍니다. 나는 단지 "영구 얼굴 서블릿"고 결론 지을 수 ... ... 다음 문서를 기반으로

The previously declared Persistent Faces Servlet and Blocking Servlet are no longer needed in ICEfaces 2, as their functionality has changed and setup has been reduced. Remove all declarations and mappings for those two servlets:

을 약간의 연구를했고, IceFaces 1.8.x에서 일반적이며 "Resource Servlet"은 IceFaces 2.x에서 일반적입니다. 둘 중 하나만 사용해야합니다. 여러분이 IceFaces 2.x를 목표로하고 있다고 생각합니다. 그래서 여러분은 여러분의 web.xml에있는 "Persistent Faces Servlet"의 선언과 매핑을 제거해야합니다.

+0

아아, 방금 말씀하신 것처럼 web.xml에서 찾았습니다. 그러나 ICEfaaces 1.8.x를 사용하고 있으므로 "Resource Servlet"을 제거했습니다. 이제 새로운 오류가 발생했습니다. D –

+0

반갑습니다. 새로운 질문/문제에 관해서는, 새로운 질문/문제가있을 때마다 오른쪽 상단에있는 '질문 질문'버튼을 누르면됩니다. 힌트 : 클래스 패스에 그 클래스가 없다. (분명히 필요 없다. ''항목을 삭제하는 것을 잊지 않았 니?) – BalusC

+0

필요 없다. 나는 꽤 확신한다. –