这是一个(简单的)项目,应该演示 spring mvc + jsf 2。 我只是无法在 Netbeans 中加载它;我尝试创建一个新项目,将源添加到 web 目录中。 注意给我一个错误:build-impl.xml:669: 该模块尚未部署。 看来ant脚本无法管理这个项目。 谢谢 附:我使用netbeans 6.9.1 这是日志:
init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: compile: compile-jsps: In-place deployment at C:\Users\agostino\Documents\NetBeansProjects\201011-spring-web-flow-with-jsf\SpringWebFlow-JSF-One\build\web Initializing... deploy?path=C:\Users\agostino\Documents\NetBeansProjects\201011-spring-web-flow-with-jsf\SpringWebFlow-JSF-One\build\web&name=SpringWebFlow-JSF-One&force=true failed on GlassFish Server 3 C:\Users\agostino\Documents\NetBeansProjects\201011-spring-web-flow-with-jsf\SpringWebFlow-JSF-One\nbproject\build-impl.xml:669: The module has not been deployed. BUILD FAILED (total time: 0 seconds)
最佳答案
检查项目目录中(Folder)META-INF->(file)context.xml是否存在。
关于java - netbeans,无法部署Web项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6422726/